/* Jakomin KG – site styles. No external resources, system fonts only. */
:root {
  --navy: #1b2b4b;
  --accent: #0f7c8c;
  --accent-strong: #0b6470;
  --bg: #ffffff;
  --bg-soft: #f3f7f9;
  --bg-tint: #eaf4f5;
  --surface: #ffffff;
  --text: #24292f;
  --muted: #5f6b7a;
  --line: #dbe3ea;
  --heading: var(--navy);
  --hero-from: #13213d;
  --hero-to: #0d4f5a;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 8px 24px rgba(16, 32, 64, .06);
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3cc4d4;
    --accent-strong: #66d4e1;
    --bg: #0e1420;
    --bg-soft: #131b2a;
    --bg-tint: #16303a;
    --surface: #172133;
    --text: #dbe2ea;
    --muted: #9aa8b8;
    --line: #273349;
    --heading: #eef3f8;
    --hero-from: #0b1222;
    --hero-to: #0b3a43;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg); overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.nav { display: flex; align-items: center; height: 64px; gap: 12px; }
.nav > nav { margin-left: auto; order: 1; }
.nav .lang-switch { order: 2; }
.nav .nav-toggle { order: 3; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 38px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--heading); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-decoration: none;
}
.lang-switch:hover { background: var(--bg-tint); color: var(--heading); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 700; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; font-size: .9rem; letter-spacing: .02em;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; line-height: 1.1; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text); font-size: .95rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-tint); color: var(--heading); }
.nav-links a.cta { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .nav-links a.cta { color: #06222a; } }
.nav-links a.cta:hover { background: var(--accent-strong); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--heading); padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 12px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  color: #fff; background:
    radial-gradient(900px 400px at 85% 10%, rgba(60, 196, 212, .25), transparent 60%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px);
}
.hero .eyebrow { color: #9fe3eb; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); letter-spacing: -.02em; max-width: 22ch; margin-bottom: .4em; }
.hero h1 span { color: #7fdbe6; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 62ch; color: #d5e3ee; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #3cc4d4; color: #06222a; }
.btn-primary:hover { background: #66d4e1; color: #06222a; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
  margin-top: clamp(36px, 6vw, 56px); padding: 0; list-style: none;
}
.facts li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px 18px; }
.facts strong { display: block; font-size: 1.5rem; color: #fff; line-height: 1.2; }
.facts span { color: #b8cad8; font-size: .9rem; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { display: flex; align-items: center; gap: 12px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { margin: 0; }
.card li { margin-bottom: .3em; }
.card.featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, var(--bg-tint), var(--surface) 60%); }
.icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-tint); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); background: var(--bg-tint); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.tags li { font-size: .82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.quote { font-size: 1.15rem; font-weight: 600; color: var(--heading); border-left: 4px solid var(--accent); padding-left: 16px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.lang { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.lang li { background: var(--bg-soft); border-radius: 10px; padding: 8px 12px; font-size: .95rem; }
.lang small { color: var(--muted); display: block; }

/* ---------- Experience ---------- */
.domains .card { border-top: 3px solid var(--accent); }
.domains h3 { font-size: 1.08rem; }
.domains p { color: var(--muted); }
.tags.tasks li { font-size: .92rem; padding: 6px 14px; color: var(--text); background: var(--surface); }

/* ---------- Disclosure (InSiSt, Kochbuch, FAQ) ---------- */
details.fold {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
details.fold > summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 650; color: var(--heading); font-size: 1.05rem;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s;
}
details.fold[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.fold > summary:hover { background: var(--bg-soft); }
details.fold .fold-body { padding: 4px 22px 22px; }
details.fold .fold-body p:last-child { margin-bottom: 0; }
.fold-body figure { margin: 4px 0 18px; }
.fold-body figure img { border-radius: 10px; border: 1px solid var(--line); background: #fff; max-height: 360px; width: auto; margin: 0 auto; }
.fold-body figure.comic { margin: 0 0 18px; }
.fold-body figure.comic img { max-height: none; width: 100%; max-width: 650px; height: auto; }
.fold-body figure.comic:last-child { margin: 18px 0 0; }
.fold-body figure.comic.narrow img { max-width: 480px; }
.fold-body figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; text-align: center; }
.fold-body .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.fold-body .pair img { height: 170px; width: 100%; object-fit: cover; border-radius: 10px; }
.fold-body h4 { margin-top: 0; }
.cols-2 { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }
.principle { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.principle li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.principle b { color: var(--accent); }

/* ---------- Testimonials ---------- */
.testimonials { columns: 3 320px; column-gap: 20px; }
.testimonial { break-inside: avoid; margin: 0 0 20px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1rem; }
.testimonial blockquote::before { content: "\201E"; display: block; font-size: 3rem; line-height: .6; color: var(--accent); font-family: Georgia, serif; margin-bottom: 10px; }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.person strong { display: block; color: var(--heading); line-height: 1.3; }
.person span { font-size: .85rem; color: var(--muted); line-height: 1.35; display: block; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 40px 0 0; }
.logos a {
  display: grid; place-items: center; height: 84px; padding: 14px 18px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); transition: transform .15s;
}
.logos a:hover { transform: translateY(-2px); }
.logos img { max-height: 44px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos a:hover img { filter: none; opacity: 1; }

/* ---------- Contact / footer ---------- */
.contact {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #d5e3ee; border-radius: 20px;
  padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr; align-items: center;
}
.contact h2 { color: #fff; }
.contact .mail { font-size: clamp(1.1rem, 1rem + .8vw, 1.5rem); font-weight: 700; color: #7fdbe6; text-decoration: none; word-break: break-all; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
footer { border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
footer p { margin-bottom: .5em; }
.copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
