/* andreaskoller.de – ein Stylesheet für alle Seiten.
   Schrift lokal eingebunden (keine Verbindung zu Google Fonts o. Ä.). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-text: #ffffff;
  --line: #d6d3d1;
  --shadow: 0 1px 2px rgb(28 25 23 / .06), 0 8px 24px rgb(28 25 23 / .06);
  --radius: 14px;
  --max: 720px;
  --max-wide: 1080px;
  color-scheme: light;
}

/* Dunkel: manuell gewählt (data-theme="dark") oder vom System, solange nicht „Hell“ gewählt ist */
:root[data-theme="dark"] {
  --bg: #0c0a09;
  --surface: #1c1917;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --border: #292524;
  --accent: #2dd4bf;
  --accent-soft: #134e4a;
  --accent-text: #042f2e;
  --line: #44403c;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a09;
    --surface: #1c1917;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --border: #292524;
    --accent: #2dd4bf;
    --accent-soft: #134e4a;
    --accent-text: #042f2e;
    --line: #44403c;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.wide { max-width: var(--max-wide); }
.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: 14px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  z-index: 10;
}
.header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-left: -4px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { background: var(--surface); }
.logo svg { color: var(--accent); flex: none; }
.logo span { color: var(--accent); margin-left: -8px; }

/* Sprachumschalter */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  flex: none;
}
.lang-switch a {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a[aria-current] { background: var(--text); color: var(--bg); }
.lang-switch a:not([aria-current]):hover { color: var(--text); }

.header-right { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 400px) {
  .header-left { gap: 2px; }
  .header-right { gap: 6px; }
  .logo { font-size: 15px; padding: 6px; gap: 6px; }
  .lang-switch a { padding: 3px 9px; }
}
@media (max-width: 340px) {
  .logo svg { display: none; }
}

/* Darstellung: System / Hell / Dunkel (ein Knopf, schaltet weiter) */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { display: none; }
:root:not([data-theme]) .theme-toggle .i-system,
:root[data-theme="light"] .theme-toggle .i-light,
:root[data-theme="dark"] .theme-toggle .i-dark { display: block; }

/* App-Umschalter (wie in Office) */
.switcher { position: relative; }
.switcher summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary:hover, .switcher[open] summary { background: var(--surface); color: var(--text); }
.switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform-origin: top left;
  animation: pop .16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .switcher-panel { animation: none; } }
.switcher-title {
  margin: 0 0 8px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.switcher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.switcher-grid:last-child { margin-bottom: 0; }
.switcher-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.switcher-grid a:hover { background: var(--bg); }

/* ---------- Icons (Platzhalter bis echte Icons da sind) ---------- */
.icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  background: var(--c, var(--accent));
  color: #fff;
  font-weight: 800;
  line-height: 1;
  border-radius: 24%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.icon-tile {
  /* Abstand fest je Größe: Prozentwerte bezögen sich auf die Breite des Elternelements */
  padding: 5px;
  background: color-mix(in srgb, var(--c) 18%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent);
  object-fit: contain;
}
.icon-sm { width: 28px; height: 28px; font-size: 14px; }
.icon-md { width: 44px; height: 44px; font-size: 20px; }
.icon-xl { width: 72px; height: 72px; font-size: 34px; }
.icon-sm.icon-tile { padding: 3px; }
.icon-xl.icon-tile { padding: 9px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.button:hover { opacity: .9; }
.button:active { transform: scale(.97); }
.button-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button-ghost:hover { background: var(--surface); opacity: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Startseite ---------- */
.hero { padding-top: 40px; padding-bottom: 32px; }
.hero h1 {
  font-size: clamp(36px, 6.5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero .intro {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 32em;
}
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 14px;
}
.hero .eyebrow { color: var(--accent); }

.hero-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) {
  .hero-split { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 48px; }
}

/* Ökosystem-Grafik: Werner in der Mitte */
.eco {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-lines circle { fill: none; stroke: var(--line); stroke-width: .35; stroke-dasharray: 1 1.6; }
.eco-lines line {
  stroke: var(--line);
  stroke-width: .45;
  stroke-dasharray: 1.6 1.4;
  animation: flow 3s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -6; } }
@media (prefers-reduced-motion: reduce) { .eco-lines line { animation: none; } }
.eco-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease;
}
.eco-node .icon { box-shadow: var(--shadow); transition: transform .2s ease; }
.eco-node:hover .icon { transform: translateY(-3px); }
.eco-node .label { background: var(--bg); padding: 0 6px; border-radius: 6px; }
.eco-hub { font-size: 15px; }
.eco-hub .icon { width: 88px; height: 88px; font-size: 42px; }
.eco-hub .icon-tile { padding: 11px; }
.eco-hub::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 50%;
  width: 150px;
  height: 150px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hub, var(--accent)) 22%, transparent), transparent 70%);
  z-index: -1;
}
@media (max-width: 420px) {
  .eco-node { font-size: 12px; }
  .eco-node .icon-md { width: 38px; height: 38px; font-size: 17px; }
  .eco-hub .icon { width: 70px; height: 70px; font-size: 34px; }
  .eco-hub .icon-tile { padding: 9px; }
  .eco-node .icon-md.icon-tile { padding: 4px; }
  .eco-hub::before { top: 35px; }
}

section { padding: 28px 0; }

.how {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.how li {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.how strong { display: block; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.how span { color: var(--muted); font-size: 15px; line-height: 1.55; display: block; }

/* KI-Abschnitt */
.ai {
  display: grid;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
@media (min-width: 880px) { .ai { grid-template-columns: 1.35fr 1fr; gap: 40px; padding: 40px; } }
.ai h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 12px; text-wrap: balance; }
.ai .eyebrow { color: var(--accent); }
.ai-text { color: var(--muted); margin: 0 0 20px; }
.ai-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ai-points li { padding-left: 16px; border-left: 3px solid var(--accent-soft); font-size: 16px; line-height: 1.55; color: var(--muted); }
.ai-points strong { display: block; color: var(--text); }
.ai-providers { background: var(--bg); border-radius: 12px; padding: 20px; align-self: start; }
.ai-providers-title { margin: 0 0 4px; font-weight: 800; letter-spacing: -0.01em; }
.ai-group { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.ai-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.ai-own { margin-top: 16px; padding-top: 2px; border-top: 1px solid var(--border); }

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.products a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.products a:hover { border-color: var(--accent); }
.products a:active { transform: scale(.985); }
.products strong { display: block; font-size: 17px; letter-spacing: -0.01em; }
.products em { display: block; font-style: normal; color: var(--muted); font-size: 14px; line-height: 1.4; }

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 8px; }
.contact p { color: var(--muted); margin: 0 0 20px; }
.contact .contact-lead { margin-bottom: 10px; }

/* Raster: Programme 1 → 2 → 3 Spalten, „So hängt alles zusammen“ 1 → 2 Spalten */
@media (min-width: 600px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Produkt- und App-Seiten ---------- */
.product { padding-top: 24px; padding-bottom: 24px; }
.product-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.product-head h1 { font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 18px; }
.lead { font-size: 19px; margin: 0 0 20px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230f766e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
:root[data-theme="dark"] .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232dd4bf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232dd4bf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); display: block; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.mini-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mini-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.mini-list a:hover { border-color: var(--accent); }
.mini-list .icon { border-radius: 50%; }

/* Häufige Fragen */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 600; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
code { font-size: .9em; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; word-break: break-all; }

/* ---------- Rechtstexte ---------- */
.legal { padding-top: 24px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.stand { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: 21px; letter-spacing: -0.015em; margin: 40px 0 8px; }
.legal ul { padding-left: 1.2em; }
address { font-style: normal; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; font-size: 15px; }

.license-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 12px 0; }
.license-box summary { cursor: pointer; padding: 10px 16px; font-weight: 700; font-size: 15px; }
.license { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }
