/* gekonet.at – gemeinsames Layout aller Seiten (gemdatnoe CI). Erzeugt wird die Website mit website-quelle/bauen.py. */
:root {
  --primary: #142f4e; --primary-hover: #102640; --primary-dark: #0e2138;
  --secondary: #fbb900; --secondary-hover: #e8ab00;
  --light: #ececec; --lighter: #f6f6f6; --text: #1f2a37; --muted: #5b6573; --white: #fff;
  --radius: 5px; --pill: 1.4rem; --max: 1140px;
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-ext: "Helvetica Neue Extended", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-weight: 300;
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-ext); font-weight: 500; line-height: 1.2; color: var(--primary); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 500; }
a { color: var(--primary); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.eyebrow { font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--secondary); margin-bottom: .8em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 46em; }
.btn { display: inline-block; padding: .75em 1.6em; border-radius: var(--pill); font-weight: 500; text-decoration: none; transition: all .3s ease; border: 2px solid transparent; }
.btn-secondary { background: var(--secondary); color: #212529; } .btn-secondary:hover { background: var(--secondary-hover); }
.btn-outline { border-color: var(--white); color: var(--white); } .btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-primary { background: var(--primary); color: var(--white); } .btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--primary); color: var(--primary); } .btn-ghost:hover { background: var(--primary); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Kopfzeile mit Navigation */
header.top { background: var(--white); border-bottom: 1px solid var(--light); position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 36px; width: auto; display: block; }
nav.haupt { display: flex; align-items: center; gap: 4px; }
nav.haupt a { text-decoration: none; color: var(--primary); font-weight: 400; font-size: .95rem; padding: .45em .7em; border-radius: var(--pill); }
nav.haupt a:hover { background: var(--lighter); }
nav.haupt a[aria-current="page"] { background: rgba(251,185,0,.22); font-weight: 500; }
nav.haupt a.cta { background: var(--secondary); color: #212529; font-weight: 500; margin-left: 6px; }
.menu-btn { display: none; background: none; border: 2px solid var(--primary); border-radius: var(--pill); color: var(--primary); font: inherit; font-weight: 500; padding: .35em .9em; cursor: pointer; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-block; }
  nav.haupt { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--light);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  nav.haupt.offen { display: flex; }
  nav.haupt a { padding: .7em .8em; }
  nav.haupt a.cta { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero { background: var(--primary); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 88px; padding-bottom: 96px; } }
.hero h1 { color: var(--white); } .hero h1 em { font-style: normal; color: var(--secondary); }
.hero .lead { color: #c9d3df; }
.hero.klein .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
.hero-art { max-width: 420px; width: 100%; justify-self: center; }
.hero-bild { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); display: block; }

section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.alt { background: var(--lighter); }
.dunkel { background: var(--primary); color: #d6dee8; } .dunkel h2, .dunkel h3 { color: var(--white); } .dunkel .lead { color: #c9d3df; }

/* Karten */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 36px; }
@media (min-width: 640px) { .grid.two, .grid.four, .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--light); border-radius: var(--radius); padding: 28px 24px; }
.alt .card { border-color: #e2e2e2; }
.card p { color: var(--muted); margin: 0; }
a.card { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; display: block; }
a.card:hover { border-color: var(--secondary); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,47,78,.08); }
a.card .mehr { display: inline-block; margin-top: 14px; font-weight: 500; color: var(--primary); }
.icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(251,185,0,.16); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Zwei Betriebsarten */
.modes { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 820px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { border-radius: var(--radius); padding: 32px 28px; }
.mode.day { background: var(--white); border: 1px solid var(--light); }
.mode.crisis { background: var(--primary); color: #d6dee8; } .mode.crisis h3 { color: var(--secondary); }
.mode ul { margin: 0; padding-left: 1.1em; } .mode li { margin: .35em 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: .25em .8em; border-radius: var(--pill); margin-bottom: 14px; }
.mode.day .tag { background: var(--light); color: var(--primary); } .mode.crisis .tag { background: var(--secondary); color: #212529; }

/* Ebenen */
.layers { display: grid; gap: 14px; margin-top: 36px; }
.layer { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: var(--white); border: 1px solid #e2e2e2; border-left: 5px solid var(--secondary); border-radius: var(--radius); padding: 22px 22px 22px 18px; }
.layer .num { font-family: var(--font-ext); font-weight: 500; font-size: 2rem; color: var(--primary); line-height: 1; }
.layer p { margin: 0; color: var(--muted); } .layer h3 { margin-bottom: .4em; }
@media (max-width: 560px) { .layer { grid-template-columns: 28px 1fr; gap: 12px; padding: 20px 16px 20px 14px; } .layer .num { font-size: 1.6rem; } }
.layer.local { background: var(--primary); border-color: var(--primary); border-left-color: var(--secondary); }
.layer.local .num, .layer.local h3 { color: var(--secondary); } .layer.local p { color: #c9d3df; }
.badge { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: .2em .75em; border-radius: var(--pill); margin: 0 6px 10px 0; }
.badge.net { background: var(--light); color: var(--primary); } .badge.opt { color: var(--muted); border: 1px solid #cfcfcf; } .badge.loc { background: var(--secondary); color: #212529; }

/* Text + Bild */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; gap: 56px; } .split.umgekehrt > :first-child { order: 2; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 34px; margin: 12px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23142f4e' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.dunkel .checks li::before { background-color: var(--secondary); }
figure.bild { margin: 0; }
figure.bild img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--light); box-shadow: 0 18px 44px rgba(20,47,78,.14); }
figure.bild figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.dunkel figure.bild figcaption { color: #aebbcb; }
.figure { background: var(--white); border: 1px solid var(--light); border-radius: var(--radius); padding: 20px; }
.figure svg { width: 100%; height: auto; display: block; }
.figcap { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Tabelle */
.tabelle { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: .97rem; }
.tabelle th, .tabelle td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--light); vertical-align: top; }
.tabelle th { color: var(--primary); font-weight: 500; background: var(--lighter); }
.tabelle-wrap { overflow-x: auto; }

/* Hinweis / Stand */
.hinweis { border-left: 5px solid var(--secondary); background: #fff8e1; padding: 16px 20px; border-radius: var(--radius); margin-top: 24px; color: #3b3b3b; }

/* Abschluss / Kontakt */
.status { background: var(--secondary); }
.status .wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .status .wrap { grid-template-columns: 1.4fr 1fr; } .status .actions { justify-content: flex-end; margin-top: 0; } }
.status h2 { color: var(--primary); } .status p { color: #2b2b2b; }

/* Weiter zu anderen Funktionen */
.weiter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.weiter a { text-decoration: none; border: 1px solid var(--light); border-radius: var(--pill); padding: .45em 1em; color: var(--primary); background: var(--white); }
.weiter a:hover { border-color: var(--secondary); }

/* Fußzeile */
footer { background: var(--primary-dark); color: #b8c3d1; font-size: .92rem; padding: 48px 0 32px; }
footer a { color: #e3e9f0; }
footer .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .7em; }
footer ul { list-style: none; margin: 0; padding: 0; } footer li { margin: .35em 0; }
footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .82rem; }
.logo-neg { background: var(--white); border-radius: var(--radius); padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.logo-neg img { height: 30px; display: block; }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.pulse { transform-origin: 210px 250px; animation: pulse 3.2s ease-out infinite; }
.pulse.d2 { animation-delay: 1.07s; } .pulse.d3 { animation-delay: 2.13s; }
@keyframes pulse { 0% { opacity: 0; transform: scale(.55); } 25% { opacity: .9; } 100% { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, a.card { transition: none; } .pulse { animation: none !important; } }

/* Menue "Module" (Aufklappmenue; auf dem Handy eingerueckt immer sichtbar) */
.dropdown { position: relative; }
.dropdown-knopf { background: none; border: 0; font: inherit; font-size: .95rem; color: var(--primary); padding: .45em .7em; border-radius: var(--pill); cursor: pointer; }
.dropdown-knopf::after { content: ""; display: inline-block; margin-left: .4em; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.dropdown-knopf:hover, .dropdown.aktiv .dropdown-knopf { background: rgba(251,185,0,.22); }
.dropdown.aktiv .dropdown-knopf { font-weight: 500; }
.untermenue { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--white); border: 1px solid var(--light);
  border-radius: 8px; box-shadow: 0 14px 30px rgba(20,47,78,.12); padding: 6px; z-index: 30; }
.untermenue a { display: block; border-radius: 6px !important; }
@media (min-width: 1061px) { .dropdown:hover .untermenue, .dropdown:focus-within .untermenue, .dropdown.offen .untermenue { display: block; } }
@media (max-width: 1060px) {
  .dropdown-knopf { display: block; width: 100%; text-align: left; padding: .7em .8em; font-weight: 500; }
  .dropdown-knopf::after { display: none; }
  .untermenue { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
}
