/* =========================================================
   massarbeit.berlin – Stylesheet
   Aufbau:
   1. Schriften (lokal gehostet, keine Verbindung zu Google)
   2. Farben & Grundwerte  ← hier zentral ändern
   3. Grundlagen
   4. Layout (Container, Abschnitte, Raster)
   5. Kopfzeile & Menü
   6. Bausteine (Buttons, Karten, Kennzahlen, Preise, FAQ …)
   7. Fußzeile
   ========================================================= */

/* 1. Schriften ------------------------------------------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* 2. Farben & Grundwerte --------------------------------- */
:root {
  --papier: #F7F6F2;      /* Seitenhintergrund */
  --weiss: #FFFFFF;       /* Karten */
  --tinte: #17191C;       /* Text, dunkle Flächen */
  --text-2: #3A3D42;      /* Fließtext */
  --text-3: #55595F;      /* Nebentext */
  --linie: #D9D7D0;       /* Rahmen */
  --linie-hell: #E8E6E0;
  --akzent: #C2410C;      /* Orange – Hervorhebungen */
  --akzent-dunkel: #9A3412;
  --hell-auf-dunkel: #C9C7C0;

  --schrift: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --breite: 1200px;
  --radius: 6px;
}

/* 3. Grundlagen ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--tinte); }
a:hover { color: var(--akzent); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--weiss); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

/* 4. Layout ---------------------------------------------- */
.container { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.abschnitt { padding: 88px 0 24px; }
.abschnitt-eng { max-width: 900px; }
.stapel { display: flex; flex-direction: column; gap: 16px; }
.stapel-gross { display: flex; flex-direction: column; gap: 40px; }
.raster-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; }
.raster-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.mittig { align-items: center; }

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--akzent);
}
.kicker-grau { color: var(--text-3); }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 600px; }
.text { color: var(--text-2); }
.klein { font-size: 15px; color: var(--text-3); }

/* 5. Kopfzeile & Menü ------------------------------------ */
.kopf { border-bottom: 1px solid var(--linie); background: var(--papier); }
/* Kopfzeile bleibt beim Scrollen oben stehen (ab Tablet-Breite; auf dem Handy nicht, sonst verdeckt sie zu viel) */
@media (min-width: 900px) {
  .kopf { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--linie), 0 6px 16px rgba(23,25,28,.04); }
  [id] { scroll-margin-top: 96px; }
}
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 12px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: baseline; gap: 1px; text-decoration: none; position: relative; }
.logo-bild { width: 56px; height: 56px; align-self: flex-start; margin: -6px 10px -22px 0; flex-shrink: 0; position: relative; z-index: 2; border-radius: 50%; filter: drop-shadow(0 3px 8px rgba(23,25,28,.18)); }
@media (min-width: 900px) {
  .logo-bild { width: 80px; height: 80px; margin: -6px 8px -42px 0; }
  .logo-wort { font-size: 22px; }
  .logo-endung { font-size: 14px; }
}
.logo-wort { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--tinte); }
.logo-endung { font-family: var(--mono); font-size: 15px; color: var(--akzent); }
.menue { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; }
.menue a { text-decoration: none; padding: 10px 0; }
/* aktuelle Seite: schwarzes Feld */
.menue a[aria-current="page"] { background: var(--tinte); color: var(--papier); padding: 7px 10px; margin: 0 -2px; border-radius: 4px; font-weight: 500; }
.menue a[aria-current="page"]:hover { color: var(--papier); }

/* Telefon-Link im Menü */
.menue a.menue-tel { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 14px; font-weight: 500; white-space: nowrap; }
.menue a.menue-tel svg { color: var(--akzent); }
.menue a.menue-sprache { font-family: var(--mono); font-size: 13px; font-weight: 500; padding: 4px 6px; border: 1px solid currentColor; border-radius: 4px; line-height: 1; opacity: .75; }
.menue a.menue-sprache:hover { opacity: 1; }
.menue a.btn { padding: 10px 14px; font-size: 15px; font-weight: 500; }

/* 6. Bausteine ------------------------------------------- */

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 14px 22px; border-radius: 4px; font-weight: 600; font-size: 16px; line-height: 1.2; border: 1px solid transparent; }
.btn-akzent { background: var(--akzent); color: #FFFFFF; }
.btn-akzent:hover { background: var(--akzent-dunkel); color: #FFFFFF; }
.btn-dunkel { background: var(--tinte); color: var(--papier); padding: 10px 18px; font-weight: 500; font-size: 15px; }
.btn-dunkel:hover { background: #000000; color: var(--papier); }
.btn-rahmen { border-color: var(--tinte); font-weight: 500; }
.btn-hell { background: var(--papier); color: var(--tinte); }
.btn-hell:hover { background: #FFFFFF; color: var(--tinte); }
.btn-reihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 80px 0 64px; }
.plan { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
.plan-fuss { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--linie); margin-top: 20px; padding-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.plan-fuss strong { color: var(--tinte); font-weight: 500; }

/* Kennzahlen-Leiste */
.kennzahlen { background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.kennzahlen .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.kennzahl { display: flex; flex-direction: column; gap: 6px; }
.kennzahl-wert { font-family: var(--mono); font-size: 28px; font-weight: 500; line-height: 1.2; }
.kennzahl-text { font-size: 15px; color: var(--text-3); }

/* Karten */
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--tinte); }
a.karte:hover { border-color: var(--tinte); color: var(--tinte); }
.karte-label { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.karte p { font-size: 16px; line-height: 1.55; color: var(--text-2); hyphens: auto; overflow-wrap: break-word; }
.karte-link { margin-top: auto; font-size: 15px; font-weight: 500; color: var(--akzent); }

/* Ablauf (nummerierte Schritte) */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 2px solid var(--tinte); }
.schritt { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.schritt-nr { font-family: var(--mono); font-size: 14px; color: var(--akzent); }
.schritt h3 { font-size: 19px; }
.schritt p { font-size: 16px; color: var(--text-2); }

/* Preisliste (Zeilen) */
.preisliste { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.preiszeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 24px; border-bottom: 1px solid var(--linie-hell); }
.preiszeile:last-child { border-bottom: 0; }
.preiszeile-wert { font-family: var(--mono); font-weight: 500; }
.preiszeile-grau { background: var(--papier); }
.preiszeile-grau .preiszeile-wert { font-family: var(--schrift); font-weight: 400; color: var(--text-3); }

/* Preiskarten */
.preis-gross { font-family: var(--mono); font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }

/* Häkchenliste */
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.liste li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
/* Häkchen in der Akzentfarbe (als Maske, damit es der Farbe --akzent folgt) */
.liste li::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 6px; background-color: var(--akzent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5'/%3E%3C/svg%3E") no-repeat center / contain; }
.liste-preis li::before { content: none; }
.liste-preis li { justify-content: space-between; }

/* Hinweis-Kasten */
.kasten { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 32px; }

/* Porträt */
.portraet { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--linie-hell); }
.platzhalter { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; color: var(--text-3); }

/* Fotos */
.foto { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foto img { width: 100%; height: auto; border-radius: var(--radius); }
.foto-rahmen img { background: var(--weiss); border: 1px solid var(--linie); }
.foto figcaption { font-size: 14px; color: var(--text-3); }
.foto-breit img { aspect-ratio: 16 / 7; object-fit: cover; }

/* Bild-Text-Zeilen (wie auf sivb.de: Bild und Text nebeneinander, abwechselnd) */
.zeilen { display: flex; flex-direction: column; gap: 72px; }
.zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.zeile-bild { margin: 0; }
.zeile-bild img { width: 100%; height: auto; border-radius: var(--radius); }
.zeile-bild a { display: block; position: relative; }
.zeile-bild a:hover img { opacity: .92; }
.zeile-rahmen img { background: var(--weiss); border: 1px solid var(--linie); }
.play { position: absolute; left: 16px; bottom: 16px; background: var(--tinte); color: var(--papier); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 4px; }
@media (min-width: 720px) { .zeile-umgekehrt .zeile-bild { order: 2; } }

/* Zitat */
.zitat { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.zitat blockquote { margin: 0; font-size: 24px; line-height: 1.4; letter-spacing: -0.01em; }
.zitat figcaption { font-size: 15px; color: var(--text-3); }
.zitat figcaption strong { color: var(--tinte); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); padding: 18px 0; }
.faq summary { font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--akzent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-size: 16px; color: var(--text-2); }

/* Fließtext-Seiten (Impressum, Datenschutz) */
.inhalt { max-width: 760px; }
.inhalt h2 { font-size: 24px; margin: 40px 0 12px; }
.inhalt p, .inhalt ul { margin: 0 0 12px; color: var(--text-2); }

/* E-Mail-Band (dunkel) */
.band { background: var(--tinte); color: var(--papier); margin-top: 72px; }
.band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.band p { color: var(--hell-auf-dunkel); font-size: 18px; }
.band a.tel { color: var(--hell-auf-dunkel); font-size: 16px; }
.band-aktion { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* 7. Fußzeile -------------------------------------------- */
.fuss { background: var(--tinte); color: #A9A7A0; border-top: 1px solid #33363B; font-size: 14px; }
.fuss .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 104px; }
.fuss a { color: #A9A7A0; }
.fuss a:hover { color: #FFFFFF; }
.fuss nav { display: flex; gap: 20px; }

/* Telefon-Schaltfläche (schwebend, unten rechts) */
.tel-schwebend { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 56px; height: 56px; border-radius: 999px; background: var(--akzent); color: #FFFFFF; text-decoration: none; box-shadow: 0 6px 18px rgba(23,25,28,.28); }
.tel-schwebend:hover { background: var(--akzent-dunkel); color: #FFFFFF; }
.tel-schwebend span { display: none; }
@media (min-width: 900px) {
  .tel-schwebend { right: 24px; bottom: 24px; width: auto; height: auto; padding: 14px 22px 14px 18px; font-family: var(--mono); font-size: 15px; font-weight: 500; }
  .tel-schwebend span { display: inline; }
}
@media print { .tel-schwebend { display: none; } }

/* 8. Ratgeber-Artikel ------------------------------------ */
.pfad { font-size: 14px; color: var(--text-3); }
.pfad a { color: var(--text-3); }
.artikel { max-width: 760px; }
.artikel .artikel-meta { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--text-3); margin: 0; }
.artikel .kicker { font-size: 13px; line-height: 1.4; margin: 0; }
.artikel .lead { font-size: 20px; line-height: 1.55; }
.artikel .klein { font-size: 15px; color: var(--text-3); }
.artikel h2 { font-size: 30px; margin: 64px 0 18px; scroll-margin-top: 120px; }
.artikel h3 { font-size: 20px; margin: 32px 0 10px; }
.artikel p, .artikel li { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.artikel p { margin: 0 0 16px; }
.artikel ul.punkte, .artikel ol.punkte { margin: 0 0 18px; padding-left: 22px; }
.artikel ul.punkte li, .artikel ol.punkte li { margin-bottom: 8px; }
.artikel .liste { margin: 8px 0 20px; }
.artikel .liste li { display: block; position: relative; padding-left: 30px; font-size: 17px; }
.artikel .liste li::before { position: absolute; left: 0; top: 14px; margin-top: 6px; }
.artikel .schritte { margin: 8px 0 20px; }
.artikel .schritt p { font-size: 16px; }
.kurz { background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--akzent); border-radius: var(--radius); padding: 24px 28px; }
.kurz h2 { font-size: 20px; margin: 0 0 12px; }
.kurz ul { margin: 0; padding-left: 20px; }
.kurz li { font-size: 17px; margin-bottom: 6px; }
.verzeichnis { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 20px 0; }
.verzeichnis ol { margin: 8px 0 0; padding-left: 22px; columns: 2 260px; column-gap: 32px; }
.verzeichnis li { font-size: 16px; margin-bottom: 6px; break-inside: avoid; }
.hinweis { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0; }
.hinweis-berlin { border-left: 4px solid var(--tinte); }
.hinweis h3 { margin-top: 0; }
.praxis { border-left: 4px solid var(--akzent); padding: 4px 0 4px 20px; margin: 24px 0; }
.praxis .kicker { margin-bottom: 6px; }
.entwurf { background: #FEF3C7; border: 1px dashed #B45309; color: #78350F; padding: 2px 6px; border-radius: 3px; }
.quellen li { font-size: 15px; }

/* Bewegung reduzieren, wenn im System eingestellt */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
