/* TACB – Triestingtaler Amateurfunk Club Berndorf
   Ein Stylesheet, keine externen Abhängigkeiten. */

:root {
  --bg: #ffffff;
  --surface: #f3f5fb;
  --surface-2: #e8ecf7;
  --text: #0b132b;
  --muted: #4b5573;
  --border: #d9dfec;
  --brand: #1d32c4;          /* Blau aus dem Vereinslogo */
  --brand-hover: #15259a;
  --brand-ink: #ffffff;
  --accent: #e8730c;         /* Signal-Orange */
  --hero-bg: #0b132b;
  --hero-text: #eef1fb;
  --hero-muted: #b4bdd8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(11 19 43 / .06), 0 8px 24px rgb(11 19 43 / .06);
  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1f;
    --surface: #121a31;
    --surface-2: #1a2342;
    --text: #e6eaf5;
    --muted: #a5aec8;
    --border: #26304f;
    --brand: #8393ff;
    --brand-hover: #a4b0ff;
    --brand-ink: #0a0f1f;
    --accent: #ff9a40;
    --hero-bg: #060a17;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.muted { color: var(--muted); }
.mono, .callsign { font-family: var(--mono); letter-spacing: .02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 34px; height: auto; }
@media (prefers-color-scheme: dark) { .brand img { background: #fff; border-radius: 6px; padding: 2px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; letter-spacing: .12em; }
.brand-text small { font-size: .72rem; color: var(--muted); white-space: nowrap; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { display: block; text-decoration: none; color: var(--text); padding: .45rem .6rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .98rem; white-space: nowrap; }
.site-nav a:hover { background: var(--surface); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--surface); }
.site-nav { display: flex; align-items: center; gap: .75rem; }
.lang-switch { border: 1px solid var(--border); font-size: .88rem !important; }
.site-nav .lang-switch { display: inline-flex; align-items: center; gap: .45rem; }
.lang-switch .flag { width: 21px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .45rem .7rem; color: var(--text); font: inherit; font-size: .95rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 1240px) {
  .brand-text small { display: none; }
}
@media (max-width: 980px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: .75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: .7rem .75rem; }
  .lang-switch { align-self: flex-start; }
  /* Ohne JavaScript: Navigation umbrechen statt verstecken */
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  .no-js .site-nav { width: 100%; flex-wrap: wrap; }
  .no-js .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { color: inherit; background: rgb(255 255 255 / .08); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--brand-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% 20%, rgb(29 50 196 / .45), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgb(232 115 12 / .18), transparent 60%),
    var(--hero-bg);
  color: var(--hero-text);
  overflow: hidden;
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; padding-top: 5.5rem; padding-bottom: 5.5rem; } }
.hero .lead { color: var(--hero-muted); font-size: 1.2rem; max-width: 38rem; }
.hero-media img { border-radius: 24px; box-shadow: 0 30px 80px rgb(0 0 0 / .45); aspect-ratio: 1; object-fit: cover; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.hero .tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.hero .tags li { font-family: var(--mono); font-size: .8rem; border: 1px solid rgb(255 255 255 / .2); border-radius: 999px; padding: .25rem .7rem; color: var(--hero-muted); }

/* Seitenkopf für Unterseiten */
.page-head { background: var(--hero-bg); color: var(--hero-text); padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgb(131 147 255 / .16) 22px 24px);
  pointer-events: none;
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--hero-muted); font-size: 1.15rem; max-width: 42rem; margin: 0; }

/* ---------- Abschnitte ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split-reverse > :first-child { order: 2; } }
@media (min-width: 900px) { .split-top { align-items: start; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Karten ---------- */
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.card .icon svg { width: 24px; height: 24px; }
.badge {
  display: inline-block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  padding: .2rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  margin-bottom: .75rem;
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Galerie ---------- */
.gallery figure { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .9rem 1.1rem; font-size: .95rem; color: var(--muted); }
.gallery figcaption strong { color: var(--text); display: block; }

/* ---------- Team ---------- */
.team { text-align: center; }
.team img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--surface-2); }
.team .role { color: var(--muted); font-size: .95rem; margin-bottom: .25rem; }
.team .callsign { display: inline-block; background: var(--surface); border-radius: 6px; padding: .1rem .5rem; font-size: .9rem; margin-bottom: .5rem; }
.team .card { box-shadow: none; }

/* Vorstandsliste */
.board { display: grid; gap: 1rem; }
@media (min-width: 640px) { .board { grid-template-columns: repeat(2, 1fr); } }
.board .card { display: flex; gap: 1rem; align-items: center; box-shadow: none; }
.board img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.board .placeholder { width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 1.6rem; }
.board h3 { margin: 0; font-size: 1.05rem; }
.board .role { margin: 0; color: var(--muted); font-size: .9rem; }
.board p { margin: 0; }

/* Datenliste */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .6rem; } }

/* ---------- Hinweise ---------- */
.notice {
  border-left: 4px solid var(--accent); background: var(--surface); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }
.notice-error { border-left-color: #d12f2f; }

/* ---------- CTA-Band ---------- */
.cta { background: var(--brand); color: #fff; padding: 3.5rem 0; }
@media (prefers-color-scheme: dark) { .cta { background: #1d2a8c; } }
.cta .container { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 .3em; color: #fff; }
.cta p { margin: 0; color: rgb(255 255 255 / .85); }
.cta .actions { margin-top: 0; }

/* ---------- Externe Inhalte (Funkwetter) ---------- */
.embed-consent {
  border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 2rem; text-align: center;
}
.embed-consent p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.embed-consent .remember { display: inline-flex; gap: .5rem; align-items: center; font-size: .95rem; color: var(--muted); margin-top: .75rem; }
.solar { display: grid; gap: 1.5rem; justify-items: center; }
.solar img { background: #fff; border-radius: var(--radius-sm); }
.solar[hidden] { display: none; }

/* Vergleich hamqsl / NOAA */
.compare { display: grid; gap: 2.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 980px) { .compare { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.compare-col { min-width: 0; }
.compare-title { font-size: 1.3rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.compare-title .muted { font-size: .95rem; font-weight: 400; }
.compare .embed-consent { padding: 1.5rem; }

.swpc-status { margin: 0 0 .75rem; }
.swpc-status[hidden] { display: none; }
.swpc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.swpc-table th, .swpc-table td { padding: .45rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.swpc-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.swpc-table tbody th { font-weight: 500; }
.swpc-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.swpc-table td:last-child { color: var(--muted); font-size: .85rem; }
.swpc-table abbr { text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; }
.swpc-outlook td:last-child { color: inherit; font-size: inherit; }
@media (max-width: 480px) { .swpc-table th, .swpc-table td { padding: .4rem .3rem; } .swpc-table { font-size: .9rem; } }
.swpc-sub { font-size: 1.05rem; margin-top: 1.75rem; }
.swpc-source { font-size: .85rem; margin-top: 1.25rem; }

.lvl { font-weight: 600; }
.lvl-ok { color: #1a7f37; }
.lvl-warn { color: #9a6700; }
.lvl-bad { color: #cf222e; }
@media (prefers-color-scheme: dark) {
  .lvl-ok { color: #4ac26b; }
  .lvl-warn { color: #d4a72c; }
  .lvl-bad { color: #ff7b72; }
}

.kp-chart {
  display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 0 2px;
  border-bottom: 1px solid var(--border); position: relative;
  background: linear-gradient(to top, transparent calc(55.6% - 1px), rgb(207 34 46 / .45) calc(55.6% - 1px), rgb(207 34 46 / .45) 55.6%, transparent 55.6%);
}
.kp-bar { flex: 1 1 0; min-width: 3px; border-radius: 2px 2px 0 0; background: currentColor; }
.kp-bar.lvl-ok { color: #2da44e; }
.kp-bar.lvl-warn { color: #d4a72c; }
.kp-bar.lvl-bad { color: #cf222e; }
.kp-estimated { opacity: .65; }
.kp-predicted { opacity: .35; }
.kp-now { align-self: stretch; width: 2px; flex: none; background: var(--text); opacity: .5; }
.kp-legend { font-size: .82rem; margin-top: .5rem; }
.kp-key { display: inline-block; width: .8em; height: .8em; border-radius: 2px; background: #2da44e; vertical-align: -.05em; margin-left: .4em; }
.kp-key:first-child { margin-left: 0; }

.aurora figure { margin: 0; min-width: 0; }
.aurora img { border-radius: var(--radius-sm); background: #000; }
.aurora figcaption { font-size: .9rem; margin-top: .4rem; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1.1rem; }
.form label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.form .req { color: var(--accent); }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .85rem;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.form textarea { min-height: 10rem; resize: vertical; }
.form .hint { font-size: .9rem; color: var(--muted); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { display: flex; gap: .85rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: .2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-bg); color: var(--hero-muted); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--hero-text); }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: var(--hero-text); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand img { width: 32px; background: #fff; border-radius: 6px; padding: 3px; }
.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--hero-text); font-family: var(--mono); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgb(255 255 255 / .1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.site-footer .muted { color: var(--hero-muted); opacity: .8; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .site-nav a, .card { transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
}

@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none; }
  .hero, .page-head { background: none; color: #000; }
}

.section-sub { margin-top: 3rem; margin-bottom: 1.25rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.contact-logo { width: 120px; margin-top: 1rem; opacity: .9; }
@media (prefers-color-scheme: dark) { .contact-logo { background: #fff; border-radius: 12px; padding: 8px; } }
.no-js [data-embed-consent] .btn, .no-js [data-embed-consent] .remember { display: none; }
