/*
 * Marcus Schröder Digital: Editorial Refinement 1.1
 * Bewusst schlank, keine Frameworks, keine externen Ressourcen.
 * Die Basisgestaltung bleibt im HTML erhalten, diese Datei ergänzt sie.
 */
:root {
  --panel: #ffffff;
  --field-border: #a9b5af;
  --hero-glow: rgba(14, 116, 102, .055);
  --surface-tint: rgba(14, 116, 102, .055);
  --soft-shadow: 0 16px 48px -39px rgba(18, 32, 27, .35);
  --switch-bg: #f0f2ef;
  --switch-ring: rgba(14, 116, 102, .21);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --panel: #1c2421;
    --field-border: #66756f;
    --hero-glow: rgba(79, 194, 174, .075);
    --surface-tint: rgba(79, 194, 174, .065);
    --soft-shadow: 0 18px 48px -33px rgba(0, 0, 0, .8);
    --switch-bg: #26312d;
    --switch-ring: rgba(79, 194, 174, .26);
  }
}
:root[data-theme="dark"] {
  --panel: #1c2421;
  --field-border: #66756f;
  --hero-glow: rgba(79, 194, 174, .075);
  --surface-tint: rgba(79, 194, 174, .065);
  --soft-shadow: 0 18px 48px -33px rgba(0, 0, 0, .8);
  --switch-bg: #26312d;
  --switch-ring: rgba(79, 194, 174, .26);
}
:root[data-theme="light"] { color-scheme: light; }
::selection { background: var(--mark); color: var(--ink); }
body { transition: background-color .22s ease, color .22s ease; }
.top { border-top: 3px solid var(--teal); box-shadow: 0 12px 24px -25px var(--ink); }
.top .wrap { min-height: 78px; gap: clamp(10px, 1.3vw, 20px); }
.brand { gap: 10px; }
.brand img { height: 35px; }
.brand span { letter-spacing: -.012em; }
.nav { gap: clamp(12px, 1.4vw, 20px); }
.nav a { font-size: .90rem; font-weight: 600; transition: color .15s ease, border-color .15s ease; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); border-bottom-width: 2px; }
.top .btn { font-size: .87rem; padding-inline: 1em; }
/* Greifbarer, bewusst sichtbarer Hell-/Dunkel-Schalter. */
.theme-toggle {
  appearance: none;
  flex: none;
  min-height: 43px;
  min-width: 102px;
  padding: 7px 11px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--switch-bg);
  color: var(--ink);
  cursor: pointer;
  font: 600 .83rem/1.2 var(--sans);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover { border-color: var(--teal); box-shadow: 0 0 0 3px var(--switch-ring); }
.theme-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.theme-toggle svg { display: block; width: 18px; height: 18px; flex: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.theme-toggle .theme-label { min-width: 43px; text-align: left; }
.btn { border-radius: 8px; box-shadow: 0 0 0 0 transparent; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-main { font-weight: 700; }
.btn-soft { background: var(--panel); }
.h1 { font-size: clamp(2.4rem, 4.45vw, 4.12rem); letter-spacing: -.025em; }
.h2 { letter-spacing: -.017em; }
.kicker { font-size: .77rem; letter-spacing: .075em; text-transform: uppercase; font-weight: 700; }
.hero { position: relative; background: radial-gradient(ellipse 56% 80% at 85% 7%, var(--hero-glow), transparent 82%); }
.hero .wrap { gap: clamp(40px, 5.6vw, 82px); }
.hero-copy { gap: 26px; }
.hero .lead { font-size: clamp(1.14rem, 1.5vw, 1.26rem); }
.photo img { border-radius: 13px; border: 1px solid var(--rule); box-shadow: var(--soft-shadow); }
.photo figcaption { padding-left: 2px; }
.facts-line { line-height: 1.55; }
.section { border-top: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
.section.stone, .talk { border-color: var(--rule); }
.head { gap: 17px; }
.lines > li { padding-block: 23px; }
.services > li h3 a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.services > li h3 a:hover { text-decoration-color: var(--teal); }
.steps li { border-top-color: var(--teal); }
.steps li::before { opacity: .88; }
/* Bücher als sauber abgegrenzte, gut scannbare Editorial-Karten. */
.shelf { gap: 18px; }
.book {
  padding: 15px 15px 20px;
  gap: 13px;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: border-color .2s ease, transform .2s ease;
}
.book:hover { border-color: var(--teal); transform: translateY(-3px); }
.book .cover { border-radius: 8px; background: var(--stone); }
.book .type { letter-spacing: .015em; }
.book .links { margin-top: 4px; }
.book-row .cover { border: 1px solid var(--rule); }
.book-row .actions { padding-top: 7px; }
.ref-card { background: var(--panel); box-shadow: var(--soft-shadow); }
.form { border: 1px solid var(--rule); background: var(--stone); }
.field input, .field textarea {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--field-border);
  border-radius: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .9; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--switch-ring); }
.form .btn { min-width: 185px; justify-content: center; }
.talk { background: var(--stone); }
.foot { border-top: 3px solid var(--teal); }
.foot a:focus-visible { outline-color: #91d8ca; }
/* Ein früherer Responsive-Breakpoint gibt der Navigation mit Schalter Platz. */
@media (max-width: 1120px) {
  .js .nav, .top .btn { display: none; }
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 15px 30px -25px var(--ink);
    padding: 9px max(20px, env(safe-area-inset-left, 0px)) 20px;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav.open .btn { display: inline-flex; margin-top: 14px; justify-content: center; border: 0; color: var(--on-teal); }
  .menu-btn { margin-left: auto; }
  .top .wrap { min-height: 72px; }
}
@media (max-width: 600px) {
  .top .wrap { gap: 8px; }
  .brand { gap: 6px; }
  .brand img { height: 31px; }
  .brand span { font-size: 1rem; }
  .menu-btn { padding-inline: 11px; font-size: .86rem; }
  .theme-toggle { min-width: 43px; min-height: 43px; padding: 9px; }
  .theme-toggle .theme-label { display: none; }
  .hero { padding-top: 38px; }
  .hero-copy { gap: 22px; }
  .book { padding: 16px; }
}
@media (max-width: 370px) {
  .brand img { height: 29px; }
  .brand span { font-size: .9rem; }
  .menu-btn { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  body, .book, .btn, .theme-toggle { transition: none !important; }
  .book:hover, .btn:hover { transform: none; }
}
@media (max-width: 380px) {
  .menu-btn { font-size: 0; width: 43px; padding-inline: 0; justify-content: center; }
  .menu-btn::before { content: "☰"; font: 400 1.35rem/1 var(--sans); }
}

/* 1.2: zwei klare Kompetenzfelder und eigenständige KI-Beratung. */
.path-section { padding-block: clamp(64px,8vw,112px); }
.path-head { max-width: 750px; display: grid; gap: 17px; margin-bottom: 34px; }
.path-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.path-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(26px,3.4vw,43px); display: flex; flex-direction: column; gap: 19px; box-shadow: var(--soft-shadow); }
.path-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.path-id { font: 700 .72rem/1.3 var(--sans); color: var(--teal); letter-spacing: .08em; text-transform: uppercase; }
.path-symbol { font: 400 2.1rem/1 var(--serif); color: var(--teal); }
.path-card h3 { font: 500 clamp(1.7rem,2.65vw,2.4rem)/1.15 var(--serif); letter-spacing: -.015em; }
.path-card p { color: var(--muted); }
.path-card ul { margin: 2px 0 8px; padding-left: 19px; display: grid; gap: 7px; color: var(--ink); font-size: .95rem; }
.path-card .more { margin-top: auto; align-self: flex-start; }
.path-card:focus-within, .path-card:hover { border-color: var(--teal); }
.field select { width: 100%; appearance: auto; min-height: 49px; border: 1px solid var(--field-border); border-radius: 8px; background: var(--panel); color: var(--ink); padding: 10px 12px; font: inherit; }
.field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--switch-ring); }
.ai-hero { padding: clamp(55px,7vw,100px) 0 clamp(58px,7vw,95px); border-bottom: 1px solid var(--rule); }
.ai-hero .wrap { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(280px,.78fr); align-items: center; gap: clamp(35px,5vw,90px); }
.ai-hero .hero-copy { display: grid; gap: 25px; }
.ai-hero .h1 { max-width: 18ch; }
.ai-badge { display: inline-flex; align-items:center; gap:9px; font: 700 .73rem/1.3 var(--sans); letter-spacing:.07em; text-transform:uppercase; color:var(--teal); }
.ai-art { position: relative; border: 1px solid var(--rule); border-radius: 15px; min-height: 370px; background: var(--stone); display:grid; align-content:center; padding:clamp(24px,4vw,48px); overflow:hidden; }
.ai-art::before { content:""; position:absolute; width:240px;height:240px;border:1px solid var(--teal);opacity:.18;border-radius:50%;right:-75px;top:-78px; }
.ai-art::after { content:""; position:absolute; width:165px;height:165px;border:1px dashed var(--teal);opacity:.22;border-radius:50%;left:-75px;bottom:-82px; }
.ai-art .diagram-title { font: 500 1.9rem/1.22 var(--serif); margin-bottom:20px; }
.ai-sequence { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.ai-sequence li { padding:12px 15px; border:1px solid var(--rule); border-radius:7px; background:var(--panel); font: 600 .88rem/1.45 var(--sans); }
.ai-sequence li:nth-child(2) { margin-left: 22px; border-color:var(--teal); }
.ai-sequence li:nth-child(3) { margin-left: 44px; }
.ai-sequence small { color:var(--teal); margin-right:11px; }
.ai-case-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:30px; }
.ai-case { padding:26px; border:1px solid var(--rule); border-radius:11px; background:var(--panel); }
.ai-case .case-n { font:700 .78rem/1.3 var(--sans);color:var(--teal);letter-spacing:.06em; }
.ai-case h3 { font:500 1.43rem/1.25 var(--serif);margin:11px 0 13px; }
.ai-case p { color:var(--muted); font-size:.98rem; }
.ai-case .mini-path { margin-top:17px; padding-top:13px; border-top:1px solid var(--rule); color:var(--ink); font-size:.9rem; }
.ai-steps { counter-reset: ai-counter; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:32px; }
.ai-steps article { border-top: 3px solid var(--teal); padding-top:22px; }
.ai-steps article::before { counter-increment:ai-counter; content:"0" counter(ai-counter); display:block; font:600 .83rem var(--sans);color:var(--teal);margin-bottom:17px; }
.ai-steps h3 { font:500 1.48rem var(--serif);margin-bottom:9px; }
.ai-steps p { color:var(--muted);font-size:.97rem; }
.ai-split { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(30px,6vw,90px);align-items:start; }
.ai-split .head { position:sticky;top:120px; }
.ai-faq { display:grid; gap:0; }
.ai-faq details { border-bottom:1px solid var(--rule); padding:19px 0; }
.ai-faq summary { list-style:revert; cursor:pointer; font-weight:650;line-height:1.5; }
.ai-faq details p { color:var(--muted);margin-top:12px; }
.ai-proof { font-size:.89rem; color:var(--muted); border-left:2px solid var(--teal); padding-left:16px; }
@media(max-width:850px) { .ai-hero .wrap { grid-template-columns:1fr; } .ai-art{min-height:300px;} .ai-split{grid-template-columns:1fr;} .ai-split .head{position:static;} }
@media(max-width:670px) { .path-grid,.ai-case-grid,.ai-steps {grid-template-columns:1fr;} .path-card {padding:27px;} .ai-hero .h1{max-width:none;} .ai-sequence li:nth-child(2),.ai-sequence li:nth-child(3) {margin-left:0;} }

/* Desktop-Navigation: kurze Zeilen ohne unschöne Umbrüche. */
@media (min-width: 1121px) {
  header.top .nav > a:not(.btn) { white-space: nowrap; font-size: .83rem; }
  header.top .nav { gap: 9px; }
}
