/* algonice — gemeinsames Stylesheet (Brand-Palette Variante A) */
:root {
  --bg: #ffffff;
  --bg-soft: #f4fbfa;
  --teal: #14b8a6;
  --teal-2: #2dd4bf;
  --teal-dark: #0d9488;
  --coral: #ff6b5e;
  --ink: #1f2933;
  --muted: #5b6b7a;
  --card: #ffffff;
  --border: #e6edf0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 60, 70, 0.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header { padding: 1.6rem 0; }
.brand {
  display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand .dot { color: var(--coral); }
.brand small {
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-dark);
}

/* Typografie */
main { padding: 1.5rem 0 3rem; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 1rem; }
h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 2.2rem 0 0.7rem; }
h3 { font-size: 1.05rem; color: var(--teal-dark); margin: 1.4rem 0 0.4rem; }
p, li { margin-bottom: 0.8rem; }
ul, ol { padding-left: 1.3rem; margin-bottom: 0.8rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--teal-dark); }
.soft { color: var(--muted); }
.accent {
  background: linear-gradient(100deg, var(--teal), var(--teal-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Bausteine */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--bg-soft); border: 1px solid #cfeeea; color: var(--teal-dark);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20,184,166,0.5); animation: pulse 2s infinite;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.band {
  background: var(--bg-soft); border: 1px solid #d8eeeb; border-radius: var(--radius);
  padding: 1.6rem 1.8rem; margin: 2rem 0;
}
.btn {
  display: inline-block; background: linear-gradient(100deg, var(--teal), var(--teal-2));
  color: #fff; font-weight: 700; text-decoration: none;
  padding: 0.85rem 1.8rem; border-radius: 999px; letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(20,184,166,0.35); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,184,166,0.4); }
.btn-coral { background: linear-gradient(100deg, var(--coral), #ff8a7f); box-shadow: 0 8px 20px rgba(255,107,94,0.35); }
.btn-coral:hover { box-shadow: 0 12px 26px rgba(255,107,94,0.4); }
.btn-soon {
  display: inline-block; background: var(--bg-soft); color: var(--teal-dark);
  border: 1px solid #cfeeea; font-weight: 700;
  padding: 0.85rem 1.8rem; border-radius: 999px; letter-spacing: 0.01em; cursor: default;
}

/* Tabellen */
.table-scroll { overflow-x: auto; margin: 1rem 0; }
table.cmp { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
table.cmp th, table.cmp td { border: 1px solid var(--border); padding: 0.6rem 0.9rem; text-align: left; vertical-align: top; }
table.cmp th { background: var(--bg-soft); color: var(--teal-dark); }
table.cmp td:first-child { font-weight: 600; }

/* Rechtstexte (Nutzungsbedingungen, Auftragsverarbeitung) — erzeugt aus Markdown,
   siehe tools/build_rechtstexte.py. Kein Handbetrieb im Vertragstext. */
.rechtstext { font-size: 0.97rem; }
.rechtstext .doc-sub { font-size: 1.15rem; color: var(--muted); margin: -0.6rem 0 1.2rem; }
.rechtstext h2 { font-size: 1.28rem; margin-top: 2.4rem; }
.rechtstext h2.teil { font-size: 1.6rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 2px solid var(--teal); }
.rechtstext h3 { font-size: 1.05rem; margin-top: 1.8rem; }
.rechtstext li { margin-bottom: 0.5rem; }
.rechtstext blockquote { margin: 1.2rem 0; padding: 0.7rem 1.1rem; border-left: 3px solid #cfeeea; background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.rechtstext blockquote p { margin: 0.4rem 0; }
.rechtstext table.cmp { font-size: 0.85rem; }
.rechtstext table.cmp th, .rechtstext table.cmp td { padding: 0.45rem 0.6rem; }
.rechtstext table.cmp td:first-child { font-weight: 400; }
.fassung { background: var(--bg-soft); border: 1px solid #d8eeeb; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.5rem 0 2.5rem; }
.fassung .version { margin-top: 0; font-size: 1.05rem; }
.fassung p:last-child { margin-bottom: 0; }
.archiv-hinweis { border-left: 3px solid var(--coral); padding-left: 1.1rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 1.6rem 0 2.4rem; margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center;
  justify-content: space-between; color: var(--muted); font-size: 0.88rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--teal-dark); }
footer .status { display: inline-flex; align-items: center; gap: 0.5rem; }
footer .status .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.social { display: inline-flex; align-items: center; gap: 0.7rem; }
.social a { display: inline-flex; align-items: center; gap: 0.3rem; }
.social svg { flex-shrink: 0; }

/* Top-Navigation (sticky, alle Seiten) */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topnav {
  position: relative; display: flex; align-items: center; gap: 1.3rem;
  max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.5rem;
}
.topnav .brand { font-size: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-cta { font-size: 0.9rem; padding: 0.55rem 1.2rem; white-space: nowrap; }
.nav-toggle { display: none; }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 11px; cursor: pointer; border-radius: 10px;
}
.nav-burger:hover { background: var(--bg-soft); }
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
/* 980px statt 880px: seit dem 5. Menuepunkt ("Verbesserungen") wird die Leiste frueher eng */
@media (max-width: 980px) {
  .topnav { gap: 0.8rem; }
  .topnav .brand small { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; gap: 0.9rem;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-cta { margin-left: auto; font-size: 0.82rem; padding: 0.5rem 0.9rem; }
  .nav-burger { display: flex; }
}

/* Feature-Screenshots (funktionen.html + Teaser auf index) */
.features { padding-bottom: 3rem; }
.features h2 { font-size: 1.7rem; letter-spacing: -0.02em; text-align: center; margin: 1rem 0 0.4rem; }
.features .intro { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 1.8rem; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.shots figure {
  margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.shots img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--border); }
.shots figcaption { padding: 0.8rem 1.1rem; font-size: 0.92rem; color: var(--muted); }
.shots figcaption b { color: var(--ink); }
.shots .wide { grid-column: 1 / -1; }
.more-link { text-align: center; margin-top: 1.6rem; font-weight: 600; }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; } }

/* Pricing (preise.html + Teaser-Band auf index) */
.pricing { padding-bottom: 3rem; }
.price-card {
  background: var(--bg-soft); border: 1px solid #d8eeeb; border-radius: var(--radius);
  padding: 2.2rem 2rem; text-align: center;
}
.price-card h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 auto 1.4rem; max-width: 46ch; text-align: left; }
.price-card li { padding-left: 1.6rem; position: relative; margin-bottom: 0.45rem; color: var(--ink); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }
.price-line { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.price-line small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.trial-line { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; }
.legal-line { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.setup-line { font-size: 0.95rem; color: var(--ink); margin-top: 1.1rem; }
.honest-line { font-size: 0.9rem; color: var(--muted); margin-top: 1.2rem; max-width: 62ch; margin-left: auto; margin-right: auto; }
.powered { font-size: 0.88rem; color: var(--muted); margin-top: 1rem; }
.price-teaser { text-align: center; }
.price-teaser h2 { margin-top: 0; }

/* Teaser-Video (index) */
.teaser-video { padding-bottom: 3rem; text-align: center; }
.teaser-video h2 { font-size: 1.7rem; letter-spacing: -0.02em; margin: 1rem 0 0.4rem; }
.teaser-video .intro { color: var(--muted); margin-bottom: 1.4rem; }
.video-card {
  display: block; width: 100%; max-width: 720px; margin: 0 auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); background: var(--bg-soft);
}
.stand { margin-top: 2.5rem; font-size: 0.9rem; color: var(--muted); }

/* ===== Seiten-Sektionen (konsolidiert für PJAX-Navigation) ===== */

/* Startseite: Hero + Werte-Karten */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem;
  align-items: center; padding: 2.5rem 0 3.5rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); line-height: 1.1; margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 44ch; }
.lead strong { color: var(--ink); }
.cta-row { display: flex; align-items: center; gap: 1.3rem; margin-top: 1.6rem; flex-wrap: wrap; }
.cta-row .more { font-weight: 600; }
.cta-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); max-width: 44ch; }
.hero-visual { position: relative; text-align: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 6% 6% 6%; z-index: 0;
  background: radial-gradient(circle at 50% 45%, #d7f5f1 0%, #eafaf8 45%, rgba(255,255,255,0) 72%);
  border-radius: 50%;
}
.hero-visual img {
  position: relative; z-index: 1; width: 100%; max-width: 360px; height: auto;
  filter: drop-shadow(0 18px 26px rgba(20, 80, 90, 0.16));
  animation: float 5s ease-in-out infinite;
}
.meet { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); position: relative; z-index: 1; }
.meet b { color: var(--teal-dark); }

/* Startseite ab 08/2026: Hero-Text einspaltig, darunter der Produkt-Screenshot ueber die
   volle Breite. Ein detailreicher Screenshot ist in der alten schmalen Bildspalte nicht
   lesbar - und das Maskottchen soll nicht mehr das groesste Element der Seite sein. */
.hero.solo { grid-template-columns: 1fr; text-align: center; padding: 2.5rem 0 2rem; }
.hero.solo .lead, .hero.solo .cta-note { margin-left: auto; margin-right: auto; }
.hero.solo .cta-row { justify-content: center; }
.hero-shot { margin: 0 0 3.5rem; }
.hero-shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-shot figcaption {
  margin-top: 0.8rem; text-align: center; font-size: 0.92rem; color: var(--muted);
}
/* Ody sitzt jetzt beim Video, nicht mehr im Hero */
.ody-mini {
  width: 92px; height: auto; margin: 0 auto -0.4rem; display: block;
  filter: drop-shadow(0 10px 14px rgba(20, 80, 90, 0.16));
  animation: float 5s ease-in-out infinite;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding-bottom: 3rem; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 0.9rem; background: var(--bg-soft); color: var(--teal-dark);
}
.card h3 { font-size: 1.1rem; margin: 0 0 0.35rem; color: var(--ink); }
.card p { font-size: 0.96rem; color: var(--muted); margin: 0; }
/* Startseite: Alltags-Beispiele + Datenfluss-Schaubild */
.alltag, .datenfluss { padding-bottom: 2.5rem; }
.alltag h2, .datenfluss h2 {
  font-size: 1.7rem; letter-spacing: -0.02em; text-align: center; margin: 1rem 0 0.4rem;
}
.alltag .intro, .datenfluss .intro {
  text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 1.6rem;
}
.uses { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.uses li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 0; color: var(--muted); font-size: 0.96rem;
}
.uses li b { display: block; color: var(--ink); margin-bottom: 0.2rem; }

.flow { display: flex; align-items: stretch; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.flow-box {
  flex: 1 1 220px; max-width: 300px;
  background: var(--bg-soft); border: 1px solid #d8eeeb; border-radius: var(--radius);
  padding: 1.1rem 1.2rem; text-align: center;
}
.flow-box b { display: block; color: var(--teal-dark); margin-bottom: 0.3rem; }
.flow-box span { font-size: 0.9rem; color: var(--muted); }
.flow-arrow { display: grid; place-items: center; color: var(--teal); font-size: 1.5rem; font-weight: 700; }
.flow-not { text-align: center; margin-top: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.flow-not s { text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 1rem; padding-top: 1rem; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .lead { max-width: 46ch; margin: 0 auto; }
  .cta-note { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .hero-visual img { max-width: 260px; }
  .uses { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-box { max-width: none; }
  .flow-arrow { transform: rotate(90deg); font-size: 1.2rem; }
}

/* Preise: FAQ */
.faq h3 { margin-top: 1.6rem; }

/* Odysseus-Seite: CTA-Band */
.cta-band { text-align: center; }
.cta-band .price { font-size: 1.05rem; margin: 0.8rem 0 0; }

/* Hilfe-Seite: Befehle + nummerierte Handgriffe */
code, .cmd {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em; background: var(--bg-soft); border: 1px solid #cfeeea;
  border-radius: 6px; padding: 0.1em 0.45em; color: var(--teal-dark); white-space: nowrap;
}
.hand { counter-reset: hand; list-style: none; padding: 0; margin: 1rem 0; }
.hand li { counter-increment: hand; position: relative; padding-left: 2.6rem; margin-bottom: 0.9rem; }
.hand li::before {
  content: counter(hand); position: absolute; left: 0; top: 0.1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid #cfeeea; color: var(--teal-dark); font-weight: 700; font-size: 0.9rem;
}

/* Danke-Seite */
.thanks-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-top: 1.5rem; }
.thanks-hero img { width: 180px; height: auto; filter: drop-shadow(0 14px 20px rgba(20,80,90,0.16)); animation: float 5s ease-in-out infinite; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 0.9rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid #cfeeea; color: var(--teal-dark); font-weight: 700; font-size: 0.9rem;
}
.copecart-note { font-size: 0.95rem; }
@media (max-width: 640px) {
  .thanks-hero { grid-template-columns: 1fr; text-align: center; }
  .thanks-hero img { margin: 0 auto; }
}

/* Musik-Player: sitzt seit 08/2026 im Footer statt als schwebende Pille auf der Seite.
   Grund: In der Besucher-Beurteilung las sich die dauerhaft eingeblendete Pille als
   "Hobbyprojekt". Das <audio>-Element bleibt ausserhalb von #page, damit die Musik beim
   Seitenwechsel weiterlaeuft - site.js bindet die Bedienung nach jedem Wechsel neu. */
.music-player {
  display: inline-flex; align-items: center; gap: 0.15rem;
  border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.35rem;
}
.music-player button {
  border: 0; background: none; cursor: pointer; font-size: 0.95rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted);
}
.music-player button:hover { background: var(--bg-soft); color: var(--teal-dark); }
.music-player .mp-title {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s ease, padding 0.3s ease;
}
.music-player.playing .mp-title { max-width: 160px; padding: 0 0.4rem; }
.music-player.playing .mp-toggle { color: var(--coral); }
.mp-line { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-op { flex-basis: 100%; font-size: 0.82rem; }

/* Bewegung nur, wenn das System sie nicht abbestellt hat */
@media (prefers-reduced-motion: reduce) {
  .hero-visual img, .thanks-hero img, .ody-mini, .badge .pulse { animation: none; }
  .btn { transition: none; }
  .music-player .mp-title { transition: none; }
}

/* Verbesserungen: Chronik-Eintraege */
/* Sprungziele muessen unter der klebenden Kopfleiste landen, nicht dahinter.
   Betrifft alle Abschnitts-Permalinks - u. a. #chronik, auf das die Login-Fussleiste
   jeder Kundeninstanz verlinkt. */
h2[id], h3[id] { scroll-margin-top: 90px; }

.log { border-left: 3px solid #cfeeea; padding-left: 1.1rem; margin: 2.2rem 0; scroll-margin-top: 90px; }
.log h3 { margin-top: 0; }
.log .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.log ul { margin-bottom: 0.7rem; }
.log .kind { font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; font-size: 0.9rem; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20,184,166,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}
