/* Soft Cells Info — ruhiges, vertrauensorientiertes Stylesheet (mobile-first) */

:root{
  --primary:#155e6b;
  --primary-deep:#0d3f49;
  --secondary:#41626b;
  --accent:#b5892e;
  --accent-soft:#e8dcc0;
  --seafoam:#6fb5a5;
  --bg:#f4f7f7;
  --surface:#ffffff;
  --surface-alt:#e7eeee;
  --text:#1c2b2e;
  --muted:#54686d;
  --border:#d4dee0;
  --row-alt:#eef4f4;
  --success:#256d52;
  --danger:#9e3a3a;
  --radius:12px;
  --radius-sm:8px;
  --shadow:0 1px 2px rgba(13,63,73,.06),0 6px 18px rgba(13,63,73,.07);
  --shadow-lift:0 2px 4px rgba(13,63,73,.08),0 14px 34px rgba(13,63,73,.12);
}

/* ---------- Basis ---------- */

*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:1rem;
  line-height:1.7;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}

img,svg{max-width:100%;height:auto}

h1,h2,h3,h4{
  font-weight:700;
  line-height:1.25;
  color:var(--primary-deep);
  margin:2.2em 0 .55em;
  letter-spacing:-.01em;
}

h1{font-size:1.72rem;margin-top:0}
h2{font-size:1.42rem}
h3{font-size:1.16rem}
h4{font-size:1.02rem}

h2[id]{scroll-margin-top:84px}

p{margin:0 0 1.1em}

ul,ol{
  margin:0 0 1.2em;
  padding-left:1.35em;
}

li{margin-bottom:.4em}

li::marker{color:var(--secondary)}

a{
  color:var(--primary);
  text-decoration:underline;
  text-decoration-color:color-mix(in srgb,var(--primary) 40%,transparent);
  text-underline-offset:3px;
  transition:color .15s ease,text-decoration-color .15s ease;
}

a:hover{
  color:var(--primary-deep);
  text-decoration-color:var(--accent);
}

:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
  border-radius:3px;
}

strong{color:var(--primary-deep)}

hr{
  border:0;
  border-top:1px solid var(--border);
  margin:2.5rem 0;
}

blockquote{
  margin:1.6em 0;
  padding:1rem 1.2rem;
  background:var(--surface);
  border-left:4px solid var(--seafoam);
  border-radius:0 var(--radius) var(--radius) 0;
  color:var(--muted);
  box-shadow:var(--shadow);
}

blockquote p:last-child{margin-bottom:0}

code{
  font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  font-size:.9em;
  background:var(--surface-alt);
  padding:.15em .4em;
  border-radius:4px;
}

::selection{
  background:var(--primary);
  color:#fff;
}

.container{
  width:100%;
  max-width:74rem;
  margin:0 auto;
  padding-left:1.1rem;
  padding-right:1.1rem;
}

main{padding:1.6rem 0 3rem}

main .container{max-width:50rem}

/* ---------- Kopfbereich ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  box-shadow:0 1px 0 rgba(13,63,73,.03);
}

.site-header .container{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.4rem;
  padding-top:.7rem;
  padding-bottom:.7rem;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  color:var(--primary-deep);
}

.brand img{
  height:44px;
  width:auto;
  object-fit:contain;
  display:block;
}

.brand-text{
  font-size:1.12rem;
  font-weight:800;
  letter-spacing:-.015em;
  white-space:nowrap;
}

.site-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.15rem .35rem;
}

.site-nav li{margin:0}

.site-nav a{
  display:inline-block;
  padding:.4rem .7rem;
  border-radius:999px;
  font-size:.92rem;
  font-weight:600;
  color:var(--secondary);
  text-decoration:none;
  transition:background .15s ease,color .15s ease;
}

.site-nav a:hover{
  background:var(--surface-alt);
  color:var(--primary-deep);
}

.site-nav a[aria-current="page"]{
  background:var(--primary);
  color:#fff;
}

/* ---------- Hero ---------- */

.hero{
  background:linear-gradient(150deg,var(--primary-deep) 0%,var(--primary) 62%,#1e6f7d 100%);
  color:#eef6f7;
  padding:2.6rem 0 2.9rem;
  border-bottom:4px solid var(--accent);
}

.hero .container{max-width:50rem}

.hero h1{
  color:#ffffff;
  font-size:1.72rem;
  margin:0 0 .7rem;
}

.hero a{
  color:#dcefe9;
  text-decoration-color:rgba(220,239,233,.5);
}

.byline{
  font-size:.9rem;
  color:#bcd6da;
  margin-bottom:1.2rem;
}

.byline strong{color:#ffffff}

.lede{
  font-size:1.08rem;
  line-height:1.65;
  color:#e4eff0;
  border-left:3px solid var(--seafoam);
  padding-left:1rem;
}

.lede p{margin-bottom:0}

/* Lede außerhalb des Heros (z. B. Kontaktseite) */
main .lede,
body > .lede{
  color:var(--muted);
  border-left-color:var(--accent);
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  margin-top:1.5rem;
}

.cta{
  display:inline-block;
  padding:.72rem 1.35rem;
  border-radius:999px;
  font-weight:700;
  font-size:.98rem;
  text-decoration:none;
  text-align:center;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}

.cta:hover{transform:translateY(-1px)}

.cta-primary{
  background:var(--accent);
  color:#26200e;
  box-shadow:0 3px 10px rgba(0,0,0,.18);
}

.cta-primary:hover{
  background:#c79a3f;
  color:#1d1808;
}

.cta-secondary{
  background:transparent;
  color:#ffffff;
  border:2px solid rgba(255,255,255,.55);
}

.cta-secondary:hover{
  border-color:#ffffff;
  background:rgba(255,255,255,.1);
  color:#ffffff;
}

.hero .cta:focus-visible{outline-color:#ffffff}

/* ---------- Inhaltsverzeichnis ---------- */

.toc{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.1rem 1.25rem 1rem;
  margin:1.8rem 0 2.4rem;
  box-shadow:var(--shadow);
}

.toc-title{
  margin:0 0 .5rem;
  font-weight:800;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--secondary);
}

.toc ol{
  margin:0;
  padding-left:1.3em;
  columns:1;
}

.toc li{
  margin-bottom:.3em;
  break-inside:avoid;
}

.toc li::marker{
  color:var(--accent);
  font-weight:700;
}

.toc a{
  text-decoration:none;
  color:var(--primary);
  font-weight:600;
  font-size:.95rem;
}

.toc a:hover{text-decoration:underline}

/* ---------- Abbildungen ---------- */

figure{
  margin:1.9rem 0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1rem;
  box-shadow:var(--shadow);
}

figure img{
  display:block;
  width:100%;
  height:auto;
  border-radius:var(--radius-sm);
}

figcaption{
  margin-top:.7rem;
  font-size:.88rem;
  color:var(--muted);
  text-align:center;
}

/* ---------- Tabellen ---------- */

.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:1.8rem 0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:.93rem;
  min-width:34rem;
}

caption{
  padding:.7rem 1rem;
  font-weight:700;
  text-align:left;
  color:var(--primary-deep);
}

thead th{
  background:var(--primary);
  color:#ffffff;
  font-weight:700;
  text-align:left;
  padding:.75rem .9rem;
  white-space:nowrap;
}

tbody th{
  text-align:left;
  padding:.65rem .9rem;
  color:var(--primary-deep);
}

td{
  padding:.65rem .9rem;
  vertical-align:top;
  border-top:1px solid var(--border);
}

tbody tr:nth-child(even){background:var(--row-alt)}

tbody tr:hover{background:var(--surface-alt)}

/* ---------- FAQ ---------- */

.faq{
  margin:1.4rem 0 2.2rem;
  display:grid;
  gap:.7rem;
}

details{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:0;
  box-shadow:var(--shadow);
  transition:box-shadow .15s ease;
}

details[open]{box-shadow:var(--shadow-lift)}

summary{
  font-weight:700;
  font-size:1.08rem;
  line-height:1.45;
  cursor:pointer;
  padding:.95rem 2.4rem .95rem 1.1rem;
  border-radius:var(--radius);
  color:var(--primary-deep);
  list-style:none;
  position:relative;
  transition:background .15s ease;
}

summary::-webkit-details-marker{display:none}

summary::after{
  content:"";
  position:absolute;
  right:1.1rem;
  top:50%;
  width:.6rem;
  height:.6rem;
  margin-top:-.42rem;
  border-right:2.5px solid var(--accent);
  border-bottom:2.5px solid var(--accent);
  transform:rotate(45deg);
  transition:transform .2s ease,margin-top .2s ease;
}

summary:hover{background:var(--row-alt)}

details[open] summary{
  border-bottom:1px solid var(--border);
  border-radius:var(--radius) var(--radius) 0 0;
}

details[open] summary::after{
  transform:rotate(225deg);
  margin-top:-.12rem;
}

details p{
  padding:.9rem 1.1rem 0;
  margin-bottom:1rem;
}

details p:last-of-type{margin-bottom:0;padding-bottom:1rem}

/* ---------- Autorenkasten ---------- */

.author-box{
  display:flex;
  flex-direction:column;
  gap:.9rem;
  align-items:flex-start;
  background:var(--surface);
  border:1px solid var(--border);
  border-top:4px solid var(--seafoam);
  border-radius:var(--radius);
  padding:1.3rem 1.3rem 1.1rem;
  margin:2.6rem 0 1.4rem;
  box-shadow:var(--shadow);
}

.author-box img{
  width:72px;
  height:72px;
  flex:0 0 auto;
  border-radius:50%;
  border:3px solid var(--surface-alt);
  background:var(--surface-alt);
  object-fit:cover;
}

.author-name{
  font-weight:800;
  font-size:1.05rem;
  color:var(--primary-deep);
  margin:0 0 .1em;
}

.author-role{
  font-size:.85rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--success);
  margin:0 0 .55em;
}

.author-bio{
  font-size:.95rem;
  color:var(--muted);
  margin:0;
}

/* ---------- Hinweiskästen / address ---------- */

aside{margin:2rem 0}

address{
  font-style:normal;
  line-height:1.7;
}

/* ---------- Fußbereich ---------- */

.site-footer{
  margin-top:3rem;
  background:var(--primary-deep);
  color:#c7d9dc;
  padding:2.4rem 0 1.4rem;
  font-size:.93rem;
  border-top:4px solid var(--accent);
}

.site-footer h3{
  color:#ffffff;
  font-size:1rem;
  margin:0 0 .7rem;
}

.site-footer p{color:#b3cacd}

.site-footer a{
  color:#dcebe7;
  text-decoration-color:rgba(220,235,231,.35);
}

.site-footer a:hover{
  color:#ffffff;
  text-decoration-color:var(--accent);
}

.site-footer a:focus-visible{outline-color:var(--seafoam)}

.site-footer ul{
  list-style:none;
  margin:0;
  padding:0;
}

.site-footer li{margin-bottom:.45em}

.footer-cols{
  display:grid;
  grid-template-columns:1fr;
  gap:1.8rem;
}

.footer-bottom{
  margin-top:2.2rem;
  padding-top:1.2rem;
  border-top:1px solid rgba(255,255,255,.15);
  font-size:.85rem;
  color:#9fbbbf;
}

/* ---------- Tablet: ab 700px ---------- */

@media (min-width:700px){
  h1,.hero h1{font-size:2.15rem}
  h2{font-size:1.55rem}
  h3{font-size:1.22rem}

  .site-header .container{
    flex-direction:row;
    justify-content:space-between;
    gap:1rem;
  }

  .site-nav ul{justify-content:flex-end}

  .hero{padding:3.4rem 0 3.7rem}

  .lede{font-size:1.14rem}

  .toc ol{columns:2;column-gap:2.2rem}

  .author-box{
    flex-direction:row;
    gap:1.2rem;
  }

  .footer-cols{grid-template-columns:2fr 1fr 1fr;gap:2.4rem}

  main{padding:2.2rem 0 4rem}
}

/* ---------- Desktop: ab 960px ---------- */

@media (min-width:960px){
  body{font-size:1.0625rem}

  h1,.hero h1{font-size:2.5rem}

  .hero{padding:4rem 0 4.3rem}

  summary{font-size:1.15rem}

  .site-nav a{font-size:.95rem}

  figure{padding:1.25rem}

  main{padding:2.6rem 0 4.5rem}
}

/* ---------- Bedienkomfort ---------- */

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
}

@media print{
  .site-header,.site-footer,.cta-row{display:none}
  .hero{background:none;color:#000;border-bottom:2px solid #000}
  .hero h1,.byline,.lede{color:#000}
  body{background:#fff}
}
