/* ==========================================================================
   Spreemüritz — Design-System
   Warm / offen / abgerundet — bewusster Bruch mit dem alten "Dark Industrial"-Look
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-bold-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-regular-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-medium.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-medium-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  --creme:      #F5EFE3;
  --ink:        #2E2A26;
  --orange:     #C4521A;
  --orange-h:   #E2884F;

  --bg:         var(--creme);
  --text:       var(--ink);
  --surface:    #ffffff;
  --border:     #e4dbc8;

  --radius:     14px;
  --radius-sm:  8px;
  --max-width:  1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-h); text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--creme);
}

/* ---------- Pill-Buttons (Hauptmenü) ---------- */
.pill {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--creme);
  background: var(--ink);
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.pill:hover, .pill.is-active {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: block;
}
.brand:hover { text-decoration: none; }
.brand img {
  display: block;
  width: 300px;
  height: auto;
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.25rem;
  max-width: var(--max-width);
}
.main-nav__list--sub {
  padding-top: 0;
}

@media (max-width: 780px) {
  .container { padding: 0 1.75rem; }
  .hamburger { display: flex; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav__list { flex-direction: column; align-items: center; padding: 0.5rem 1.5rem 1.25rem; }
  .pill { text-align: center; }
  .brand img { width: 190px; }
}

/* ---------- Karten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(46, 42, 38, 0.06);
  display: flex;
  flex-direction: column;
}
.card > a:last-child {
  margin-top: auto;
  align-self: flex-start;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}
.hero p.lead {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--ink);
}
.slogan {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--orange);
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

/* ---------- App-Seiten ---------- */
.app-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.app-header img.app-logo {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  object-fit: cover;
}
.badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.app-media {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  margin: 2rem 0;
  padding-bottom: 0.5rem;
}
.app-media img {
  border-radius: var(--radius);
  max-height: 420px;
  border: 1px solid var(--border);
}

/* ---------- Screenshot-Galerie ---------- */
.gallery { margin: 2.5rem 0; }
.gallery + .gallery { margin-top: 3rem; }
.gallery__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.gallery__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.gallery__thumb {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
  width: 140px;
  flex: 0 0 auto;
  transition: transform 0.15s, border-color 0.15s;
}
.gallery__thumb:hover, .gallery__thumb:focus-visible {
  transform: translateY(-3px);
  border-color: var(--orange);
}
.gallery__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(46, 42, 38, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(90vw, 700px);
  max-height: 86vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  background: transparent;
  border: 2px solid var(--creme);
  color: var(--creme);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 780px) {
  .gallery__thumb { width: 110px; }
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
}
.download-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.download-box img.qr {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ---------- Download-Status (Platzhalter, solange kein Download-Link existiert) ---------- */
.status-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
}
.status-pending__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Section-Label ---------- */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

/* ---------- Formular (Kontakt) ---------- */
.form-group { margin-bottom: 1.25rem; }
label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.form-msg--success { background: #e5f3ea; color: #1f6b41; border: 1px solid #b9dcc4; }
.form-msg--error { background: #fbe9e6; color: #a1341f; border: 1px solid #f0c3b8; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--ink);
  font-size: 0.9rem;
}
.site-footer a { margin: 0 0.5rem; }

/* ---------- Cookie-Consent-Banner ---------- */
#cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--creme);
  padding: 1.25rem 1.5rem;
  display: none;
}
#cookie-consent.is-visible { display: block; }
.cookie-consent__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-consent__text { flex: 1; min-width: 240px; font-size: 0.92rem; }
.cookie-consent__actions { display: flex; gap: 0.75rem; }
/* Bewusst identisch gestaltet — kein Button optisch bevorzugt (Wirksamkeitsvoraussetzung) */
.cookie-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  border: 2px solid var(--creme);
  background: transparent;
  color: var(--creme);
}
.cookie-btn:hover { background: var(--creme); color: var(--ink); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 780px) {
  .grid-2 { grid-template-columns: 1fr; }
  .app-header { flex-direction: column; text-align: center; }
}
