/* EEG GANS Gänserndorf. Lesbarkeit zuerst: große Schrift, hoher Kontrast, große Klickflächen. */
:root {
  --blau: #163d6b;
  --blau-dunkel: #0f2d50;
  --orange: #e8741a;
  --gelb: #fff4d6;
  --gelb-hell: #fffaf0;
  --text: #1a1a1a;
  --text-2: #3b4656;
  --bg: #ffffff;
  --linie: #d5dbe4;
  --fokus: #e8741a;
  font-size: 20px;
}
@media (max-width: 480px) { :root { font-size: 18px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--blau-dunkel); }
:focus-visible { outline: 4px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; color: var(--blau-dunkel); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }
@media (min-width: 760px) { h1 { font-size: 2.8rem; } h2 { font-size: 2rem; } }
p, li { max-width: 36em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.lead { font-size: 1.2rem; color: var(--text-2); }
.klein { font-size: 0.85rem; color: var(--text-2); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding-block: 3rem; }
@media (min-width: 760px) { section { padding-block: 4.5rem; } }
.gelb { background: var(--gelb-hell); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }

.skip { position: absolute; left: -999px; top: 0; background: var(--blau); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Kopf */
.site-head { border-bottom: 3px solid var(--orange); background: #fff; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.5rem; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--blau-dunkel); line-height: 1.15; }
.brand svg { width: 48px; height: 48px; flex: none; }
.brand strong { display: block; font-size: 1.05rem; }
.brand span { font-size: 0.9rem; color: var(--text-2); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; margin-left: auto; }
.site-head nav a { text-decoration: none; font-weight: 600; padding: 0.4rem 0; }
.site-head nav a:hover { text-decoration: underline; }
/* Spezifität bewusst höher als .btn, sonst gewinnt dessen display:inline-flex */
.site-head .head-cta { display: none; flex: none; }
@media (min-width: 900px) {
  .site-head .wrap { flex-wrap: nowrap; }
  .site-head nav { justify-content: flex-end; }
  .site-head .head-cta { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 0.6rem 1.5rem; border-radius: 12px;
  font-size: 1.1rem; font-weight: 700; text-decoration: none;
  background: var(--blau); color: #fff; border: 3px solid var(--blau);
}
.btn:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }
.btn-2 { background: #fff; color: var(--blau); }
.btn-2:hover { background: var(--gelb); color: var(--blau-dunkel); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0 1rem; }
.cta-row .btn { flex: 1 1 280px; }
@media (min-width: 760px) { .cta-row .btn { flex: 0 1 auto; min-width: 300px; } }

/* Hero */
.hero { background: var(--gelb); padding-block: 3rem; }
@media (min-width: 760px) { .hero { padding-block: 5rem; } }
.hero-tag { font-weight: 700; color: var(--orange); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.hero h1 { max-width: 18em; }
.hinweis { background: #fff; border-left: 6px solid var(--orange); padding: 0.9rem 1.1rem; border-radius: 0 10px 10px 0; max-width: 40em; }
.hinweis p:last-child { margin-bottom: 0; }

/* Schritte */
.schritte { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: s; display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .schritte.drei { grid-template-columns: repeat(3, 1fr); } }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; max-width: none; }
.schritte li::before {
  content: counter(s); display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--blau); color: #fff; font-weight: 800; font-size: 1.4rem;
}
.schritte h3 { margin-bottom: 0.2em; }
.schritte p { margin: 0; }

/* Karten */
.karten { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .karten { grid-template-columns: repeat(2, 1fr); } }
.karte { background: #fff; border: 2px solid var(--linie); border-radius: 14px; padding: 1.4rem; }
.karte h3 { margin-bottom: 0.3em; }
.karte p { margin: 0; }
.karte .zahl { font-size: 2rem; font-weight: 800; color: var(--blau); line-height: 1.1; margin-bottom: 0.3em; }

/* Tabelle */
.tabelle { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; max-width: 44em; font-size: 1rem; }
th, td { text-align: left; padding: 0.9rem 1rem; border-bottom: 2px solid var(--linie); vertical-align: top; }
th { background: var(--gelb); color: var(--blau-dunkel); }
td strong { font-size: 1.25rem; color: var(--blau-dunkel); white-space: nowrap; }
.beispiel { margin-top: 2rem; }
.beispiel img { border: 2px solid var(--linie); border-radius: 10px; background: #fff; }
.beispiel figcaption { font-size: 0.85rem; color: var(--text-2); margin-top: 0.6rem; max-width: 40em; }

/* Orte */
.orte { columns: 2; column-gap: 2rem; padding-left: 1.3em; margin: 1rem 0 1.5rem; max-width: 36em; }
@media (min-width: 640px) { .orte { columns: 3; } }
.orte li { break-inside: avoid; padding: 0.15rem 0; }

/* Fragen */
details { border: 2px solid var(--linie); border-radius: 12px; margin-bottom: 0.8rem; background: #fff; max-width: 44em; }
summary {
  cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 1rem 3rem 1rem 1.2rem; color: var(--blau-dunkel);
  list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: var(--gelb); color: var(--blau);
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
}
details[open] summary::after { content: "–"; }
details[open] summary { border-bottom: 2px solid var(--linie); }
details .inhalt { padding: 1rem 1.2rem 0.4rem; }

/* Downloads */
.downloads { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.8rem; }
@media (min-width: 760px) { .downloads { grid-template-columns: repeat(2, 1fr); } }
.downloads li { max-width: none; }
.downloads a {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem; min-height: 64px;
  border: 2px solid var(--linie); border-radius: 12px; text-decoration: none; background: #fff; font-weight: 600;
}
.downloads a:hover { border-color: var(--blau); background: var(--gelb-hell); }
.downloads svg { width: 32px; height: 32px; flex: none; }
.downloads small { display: block; font-weight: 400; color: var(--text-2); font-size: 0.85rem; }

/* Kontakt */
.kontakt { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .kontakt { grid-template-columns: repeat(2, 1fr); } }
.kontakt .karte a { font-size: 1.15rem; font-weight: 700; display: inline-block; padding: 0.3rem 0; }
.kontakt address { font-style: normal; }

/* Fuß */
.site-foot { background: var(--blau-dunkel); color: #fff; padding: 2rem 0 2.5rem; font-size: 0.9rem; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.site-foot p { margin: 0; }

/* Feste Leiste am Handy */
.mobil-leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 2px solid var(--linie); box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.mobil-leiste .btn { flex: 1; min-height: 56px; padding: 0.4rem 0.6rem; font-size: 1rem; }
@media (min-width: 900px) { .mobil-leiste { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 90px; } }

/* Rechtsseiten */
.recht { padding-block: 2.5rem; }
.recht h1 { margin-bottom: 0.3em; }
.recht h2 { font-size: 1.35rem; margin-top: 2rem; }
.recht dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; max-width: 44em; }
@media (max-width: 560px) { .recht dl { grid-template-columns: 1fr; gap: 0.1rem; } .recht dt { margin-top: 0.8rem; } }
.recht dt { font-weight: 700; color: var(--blau-dunkel); }
.recht dd { margin: 0; }
.recht address { font-style: normal; }
.zurueck { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }
