/* TV 1860 Triberg, Abteilung Turnen
   Formensprache: Flaechen 14px Radius, Buttons und Tags pill, Eingaben 8px. */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Markenverlauf aus dem Logo */
  --brand-light: #ffa62b;
  --brand: #ff7302;
  --brand-deep: #e2540a;
  --brand-band: linear-gradient(115deg, #ad380b 0%, #cf4a0b 38%, #ee6409 68%, #ff9b2b 100%);

  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f2f0;
  --text: #1c1917;
  --muted: #5b5550;
  --line: #e7e3df;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff1e5;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(120 53 15 / .06), 0 8px 24px -12px rgb(120 53 15 / .18);

  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Ebenen */
  --z-header: 10;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-band: linear-gradient(115deg, #7f2a0a 0%, #a93c0b 38%, #cf530a 68%, #ee7d1f 100%);
    --bg: #14110f;
    --surface: #1d1916;
    --surface-2: #26211d;
    --text: #f4f1ee;
    --muted: #b3aba4;
    --line: #36302b;
    --accent: #ff944a;
    --accent-hover: #ffb27a;
    --accent-soft: #33200f;
    --on-accent: #1c1917;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .5);
  }
}

/* ---------------------------------------------------------------- Basis */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.narrow { max-width: 820px; }
.section { padding-block: 56px 88px; }
.muted { color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: calc(var(--z-header) + 1);
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.brand-band .btn-light, .btn-light { background: #fffaf5; color: #9a3412; }
.brand-band .btn-light:hover, .btn-light:hover { background: #ffffff; color: #7c2d12; }
.btn-outline-light { border-color: rgb(255 255 255 / .75); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .14); border-color: #fff; color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 650; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.tag {
  display: inline-block; margin-left: .6em; padding: .1em .65em;
  font-size: .8rem; font-weight: 650; line-height: 1.6;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  vertical-align: .1em;
}

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-logo { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-sub { font-size: .85rem; color: var(--muted); }

.main-nav ul { display: flex; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 0; background: none;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--text);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link[aria-current="page"] { color: var(--accent); }
.caret { width: 10px; height: 6px; transition: transform .2s var(--ease); }

.menu-button {
  display: none; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); cursor: pointer;
}
.menu-button .icon { width: 24px; height: 24px; }

@media (max-width: 799px) {
  .main-nav { display: none; }
  .menu-button { display: grid; }
}

/* Popover: Gruppen-Menue (Desktop) */
.mega {
  position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; width: auto; max-width: none;
  padding: 0; border: 0; border-block: 1px solid var(--line);
  /* Schatten nur nach unten, damit oben kein Verlauf in den Header ragt */
  background: var(--surface); color: var(--text); box-shadow: 0 16px 24px -16px rgb(120 53 15 / .18);
}
.mega-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px;
  padding-block: 48px 56px;
}
@media (max-width: 1023px) { .mega-inner { grid-template-columns: repeat(2, 1fr); } }
.menu-heading { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.menu-col a {
  display: block; padding: 10px 0; font-weight: 600; color: var(--text); text-decoration: none;
}
.menu-col a:hover { color: var(--accent); }

/* Popover: Mobiles Menue */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(380px, 100%); height: 100dvh; max-height: none;
  padding: 0 24px 40px; border: 0; overflow-y: auto;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.mobile-menu::backdrop, .mega::backdrop { background: rgb(28 25 23 / .35); }
.mega::backdrop { background: transparent; }
.mobile-menu-head {
  /* bleibt beim Scrollen im Menü oben, damit der Schließen-Knopf erreichbar ist */
  position: sticky; top: 0; z-index: 1; margin-inline: -24px; padding-inline: 24px;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
}
/* Seite hinter dem geöffneten Menü nicht mitscrollen */
html:has(.mobile-menu:popover-open) { overflow: hidden; }
.mobile-menu .menu-button { display: grid; }
.mobile-main { padding-block: 8px 20px; border-bottom: 1px solid var(--line); }
.mobile-main a {
  display: block; padding: 10px 0; font-size: 1.35rem; font-weight: 750;
  color: var(--text); text-decoration: none;
}
.mobile-main a[aria-current="page"], .mobile-sub summary[aria-current="page"] { color: var(--accent); }
/* „Gruppen“ im mobilen Menü: klappt die Liste der Gruppen auf */
.mobile-sub summary {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 0;
  font-size: 1.35rem; font-weight: 750; color: var(--text); cursor: pointer; list-style: none;
}
.mobile-sub summary::-webkit-details-marker { display: none; }
.mobile-sub summary .caret { width: 16px; height: 10px; transition: transform .2s var(--ease); }
.mobile-sub[open] summary .caret { transform: rotate(180deg); }
.mobile-groups { display: grid; gap: 20px; padding: 6px 0 14px 16px; border-left: 2px solid var(--line); margin-left: 2px; }
.mobile-main .mobile-groups a { font-size: 1rem; font-weight: 600; padding: 8px 0; }
.mobile-main .mobile-groups .mobile-all { font-weight: 750; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .mega:popover-open { animation: drop .28s var(--ease); }
  .mobile-menu:popover-open { animation: slide .32s var(--ease); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ---------------------------------------------------------------- Markenband */

.brand-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--brand-band); color: #fff;
}
.brand-band::after {
  /* weiche Lichtkante oben rechts */
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(255 214 150 / .35), transparent);
  z-index: -1; pointer-events: none;
}
.brand-band a { color: #fff; }

.page-head { padding-block: 44px 48px; }
.page-title {
  --logo-h: 64px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: calc(var(--logo-h) * .4);
}
/* Auf schmalen Handys ist neben langen Titeln (z. B. „Sportabzeichen“) kein Platz fürs Logo */
@media (max-width: 519px) { .page-logo { display: none; } }
.page-title h1 { min-width: 0; hyphens: auto; }
@media (min-width: 768px) {
  .page-title { --logo-h: 200px; }
  /* etwa mittig über der Sidebar */
  .page-logo { margin-right: 20px; }
}
/* gleiche Größe wie die h1 der Startseite */
.page-title h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.25rem); }
/* Grundlinie der h1 auf Höhe der Füße der beiden "T" (13,4 % über der Logo-Unterkante).
   .246em = Abstand Grundlinie bis Unterkante der Zeile (Figtree, line-height 1.15). */
.page-title h1 { margin-bottom: calc(var(--logo-h) * .134 - .246em); }
.page-logo {
  flex: none; width: auto; height: var(--logo-h); color: #fff;
  filter: drop-shadow(0 6px 16px rgb(124 45 18 / .3));
}

/* ---------------------------------------------------------------- Startseite */

.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
  padding-block: 56px 64px;
}
.hero-copy h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.25rem); line-height: 1.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-mark { display: none; }
.hero-logo { display: block; width: auto; height: 270px; max-width: 100%; margin-left: auto; color: #fff; filter: drop-shadow(0 12px 32px rgb(124 45 18 / .35)); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; padding-block: 80px 88px; gap: 56px; }
  .hero-mark { display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-mark { animation: rise .9s var(--ease) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.home-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  padding-block: 64px 72px;
}
@media (min-width: 960px) {
  .home-grid { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 64px; }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }

/* Artikel */
.article-list { display: grid; }
.article-item {
  position: relative; display: grid; gap: 6px;
  padding-block: 24px; border-top: 1px solid var(--line);
}
.article-list > :first-child { border-top: 0; }
.article-item time { font-size: .9rem; font-weight: 600; color: var(--muted); }
.article-item h3 a { color: var(--text); text-decoration: none; }
.article-item h3 a::after { content: ""; position: absolute; inset: 0; }
.article-item p { color: var(--muted); max-width: 65ch; }
.article-item .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-weight: 700; color: var(--accent); font-size: .95rem;
}
.article-item .more .icon { transition: transform .25s var(--ease); }
.article-item:hover h3 a { color: var(--accent); }
.article-item:hover .more .icon { transform: translateX(4px); }

.article-item.is-featured {
  margin-top: 16px; padding: 28px; border: 0; border-radius: var(--radius);
  background: var(--accent-soft);
}
.article-item.is-featured h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.article-item.is-featured + .article-item { border-top: 0; }

/* Panels */
.home-side, .plan-side, .group-side, .contact-side { display: grid; gap: 24px; align-content: start; }
.panel {
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.panel h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 16px; }
.panel h2 .icon { color: var(--accent); width: 1.3em; height: 1.3em; }
.panel p + .btn { margin-top: 18px; }
.panel-accent { background: var(--accent-soft); border-color: transparent; }

/* Termine */
.event-list { display: grid; gap: 14px; }
.event { display: flex; align-items: center; gap: 16px; }
.event-date {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); line-height: 1;
}
.event-month { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-day { font-size: 1.4rem; font-weight: 800; margin-top: 3px; }
.event-text { display: grid; gap: 2px; }
.event-meta { font-size: .875rem; color: var(--muted); }
.event-title { font-weight: 600; line-height: 1.35; }

/* Downloads */
.download-list { display: grid; gap: 4px; margin-inline: -10px; }
.download {
  display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 10px;
  color: var(--text); text-decoration: none;
  transition: background-color .2s var(--ease);
}
.download:hover { background: var(--surface-2); color: var(--text); }
.download-icon { width: 28px; height: 28px; color: var(--accent); }
.download-text { display: grid; flex: 1; line-height: 1.3; }
.download-title { font-weight: 650; }
.download-action { color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.download:hover .download-action { color: var(--accent); transform: translateY(2px); }
.download-boxed { gap: 12px; padding: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.download-boxed .download-title { white-space: nowrap; }

/* Gruppen */

.group-cats { display: grid; gap: 36px; }
.group-cat h3 { font-size: 1rem; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.group-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.group-tile {
  position: relative; display: grid; gap: 4px; height: 100%;
  padding: 20px 52px 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.group-tile::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--brand-light), var(--brand-deep));
}
.group-tile:hover { color: var(--text); border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.group-tile:active { transform: translateY(0) scale(.99); }
.group-tile-name { font-weight: 750; font-size: 1.1rem; line-height: 1.3; }
.group-tile-meta { font-size: .92rem; color: var(--muted); line-height: 1.4; }
.group-tile-arrow { position: absolute; right: 20px; top: 50%; translate: 0 -50%; color: var(--accent); transition: transform .25s var(--ease); }
.group-tile:hover .group-tile-arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- Trainingsplan */

.plan-layout { display: grid; gap: 40px; padding-block: 48px 88px; }
@media (min-width: 960px) { .plan-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }

.plan-stand { margin-top: 16px; text-align: right; font-size: .9rem; color: var(--muted); }
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table .day-row th {
  text-align: left; font-size: 1.15rem; font-weight: 800; padding: 28px 16px 10px;
  border-bottom: 2px solid var(--brand);
}
.plan-table tbody:first-of-type .day-row th { padding-top: 4px; }
.plan-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table tbody tr:last-child td { border-bottom: 0; }
.col-time { white-space: nowrap; color: var(--muted); width: 1%; }
.col-time .time { font-variant-numeric: tabular-nums; }
.time-note { margin-left: .5em; font-size: .85rem; font-weight: 500; color: var(--muted); }
.col-group a { font-weight: 600; color: var(--text); text-decoration: none; }
.col-group a:hover { color: var(--accent); text-decoration: underline; }
.plan-table .tag { font-weight: 500; }
.col-place { color: var(--muted); }
.place-part { display: block; color: var(--text); font-weight: 500; }
.place-name, .place-address { display: block; }
.plan-table tbody tr:not(.day-row):hover td { background: var(--surface-2); }

@media (max-width: 640px) {
  .plan-table tr:not(.day-row) {
    display: grid; grid-template-columns: auto 1fr; gap: 2px 14px;
    padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .plan-table tbody tr:last-child { border-bottom: 0; }
  .plan-table td { display: block; padding: 0; border: 0; width: auto; }
  .plan-table .col-time { grid-row: span 2; }
  .plan-table .day-row th { padding-inline: 0; }
}

.place-list { display: grid; gap: 14px; }
.place-list li { display: grid; line-height: 1.4; }
.place-list span { color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- Gruppenseite */

.group-layout { display: grid; gap: 40px; padding-block: 48px 88px; }
@media (min-width: 960px) { .group-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding-top: 56px; } }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.6em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .5em; font-size: 1.2rem; }
.prose ul:not([class]), .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose ul:not([class]) { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .3em; }
.prose a:not([class]) { color: var(--accent); }
.prose strong { font-weight: 700; }
/* Zitat-Block in Markdown (> Text) dient als hervorgehobener Hinweis */
.prose blockquote {
  margin: 0 0 1.1em; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: .95rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-image { margin: 0 0 1.4em; }
.article-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.article-image figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.prose .article-date { font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: .6em; }
.prose .lead { font-size: 1.3rem; line-height: 1.5; font-weight: 550; margin-bottom: 1.2em; }

.slot-list { display: grid; gap: 18px; }
.slot-list li { display: grid; gap: 4px; }
.slot-list li + li { padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.slot-day { font-weight: 800; font-size: 1.1rem; }
.slot-time, .slot-place { display: flex; gap: 8px; align-items: flex-start; }
.slot-time { font-weight: 500; font-variant-numeric: tabular-nums; }
.slot-place { color: var(--muted); line-height: 1.4; }
/* Hallenteil so groß wie die Uhrzeit, Halle und Adresse darunter kleiner */
.slot-place .place-name, .slot-place .place-address { font-size: .95rem; }
/* Ohne Hallenteil (z. B. Sportplatz) steht der Ort selbst in der ersten Zeile */
.slot-place .place-name:first-child { font-size: 1em; font-weight: 500; color: var(--text); }
.slot-time .icon, .slot-place .icon { color: var(--accent); margin-top: .2em; }


/* ---------------------------------------------------------------- Kontakt */

.contact-layout { display: grid; gap: 40px; padding-block: 48px 88px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.contact-layout > section > h2 { margin-bottom: 20px; }

/* Kontaktformular */
.contact-intro { color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
#kontakt { display: grid; gap: 22px; max-width: 640px; }
#kontakt .form-label label { display: block; font-weight: 600; margin-bottom: 6px; }
#kontakt .required { color: var(--accent); }
#kontakt input:not([type="hidden"]):not(.form-honeybear), #kontakt textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
#kontakt textarea { resize: vertical; min-height: 9rem; }
#kontakt input:focus-visible, #kontakt textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
#kontakt .form-display-wrapper p { font-size: .95rem; color: var(--muted); }
#kontakt .form-display-wrapper a { color: var(--accent); }
#kontakt .buttons { margin-top: 4px; }
/* Fangfeld für Spam-Bots: für Menschen unsichtbar */
.form-honeybear { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-errors { color: #b42318; font-size: .95rem; margin-top: 6px; }
.notices { max-width: 640px; padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; }
.notices.success { background: color-mix(in srgb, #16a34a 14%, var(--surface)); color: var(--text); }
.notices.error { background: color-mix(in srgb, #dc2626 14%, var(--surface)); color: var(--text); }
.contact-name { font-size: 1.15rem; font-weight: 750; margin-bottom: 6px; }
.group-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; word-break: break-word; }
.group-contact a .icon { color: var(--accent); }
.group-contact a:hover { color: var(--accent); text-decoration: underline; }
.contact-side .panel-accent a { color: var(--text); font-weight: 600; word-break: break-word; }
.group-contact { display: grid; gap: 4px; justify-items: start; }

/* ---------------------------------------------------------------- Footer */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); position: relative; }
.site-footer::before {
  content: ""; position: absolute; inset: -1px 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-deep));
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 28px;
}
.footer-copy { font-size: .9rem; color: var(--muted); }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 550; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
