/* =====================================================================
   akoi.me – Unternehmenswebsite
   Stil exakt im Look der UmgangsPlaner-App
   Farben: Teal #4e9c94 · Dunkel #254540 · Hintergrund #f5f8f5
   DSGVO: keine externen Fonts/CDNs/Tracker – alles lokal
   ===================================================================== */

/* ---------- Lokale Schrift: Playfair Display ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-v40-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-v40-latin-700.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --bg:               #f5f8f5;
  --foreground:       #254540;
  --primary:          #4e9c94;
  --primary-dark:     #3d7d76;
  --primary-light:    #69ae91;
  --primary-fg:       #ffffff;
  --secondary:        #e8f1ed;
  --muted:            #ecf2ee;
  --muted-fg:         #61837d;
  --accent:           #d7e9e1;
  --border:           #d8e8e3;
  --card:             #ffffff;
  --destructive:      #dc2828;

  --radius:           12px;
  --radius-card:      24px;
  --radius-pill:      999px;

  --shadow-sm:        0px 1px 3px rgba(46,100,90,.10);
  --shadow-lg:        0px 10px 24px rgba(46,100,90,.14), 0px 4px 6px -1px rgba(46,100,90,.08);
  --shadow-glass:     0 18px 40px rgba(50,88,80,.10);

  --serif:  "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --maxw:   1152px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.15;
  margin: 0 0 .5em;
}

/* ---------- Layout-Container ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 248, 245, 0.80);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 232, 227, 0.60);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 64px 0 36px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.0rem);
  line-height: 1.05;
  margin-bottom: .35em;
}
.hero h1 .accent { color: var(--primary); display: block; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--muted-fg);
  max-width: 680px;
  margin: 0 auto 1.8em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--primary-fg); }

/* ---------- Sektionen ---------- */
.section { padding: 56px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-head h2 { font-size: 1.95rem; }
.section-head p { color: var(--muted-fg); margin: 0; }

/* ---------- Produkt-Karten ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(74, 122, 110, 0.14);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 28px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card.is-dev { opacity: .96; }

/* roter Balken "in der Entwicklung" */
.dev-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--destructive);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.dev-ribbon::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.product-icon svg { width: 30px; height: 30px; color: var(--primary); }

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: .3em;
}
.product-card .subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 14px;
}
.product-card p.desc {
  color: var(--muted-fg);
  font-size: .98rem;
  margin: 0 0 20px;
  flex-grow: 1;
}
.product-card .card-action { margin-top: auto; }
.product-card .card-action .btn { width: 100%; }

/* Vorschau-Bildbereich für Umgangsplaner */
.product-preview {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--muted);
}
.product-preview .mock {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--secondary) 70%);
}
.product-preview .mock svg { width: 64px; height: 64px; color: var(--primary); }

/* ---------- Über-uns / Info-Box ---------- */
.about {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(232, 241, 237, 0.70);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.about .heart { color: var(--primary); flex-shrink: 0; }
.about .heart svg { width: 26px; height: 26px; }
.about p { margin: 0; color: var(--foreground); }
.about p + p { margin-top: .8em; }

/* ---------- Inhaltsseiten (Impressum etc.) ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 0;
}
.legal h1 { font-size: 2.2rem; margin-bottom: .8em; }
.legal h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--foreground); }
.legal .muted { color: var(--muted-fg); }
.legal address { font-style: normal; line-height: 1.7; }
.legal .updated {
  color: var(--muted-fg);
  font-size: .9rem;
  margin-top: 3em;
}
.notice-box {
  background: rgba(232, 241, 237, 0.70);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
}
.notice-box h2 { border: none; padding: 0; margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(232, 241, 237, 0.40);
  border-top: 1px solid rgba(216, 232, 227, 0.60);
  padding: 32px 0;
  margin-top: 24px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-brand svg { width: 26px; height: 26px; }
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.footer-links a { color: var(--muted-fg); font-size: .9rem; }
.footer-links a:hover { color: var(--foreground); text-decoration: none; }
.footer-copy {
  color: var(--muted-fg);
  font-size: .875rem;
}

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .hero { padding-top: 44px; }
  .about { flex-direction: column; }
  .section { padding: 44px 0; }
}
