/* ============================================================
   KissLog – öffentliche Website
   Handgeschriebenes CSS, mobile-first, hell-first im Look der
   bisherigen kisslog.de (Instrument Sans, Slate-Grau, Primärgrün);
   der Dark-Mode bleibt als lesbare Slate-Variante erhalten.
   ============================================================ */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-600.woff2") format("woff2");
}

:root {
  /* Primärgrün der bisherigen kisslog.de */
  --brand: #16542C;        /* primary-600 */
  --brand-strong: #134324; /* primary-700 */
  --emerald: #1B6535;      /* primary-500 (Hover) */
  --accent-soft: #DCF2E3;  /* primary-100 */

  /* Slate-Grautöne der bisherigen kisslog.de */
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;       /* slate-50 */
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.85);
  --text: #0F172A;         /* slate-900 */
  --muted: #475569;        /* slate-600 */
  --line: #E2E8F0;         /* slate-200 */
  --on-brand: #FFFFFF;

  --radius: 16px;
  --radius-big: 16px;
  --radius-small: 12px;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 10px 30px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);

  --gutter: 16px;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220;
    --bg-alt: #0F172A;
    --surface: #131C2E;
    --glass: rgba(15, 23, 42, 0.85);
    --text: #F1F5F9;
    --muted: #94A3B8;
    --line: rgba(148, 163, 184, 0.22);
    --accent-soft: #14301F;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Grundgerüst ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Footer bleibt unten, auch wenn die Seite kurz ist (Neuigkeiten, Status …). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; width: 100%; }
.site-footer { margin-top: auto; }

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

a { color: var(--brand); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Logo-Varianten: hell/dunkel automatisch */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
  :root:not([data-theme="light"]) a { color: #8DD3A8; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand img { height: 34px; width: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.site-nav.open { display: flex; }
.site-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.site-nav a:hover { background: var(--accent-soft); }
.site-nav .btn { margin-top: 6px; text-align: center; }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav a { padding: 8px 14px; }
  .site-nav .btn { margin: 0 0 0 8px; }
}

/* ---------- Buttons ---------- */

/* Buttons im Stil der bisherigen kisslog.de: flach, kantig-rund, Primärgrün */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.btn-primary:hover { background: var(--emerald); transform: scale(1.03); }

.btn-ghost {
  border: 1px solid #CBD5E1;
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: #94A3B8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-ghost { border-color: rgba(148, 163, 184, 0.4); }
  :root:not([data-theme="light"]) .btn-ghost:hover { background: var(--surface); border-color: #94A3B8; }
}

.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-big { padding: 14px 28px; font-size: 1rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(27, 101, 53, 0.08), transparent 65%),
    radial-gradient(800px 420px at -10% 25%, rgba(27, 101, 53, 0.05), transparent 60%),
    var(--bg);
}

.hero .container {
  display: grid;
  gap: 40px;
}

/* Eyebrow wie auf der bisherigen kisslog.de: schlichte grüne Zeile in Versalien */
.eyebrow {
  display: block;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: #8DD3A8; }
}

/* Akzent im Titel: schlichtes Primärgrün statt Verlauf */
.accent { color: var(--brand); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.cta-row.center { justify-content: center; }

.hero-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
}
.hero-points li { padding-left: 26px; position: relative; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" d="M3 8.5 6.5 12 13 4.5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" d="M3 8.5 6.5 12 13 4.5"/></svg>') center / contain no-repeat;
}

@media (min-width: 980px) {
  .hero { padding: 84px 0 96px; }
  .hero .container {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 56px;
  }
}

/* ---------- Geräte-Rahmen ---------- */

.device { margin: 0; }

.device.browser {
  border-radius: var(--radius-big);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.device.browser img { width: 100%; }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent);
}
.browser-bar .dots { display: inline-flex; gap: 6px; }
.browser-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.browser-bar .dots i:first-child { background: rgba(46, 139, 87, 0.55); }
.urlpill {
  flex: 1;
  max-width: 320px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-shot { transform: none; }

.device.phone {
  width: min(46%, 230px);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1E293B, #0F172A);
  box-shadow: var(--shadow-lift);
}
.device.phone img {
  border-radius: 20px;
  width: 100%;
}
.device.phone figcaption {
  color: #94A3B8;
  font-size: 0.78rem;
  text-align: center;
  padding: 8px 4px 2px;
}

.phone-duo {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
}
.phone-duo .device.phone:nth-child(2) { margin-top: 34px; }

/* Mehrere App-Screens nebeneinander (umbruchfähig) */
.phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.phone-row .device.phone { width: min(46%, 230px); }
@media (min-width: 980px) {
  .phone-row .device.phone { width: min(23%, 240px); }
  .phone-row .device.phone:nth-child(even) { margin-top: 30px; }
  /* In einer Split-Spalte: 2x2 statt 4 nebeneinander */
  .phone-row.in-split .device.phone { width: min(46%, 230px); }
}

/* ---------- Sektionen ---------- */

.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }

.section-lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 62ch;
  margin-bottom: 36px;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 980px) {
  .section { padding: 88px 0; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .split.reverse .split-copy { order: 2; }
  .split.reverse .device,
  .split.reverse .phone-duo { order: 1; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(0.3em + 3px);
  width: 12px;
  height: 12px;
  background: var(--brand);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" d="M3 8.5 6.5 12 13 4.5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" d="M3 8.5 6.5 12 13 4.5"/></svg>') center / contain no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .checklist li::after { background: #8DD3A8; }
}

/* ---------- Karten ---------- */

.card-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .card-grid.two { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* „Glass“-Karten sind im neuen Look schlichte weiße Karten mit feinem Rand */
.glass {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--brand);
  background: var(--accent-soft);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-icon { color: #8DD3A8; }
}

.badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Screenshot-Rotation („So sieht's aus") ----------
   Ohne JS: nur der erste Screenshot samt Text ist sichtbar.
   Mit JS (html.js-anim) stapeln sich die Folien und blenden weich über;
   der erste (Browser-)Rahmen bleibt im Fluss und reserviert die Höhe. */

.showcase {
  max-width: 920px;
  margin-inline: auto;
}

.showcase-stage { position: relative; }

.showcase-slide { margin: 0; }
.showcase-slide:not(.is-active) { display: none; }
.showcase-slide .device.browser { width: 100%; }

html.js-anim .showcase-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
html.js-anim .showcase-slide:first-child { position: relative; inset: auto; }
html.js-anim .showcase-slide.is-active { opacity: 1; pointer-events: auto; }
html.js-anim .showcase-slide .device.phone {
  height: min(100%, 520px);
  width: auto;
  display: flex;
}
html.js-anim .showcase-slide .device.phone img {
  height: 100%;
  width: auto;
}

.showcase-captions {
  position: relative;
  margin-top: 18px;
  text-align: center;
}
.showcase-caption {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.02rem;
}
.showcase-caption strong { color: var(--text); }
.showcase-caption:not(.is-active) { display: none; }
/* Mit JS: alle Captions übereinander in derselben Grid-Zelle – der Block ist
   so hoch wie die längste Caption, nichts springt, nichts überlappt. */
html.js-anim .showcase-captions { display: grid; }
html.js-anim .showcase-caption {
  display: block;
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}
html.js-anim .showcase-caption.is-active { opacity: 1; }

.showcase-dots { display: none; }
html.js-anim .showcase-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.showcase-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.showcase-dots button:hover { background: var(--muted); }
.showcase-dots button[aria-current="true"] {
  background: var(--emerald);
  transform: scale(1.3);
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1200px);
}
.lightbox::backdrop { background: rgba(8, 15, 10, 0.82); }
.lightbox img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-lift);
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

/* ---------- Pakete ---------- */

.price-card { display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; text-align: center; }
.price-card .checklist { margin-bottom: 24px; }

.price {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .price { color: #8DD3A8; }
}
.price-sub { color: var(--muted); font-size: 0.95rem; }

.price-card.featured {
  position: relative;
  border: 1.5px solid var(--brand);
  box-shadow: var(--shadow-lift);
}
.flag {
  position: absolute;
  top: -13px;
  right: 20px;
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-note {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--radius-small);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.97rem;
}

/* ---------- Kontakt ---------- */

.contact { padding-bottom: 96px; }
.contact-card {
  border-radius: var(--radius-big);
  border: 1px solid var(--line);
  padding: 48px var(--gutter);
  text-align: center;
  background:
    radial-gradient(640px 300px at 50% -20%, rgba(27, 101, 53, 0.10), transparent 70%),
    var(--glass);
}
.contact-card .section-lead { margin-inline: auto; }
.contact-hint { color: var(--muted); margin: 18px 0 0; font-size: 0.95rem; }

/* CTA mit Produkt-Screenshot im Hintergrund (Overlay sichert Kontrast,
   gleiches Bild in Hell- und Dunkelmodus) */
.contact-card.cta-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0B1A10; /* dunkler Fallback, falls Bild/Overlay nicht gezeichnet werden */
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lift);
  color: #EAF3ED;
}
.contact-card.cta-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--cta-img);
  background-size: cover;
  background-position: center top;
}
.contact-card.cta-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 300px at 50% -20%, rgba(27, 101, 53, 0.35), transparent 70%),
    linear-gradient(160deg, rgba(8, 20, 13, 0.95), rgba(15, 48, 28, 0.91) 55%, rgba(7, 17, 11, 0.96));
}
.contact-card.cta-photo h1,
.contact-card.cta-photo h2 { color: #FFFFFF; }
.contact-card.cta-photo .section-lead { color: rgba(234, 243, 237, 0.88); }
.contact-card.cta-photo .eyebrow { color: #8DD3A8; }
.contact-card.cta-photo .contact-hint,
.contact-card.cta-photo .store-hint { color: rgba(234, 243, 237, 0.78); }
.contact-card.cta-photo a:not(.btn) { color: #A9D8BC; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 44px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) auto auto minmax(0, 1.1fr);
    gap: 48px;
  }
  .footer-grid .footer-brand { grid-column: auto; }
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 0; max-width: 40ch; }
.footer-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-trust li { display: flex; align-items: center; gap: 8px; }
.footer-trust svg { flex: none; color: var(--brand); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-trust svg { color: #8DD3A8; }
}
.footer-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col a {
  padding: 4px 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--brand); }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badges.center { justify-content: center; margin-top: 20px; }
.store-badges a { display: inline-flex; border-radius: 8px; }
.store-badges img { height: 44px; width: auto; }
.store-hint { margin: 12px 0 0; color: var(--muted); font-size: 0.82rem; }
.footer-meta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-meta p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.footer-legal a:hover { color: var(--brand); }

/* ---------- Rechtsseiten ---------- */

.legal-main { padding: 48px 0 80px; }
.legal-main h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal-main h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal-sub { color: var(--muted); margin: -6px 0 30px; }
.legal-table-wrap { overflow-x: auto; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 10px;
  font-size: 0.95rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.legal-table th {
  background: var(--accent-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.back-link:hover { color: var(--brand); }
.todo-note {
  padding: 14px 18px;
  border-radius: var(--radius-small);
  border: 1.5px dashed var(--brand);
  background: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 28px;
}

/* ============================================================
   Unterseiten, Reveals, Feinschliff
   ============================================================ */

/* ---------- Navigation: aktive Seite ---------- */

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-nav a[aria-current="page"] { color: #8DD3A8; }
}

/* ---------- Scroll-Reveals (IntersectionObserver in script.js) ----------
   Progressive Enhancement: Erst wenn JS die Klasse .js-anim auf <html> setzt,
   wird etwas ausgeblendet. Ohne JS oder mit reduzierter Bewegung ist alles
   sofort sichtbar. */

@keyframes reveal-up {
  from { opacity: 0.001; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes hero-in {
  from { opacity: 0.001; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html.js-anim .reveal { opacity: 0; }
  html.js-anim .reveal.is-visible {
    opacity: 1;
    animation: reveal-up 0.65s cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
    animation-delay: var(--reveal-delay, 0s);
  }

  /* Sanfter Einstieg der Hero-Bereiche beim Laden */
  html.js-anim .hero-copy > *,
  html.js-anim .page-hero .container > * {
    animation: hero-in 0.6s cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  }
  html.js-anim .hero-copy > *:nth-child(2),
  html.js-anim .page-hero .container > *:nth-child(2) { animation-delay: 0.08s; }
  html.js-anim .hero-copy > *:nth-child(3),
  html.js-anim .page-hero .container > *:nth-child(3) { animation-delay: 0.16s; }
  html.js-anim .hero-copy > *:nth-child(4),
  html.js-anim .page-hero .container > *:nth-child(4) { animation-delay: 0.24s; }
  html.js-anim .hero-copy > *:nth-child(5),
  html.js-anim .page-hero .container > *:nth-child(5) { animation-delay: 0.32s; }
  html.js-anim .hero .device.browser,
  html.js-anim .hero .phone-duo {
    animation: hero-in 0.8s cubic-bezier(0.22, 0.7, 0.3, 1) 0.2s backwards;
  }

  /* Ganz leichter Parallax auf großen Browser-Mockups (script.js pflegt --plx) */
  html.js-anim .device.browser { transform: translateY(var(--plx, 0)); }
  html.js-anim .hero-shot { transform: translateY(var(--plx, 0)); }
}

/* ---------- Kopf von Unterseiten ---------- */

.page-hero {
  padding: 56px 0 8px;
  background:
    radial-gradient(900px 420px at 80% -20%, rgba(27, 101, 53, 0.07), transparent 65%),
    var(--bg);
}
.page-hero .lead { font-size: 1.1rem; }
.page-hero .eyebrow { margin-bottom: 14px; }

.anchor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 6px;
  padding: 0;
  list-style: none;
}
.anchor-pills a {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.anchor-pills a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* ---------- Dezente Hinweiszeile (z. B. NFC-Karten) ---------- */

.hint-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.hint-line svg { flex: none; margin-top: 2px; color: var(--brand); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hint-line svg { color: #8DD3A8; }
}
.hint-line p { margin: 0; }

/* ---------- Vertrauens-Zeile unter dem Hero ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { color: var(--brand); flex: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .trust-strip svg { color: #8DD3A8; }
}

/* ---------- Schritte (Kontakt: so geht es weiter) ---------- */

.steps {
  counter-reset: schritt;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  text-align: left;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: schritt;
  padding: 22px 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.steps li::before {
  content: counter(schritt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- FAQ (Preise) ---------- */

.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  translate: 0 -50%;
  background: var(--muted);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" d="m3 6 5 5 5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" d="m3 6 5 5 5-5"/></svg>') center / contain no-repeat;
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 180deg; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Kleinigkeiten ---------- */

.section-cta { margin-top: 36px; text-align: center; }
.card .more-link { font-weight: 600; text-decoration: none; }
.card .more-link:hover { text-decoration: underline; }

.feature-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.feature-head .card-icon { margin-bottom: 0; width: 46px; height: 46px; border-radius: 14px; }
.feature-head h2, .feature-head h3 { margin: 0; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ===== Inhalte aus der Verwaltung (Neuigkeiten, Roadmap, Status) ===== */
.ks-laden { text-align: center; color: var(--muted); padding: 32px 0; }

/* Seitenkopf: Text linksbündig, rechts eine Grafik (ab Tablet-Breite) */
.page-hero { display: grid; gap: 24px; align-items: center; }
/* Liegt der Seitenkopf IM Container (Neuigkeiten, Roadmap, Status), würde der
   Verlauf aus .page-hero als hartes Rechteck hinter der Grafik enden – daher
   dort kein Verlauf; die Grafik bringt ihre ruhige Fläche selbst mit. */
.container .page-hero { background: none; }
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero .section-lead { margin-bottom: 0; }
.page-hero-art { display: none; }
@media (min-width: 820px) {
  /* Zwei Spalten nur mit Grafik: auf Seiten ohne .page-hero-art
     (Funktionen, Preise) quetschte die leere zweite Spalte den Inhalt
     sonst schmaler als den Header (01.12.). */
  .page-hero:has(.page-hero-art) { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 56px; }
  .page-hero-art { display: block; }
}
.page-hero-art svg { width: 100%; height: auto; display: block; }

.news-list { display: grid; gap: 20px; max-width: 760px; margin: 36px 0 0; }
.news-card h2 { margin: 4px 0 8px; font-size: 1.25rem; }
.news-datum { color: var(--muted); font-size: 0.85rem; margin: 0; }
.news-anriss { color: var(--muted); font-weight: 500; }
.news-inhalt :is(h2, h3) { font-size: 1.05rem; margin: 14px 0 6px; }
.news-inhalt p { margin: 8px 0; }
.news-inhalt ul, .news-inhalt ol { padding-left: 20px; margin: 8px 0; }

.roadmap-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .roadmap-grid { grid-template-columns: repeat(3, 1fr); } }
.roadmap-col h2 { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.roadmap-col h2::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--muted); }
.roadmap-geplant h2::before { background: #94A3B8; }
.roadmap-in_arbeit h2::before { background: #0284C7; }
.roadmap-erledigt h2::before { background: var(--brand); }
.roadmap-punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.roadmap-punkte li { border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.95rem; }
.roadmap-punkte li:first-child { border-top: 0; padding-top: 0; }
.roadmap-punkte p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.roadmap-eta { color: var(--muted); font-size: 0.8rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }

.status-banner { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; border-radius: 14px; padding: 16px; margin: 28px 0 16px; background: var(--accent-soft); color: var(--brand-strong); }
.status-liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.status-liste li { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.status-liste li:first-child { border-top: 0; }
.status-name { font-weight: 600; }
.status-hinweis { color: var(--muted); font-size: 0.85rem; }
.status-label { margin-left: auto; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.status-punkt { width: 9px; height: 9px; border-radius: 999px; background: var(--brand); flex: 0 0 auto; }
.status-beeintraechtigt .status-punkt { background: #D97706; }
.status-stoerung .status-punkt { background: #DC2626; }
.status-wartung .status-punkt { background: #0284C7; }
.status-banner.status-beeintraechtigt { background: #FEF3C7; color: #92400E; }
.status-banner.status-stoerung { background: #FEE2E2; color: #991B1B; }
.status-banner.status-wartung { background: #E0F2FE; color: #075985; }

/* ===== Kontaktformular ===== */
.contact-form { max-width: 640px; margin: 24px auto 0; text-align: left; display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.contact-form input, .contact-form textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.ks-falle { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-meldung { text-align: center; min-height: 1.3em; color: var(--brand-strong); font-weight: 600; margin: 0; }
.cta-photo .contact-form label { color: #fff; }
.cta-photo .form-meldung { color: #fff; }
.cta-photo .contact-hint, .cta-photo .contact-hint a { color: rgba(255,255,255,0.85); }

/* Datenschutz-Einwilligung (Pflichtfeld vor dem Absenden) */
.contact-form .form-datenschutz { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.85rem; line-height: 1.55; color: var(--muted); }
.form-datenschutz input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; padding: 0; border: none; background: transparent; accent-color: var(--brand); flex: 0 0 auto; cursor: pointer; }
.form-datenschutz a { text-decoration: underline; text-underline-offset: 2px; }
.cta-photo .contact-form .form-datenschutz, .cta-photo .form-datenschutz a { color: rgba(255,255,255,0.92); }

/* Kennzeichen "Zusatzbaustein" neben einer Funktionsueberschrift (01.12.) */
.badge-addon {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(27, 101, 53, 0.1);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ---------- Apps-Ausklapper in der Hauptnavigation ---------- */

.nav-dropdown { position: relative; }
.nav-drop-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.nav-drop-toggle:hover { background: var(--accent-soft); }
.nav-drop-toggle svg { transition: transform 0.2s ease; flex: none; }
.nav-dropdown.open > .nav-drop-toggle svg { transform: rotate(180deg); }

/* Liegt die aktive Seite im Ausklapper, leuchtet auch der Knopf */
.nav-dropdown:has(a[aria-current="page"]) > .nav-drop-toggle {
  background: var(--accent-soft);
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-dropdown:has(a[aria-current="page"]) > .nav-drop-toggle { color: #8DD3A8; }
}

/* Mobil: die App-Links stehen eingerueckt im aufgeklappten Menue */
.nav-drop-menu { display: none; padding-left: 12px; }
.nav-dropdown.open > .nav-drop-menu { display: grid; gap: 2px; }

@media (min-width: 820px) {
  .nav-drop-toggle { width: auto; padding: 8px 10px 8px 14px; }
  .nav-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 215px;
    padding: 8px;
    background: var(--surface, var(--bg));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
    z-index: 60;
  }
  .nav-dropdown.open > .nav-drop-menu { padding-left: 8px; }
  /* Unsichtbare Bruecke, damit der Zeiger vom Knopf zum Menue darf */
  .nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}

/* ---------- Tablet-Rahmen fuer App-Screens (Kleinwaage, Unterschrift) ---------- */

.device.tablet { margin: 0; }
.device.tablet .bezel {
  background: #101826;
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-lift);
}
.device.tablet img { width: 100%; border-radius: 13px; display: block; }
.device.tablet figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 10px;
}
.tablet-row { display: grid; gap: 22px; margin-top: 32px; }
@media (min-width: 820px) { .tablet-row { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.tablet-hero { width: min(100%, 620px); }

/* Vier Schritte nebeneinander: 2x2 statt Dreier-Reihe */
@media (min-width: 820px) { .tablet-row.four { grid-template-columns: repeat(2, 1fr); } }

/* Schritt-Nummer im Karten-Symbol */
.card-icon.num { font-weight: 700; font-size: 1.15rem; }
