/* =========================================================================
   Aisly / Firmen-Website — gemeinsames Design-System
   Markenfarben aus dem App-Icon: Slate #3A4F66, Türkis-Akzent #00F0B5.
   Reines CSS, kein Build-Schritt. Light/Dark automatisch via prefers-color-scheme.
   ========================================================================= */

:root {
  --brand:        #3A4F66;
  --brand-tint:   #46607d;   /* helleres Slate für Hover/Verläufe */
  --accent:       #00d8a4;   /* interaktives Türkis, kontraststark auf Hell */
  --accent-bright:#00F0B5;   /* dekoratives Türkis (Punkte, Akzentlinien)  */

  --bg:      #ffffff;
  --surface: #ffffff;
  --raised:  #f6f7f9;
  --text:    #1a1f26;
  --muted:   #5b6675;
  --border:  #e6e9ee;

  --radius:  16px;
  --radius-sm: 10px;
  --maxw:    1040px;
  --shadow:  0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg: 0 30px 60px -20px rgba(16,24,40,.28), 0 12px 24px -12px rgba(16,24,40,.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Display-Stack für Headings — native, kein Web-Font-Download.
     Spätere Migration auf z. B. Inter Variable: nur diese Variable austauschen. */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #14181d;
    --surface: #1b212a;
    --raised:  #20272f;
    --text:    #e8ebef;
    --muted:   #9aa4b1;
    --border:  #2a323c;
    --accent:  #00F0B5;
    --shadow:  0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bright) 22%, transparent);
  animation: brand-pulse 3.2s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bright) 22%, transparent); }
  50%      { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent-bright)  8%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .brand .dot { animation: none; }
}
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--raised); }

/* Sprach-Umschalter im Header (DE/EN). Klein, dezent, kein JS — verlinkt
   einfach auf die Geschwister-Seite. Eigene Klasse, da `.lang-switch`
   bereits für den Sprach-Hinweis in den Rechtstexten verwendet wird. */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-size: .9rem;
}
.lang-toggle a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.lang-toggle a:hover { color: var(--text); background: var(--raised); }
.lang-toggle a.active { color: var(--text); font-weight: 600; }
.lang-toggle .sep { color: var(--border); user-select: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-tint); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--raised); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 104px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 12% 10%, color-mix(in srgb, var(--accent-bright) 14%, transparent), transparent 70%),
    radial-gradient(55% 50% at 92% 0%, color-mix(in srgb, var(--brand-tint)    22%, transparent), transparent 72%);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero p {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 28px;
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section > .container > h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.section .lead { color: var(--muted); margin: 0 0 32px; }

/* ---------- Produkt-Karten ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.product-card .top { display: flex; align-items: center; gap: 14px; }
.product-card img.icon {
  width: 56px; height: 56px; border-radius: 13px; flex: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.product-card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.01em; }
.product-card .tagline { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.product-card p.desc { margin: 0; color: var(--text); font-size: .96rem; }
.product-card .foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-bright) 16%, transparent);
  color: color-mix(in srgb, var(--text) 78%, var(--brand));
  border: 1px solid color-mix(in srgb, var(--accent-bright) 30%, transparent);
}
.chip.muted {
  background: var(--raised);
  color: var(--muted);
  border-color: var(--border);
}
.product-link { margin-left: auto; font-weight: 600; font-size: .9rem; color: var(--accent); text-decoration: none; }
.product-link:hover { text-decoration: underline; }

/* ---------- Produkt-Spotlight (Solo-Produkt-Layout) ----------
   Wird verwendet, solange nur Aisly im Sortiment ist. Sobald Produkt #2
   dazukommt: wieder auf .product-grid + zwei .product-card umstellen. */
.product-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 56px;
  align-items: center;
}
.spotlight-text { min-width: 0; }
.spotlight-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.spotlight-head img.icon {
  width: 64px; height: 64px; border-radius: 15px; flex: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.spotlight-head h3 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.spotlight-head .tagline { margin: 2px 0 0; color: var(--muted); font-size: 1rem; }
.spotlight-text .desc { margin: 0 0 22px; font-size: 1.02rem; max-width: 52ch; }

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}
.features li::before {
  content: "";
  width: 10px; height: 10px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bright) 18%, transparent);
}
.features b { font-weight: 600; }

.spotlight-visual {
  display: flex;
  justify-content: center;
}

@media (max-width: 760px) {
  .product-spotlight {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .spotlight-visual { order: -1; }
}

/* ---------- Video-Sektion ---------- */
.section--video .lead { margin-bottom: 28px; }
.video-wrap { display: flex; justify-content: center; }
.preview-video {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ---------- Produkt-Still (Spotlight-Visual) ----------
   Die fertig komponierten Stills (Teal-Canvas + eigener Geräterahmen) werden
   ungeschnitten gezeigt — KEIN zusätzlicher CSS-Rahmen, nur runde Ecken + Lift. */
.still { display: block; border-radius: 22px; }
.still-hero {
  width: 100%;
  max-width: 320px;
  height: auto;          /* verhindert vertikales Strecken durch Flex-stretch */
  object-fit: contain;   /* Sicherheitsnetz: niemals verzerren */
  align-self: center;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
/* Visual-Spalte zentriert (kein align-items:stretch, das das Bild streckt). */
.spotlight-visual { align-items: center; }

/* ---------- Stills-Galerie (horizontal scrollbarer Streifen) ---------- */
.stills-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 0 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.stills-gallery .still { margin: 0; scroll-snap-align: center; }
.stills-gallery .still img {
  width: 210px; height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: var(--shadow);
}

/* ---------- Beschreibung (volle Produktbeschreibung) ---------- */
.section--description .lead {
  font-size: 1.12rem;
  color: var(--text);
  max-width: 60ch;
  margin-bottom: 28px;
}
.desc-body { max-width: 68ch; }
.desc-intro { font-size: 1.03rem; margin: 0 0 30px; }
.desc-block { margin: 0 0 24px; }
.desc-block h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.desc-block p { margin: 0; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-tint));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact-card h2 { margin: 0 0 6px; color: #fff; }
.contact-card p { margin: 0; color: rgba(255,255,255,.82); max-width: 46ch; }
.contact-card .btn-primary { background: #fff; color: var(--brand); }
.contact-card .btn-primary:hover { background: #eef1f4; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 24px;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .footer-top { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .footer-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); max-width: 70ch; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 24px 70px; }
.notfound .code {
  font-family: var(--font-display);
  font-size: 3.2rem; font-weight: 700;
  color: var(--accent); letter-spacing: -0.03em;
  margin: 0;
}
.notfound h1 { font-size: 1.8rem; margin: 4px 0 12px; }
.notfound .muted { color: var(--muted); margin: 0 0 28px; }

/* ---------- Rechtstext-Seiten ---------- */
.legal { padding: 40px 0 16px; }
.legal h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.legal h2 { margin-top: 2.4rem; font-size: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.legal h3 { margin-top: 1.6rem; font-size: 1.05rem; }
.legal p, .legal li { color: var(--text); }
.legal a { color: var(--accent); }
.legal .meta { color: var(--muted); font-style: italic; }
.lang-switch { font-size: .92rem; margin: 8px 0 28px; color: var(--muted); }
.lang-switch a { color: var(--accent); text-decoration: none; margin: 0 6px; }
.lang-switch a.active { color: var(--text); font-weight: 600; }
code { background: color-mix(in srgb, var(--muted) 18%, transparent); padding: .12em .35em; border-radius: 4px; font-size: .9em; }

@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  .contact-card { padding: 26px; }
  .nav a { padding: 8px 8px; }
}
