/* =========================================================================
   insingdorf.de - SchamottGrid
   Farbwelt: Schamott und Glut auf warmem Sand. Serioes genug fuer eine
   Foerderskizze, warm genug fuer die Nachbarschaft.
   ========================================================================= */

:root {
  --glut:        #df5320;
  --glut-tief:   #b83f12;
  --glut-hell:   #ff7a3d;
  --schamott:    #d9a57c;
  --anthrazit:   #17130f;
  --anthrazit-2: #241d17;
  --sand:        #fbf9f5;
  --sand-2:      #f3efe8;
  --sand-3:      #e9e2d8;
  --gruen:       #2f9e63;
  --gruen-hell:  #52b07e;
  --text:        #1b1815;
  --text-leise:  #57514a;
  --weiss:       #ffffff;
  --linie:       #e8e1d6;

  --serif: "Space Grotesk", "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --breite: 1180px;
  --schmal: 760px;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(36,31,28,.06), 0 8px 24px -8px rgba(36,31,28,.14);
  --schatten-gross: 0 2px 4px rgba(36,31,28,.06), 0 24px 56px -16px rgba(36,31,28,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--glut-tief); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--glut); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 0; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
.leise { color: var(--text-leise); }
.gross { font-size: 1.16rem; line-height: 1.6; }
.mitte { text-align: center; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.schmal { max-width: var(--schmal); margin-left: auto; margin-right: auto; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.dunkel { background: var(--anthrazit); color: var(--sand-2); }
.dunkel h2, .dunkel h3 { color: var(--weiss); }
.dunkel a { color: var(--glut-hell); }
.getoent { background: var(--sand-2); }
.abschnitt-marke {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--glut); margin-bottom: 14px;
}
.dunkel .abschnitt-marke { color: var(--glut-hell); }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,249,245,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; gap: 28px; height: 68px; position: relative; }
.marke { display: flex; align-items: center; gap: 11px; font-family: var(--serif);
         font-weight: 600; font-size: 1.18rem; color: var(--text); text-decoration: none; }
.marke:hover { color: var(--glut-tief); }
.marke-zeichen { width: 30px; height: 30px; flex: none; }
.navi { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.navi a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.navi a:hover { color: var(--glut-tief); }
.navi-schalter { display: none; background: none; border: 1px solid var(--linie);
                 border-radius: 8px; padding: 7px 11px; margin-left: auto; cursor: pointer;
                 font-size: 1.1rem; line-height: 1; }

/* --------------------------------------------------------------- Knoepfe */
.knopf, .knopf-klein {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glut); color: #fff; text-decoration: none;
  border: none; border-radius: 999px; font-weight: 600; cursor: pointer;
  font-family: var(--sans); transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(151,56,20,.2), 0 6px 16px -6px rgba(151,56,20,.4);
}
.knopf { padding: 14px 26px; font-size: 1.02rem; }
.knopf-klein { padding: 8px 17px; font-size: .9rem; }
.knopf:hover, .knopf-klein:hover { background: var(--glut-tief); color: #fff; transform: translateY(-1px); }
.knopf-rand {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--linie); box-shadow: none;
}
.knopf-rand:hover { background: var(--sand-2); color: var(--text); border-color: var(--schamott); }
.dunkel .knopf-rand { color: var(--sand-2); border-color: rgba(255,255,255,.28); }
.dunkel .knopf-rand:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ----------------------------------------------------------------- Held */
.held { position: relative; overflow: hidden;
        background: linear-gradient(168deg, #ffffff 0%, var(--sand-2) 58%, var(--sand-3) 100%);
        padding: clamp(64px, 9vw, 118px) 0 clamp(56px, 8vw, 96px); }
.held::before {
  content: ""; position: absolute; inset: auto -12% -55% auto;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,86,42,.16), transparent 66%);
  pointer-events: none;
}
.held-raster { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px;
               align-items: center; position: relative; }
.marker {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(196,86,42,.1); color: var(--glut-tief);
  border: 1px solid rgba(196,86,42,.24);
  padding: 6px 15px; border-radius: 999px;
  font-size: .83rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 22px;
}
.marker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glut);
                  box-shadow: 0 0 0 3px rgba(196,86,42,.2); }
.held h1 { margin-bottom: .38em; }
.held h1 em { font-style: normal; color: var(--glut-tief); }
.held-text { font-size: clamp(1.06rem, 1.7vw, 1.24rem); color: var(--text-leise); max-width: 33em; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.held-fuss { margin-top: 30px; font-size: .9rem; color: var(--text-leise); display: flex;
             flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.held-fuss b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------- Kennzahl */
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.zahl {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--schatten);
}
.zahl-wert { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.7rem);
             font-weight: 600; color: var(--glut-tief); line-height: 1; margin-bottom: 9px; }
.zahl-text { font-size: .93rem; color: var(--text-leise); line-height: 1.5; }
.dunkel .zahl { background: var(--anthrazit-2); border-color: rgba(255,255,255,.1); box-shadow: none; }
.dunkel .zahl-wert { color: var(--glut-hell); }
.dunkel .zahl-text { color: rgba(240,231,219,.72); }

/* --------------------------------------------------------------- Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.karten-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.karte {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--schatten);
  transition: transform .18s, box-shadow .18s;
}
.karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-gross); }
.karte h3 { margin-bottom: .45em; }
.karte p:last-child { margin-bottom: 0; }
.karte-zeichen {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(196,86,42,.14), rgba(196,86,42,.05));
  display: grid; place-items: center; color: var(--glut-tief);
}
.dunkel .karte { background: var(--anthrazit-2); border-color: rgba(255,255,255,.1); box-shadow: none; }
.dunkel .karte p { color: rgba(240,231,219,.78); }

/* -------------------------------------------------------------- Tabelle */
.tabelle-huelle { overflow-x: auto; border: 1px solid var(--linie);
                  border-radius: var(--radius); background: var(--weiss); box-shadow: var(--schatten); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--linie); }
th { background: var(--sand-2); font-weight: 600; font-size: .87rem;
     letter-spacing: .02em; text-transform: uppercase; color: var(--text-leise); }
tr:last-child td { border-bottom: none; }
td.betont { font-weight: 600; color: var(--glut-tief); }
td.gut { font-weight: 600; color: var(--gruen); }
.dunkel .tabelle-huelle { background: var(--anthrazit-2); border-color: rgba(255,255,255,.1); }
.dunkel th { background: rgba(255,255,255,.05); color: rgba(240,231,219,.65); }
.dunkel td { border-color: rgba(255,255,255,.08); }

/* ------------------------------------------------------------ Aufzaehlung */
.haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.haken li { display: flex; gap: 13px; align-items: flex-start; }
.haken li::before {
  content: ""; flex: none; width: 21px; height: 21px; margin-top: 2px; border-radius: 50%;
  background: rgba(45,106,79,.13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D6A4F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* --------------------------------------------------------------- Ablauf */
.ablauf { position: relative; padding-left: 34px; }
.ablauf::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
                  width: 2px; background: linear-gradient(var(--schamott), var(--linie)); }
.ablauf-punkt { position: relative; padding-bottom: 30px; }
.ablauf-punkt:last-child { padding-bottom: 0; }
.ablauf-punkt::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--weiss); border: 2.5px solid var(--glut);
}
.ablauf-punkt.jetzt::before { background: var(--glut); box-shadow: 0 0 0 5px rgba(196,86,42,.18); }
.ablauf-datum { font-size: .82rem; font-weight: 700; color: var(--glut-tief);
                letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.ablauf-punkt h3 { font-size: 1.14rem; margin-bottom: .25em; }
.ablauf-punkt p { margin: 0; font-size: .96rem; color: var(--text-leise); }

/* ------------------------------------------------------------ Formulare */
.formular { display: grid; gap: 17px; }
.feld { display: grid; gap: 6px; }
.feld label { font-size: .9rem; font-weight: 600; }
.feld input, .feld select, .feld textarea {
  font-family: var(--sans); font-size: 1rem; padding: 12px 15px;
  border: 1.5px solid var(--linie); border-radius: 10px;
  background: var(--weiss); color: var(--text); width: 100%;
}
.feld textarea { min-height: 110px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--glut); box-shadow: 0 0 0 3px rgba(196,86,42,.14);
}
.feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.zustimmung { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem;
              color: var(--text-leise); line-height: 1.5; }
.zustimmung input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--glut); }
.hinweis { padding: 14px 17px; border-radius: 10px; font-size: .93rem; display: none; }
.hinweis.gut  { background: rgba(45,106,79,.12);  color: #1B4332; display: block; }
.hinweis.fehl { background: rgba(151,56,20,.11);  color: var(--glut-tief); display: block; }
.formular-karte {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--schatten-gross);
}

/* ------------------------------------------------------------- Aufklapp */
.frage { border-bottom: 1px solid var(--linie); }
.frage summary {
  cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.06rem;
  list-style: none; position: relative; font-family: var(--serif);
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--glut); font-family: var(--sans); font-weight: 400;
}
.frage[open] summary::after { content: "\2212"; }
.frage-inhalt { padding: 0 0 22px; color: var(--text-leise); max-width: 62em; }
.frage-inhalt p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- Fuss */
.fuss { background: var(--anthrazit); color: rgba(240,231,219,.7); padding: 60px 0 32px; font-size: .93rem; }
.fuss a { color: rgba(240,231,219,.86); text-decoration: none; }
.fuss a:hover { color: var(--glut-hell); }
.fuss-raster { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.fuss h4 { color: var(--weiss); font-family: var(--sans); font-size: .82rem;
           text-transform: uppercase; letter-spacing: .07em; margin-bottom: 15px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
              display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
              font-size: .87rem; color: rgba(240,231,219,.5); }

.foerder-hinweis {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 20px 24px; font-size: .89rem;
  line-height: 1.6; color: rgba(240,231,219,.72);
}

/* ------------------------------------------------------------ Kleinbild */
@media (max-width: 900px) {
  .held-raster { grid-template-columns: 1fr; gap: 40px; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
  .navi { display: none; }
  .navi-schalter { display: block; }
  .navi.offen {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 68px; left: -24px; right: -24px; background: var(--sand);
    border-bottom: 1px solid var(--linie); padding: 16px 24px 22px; margin: 0;
  }
  .navi.offen a { padding: 9px 0; width: 100%; }
}
@media (max-width: 620px) {
  .feld-zeile { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; gap: 30px; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
