/* Barefoot Allgäu — Design Tokens (inlined) */
/* Barefoot Allgäu — Design Tokens */
:root {
  --bg: #F5F7F4;
  --bg-elevated: #ffffff;
  --accent: #f4a123;
  --accent-hover: #E8A017;
  --accent-soft: #FFF3DC;
  --text: #1A2E1A;
  --text-muted: color-mix(in srgb, #1A2E1A 62%, #F5F7F4);
  --border: color-mix(in srgb, #f4a123 22%, #F5F7F4);
  --shadow: 0 8px 24px rgba(26, 46, 26, 0.08);

  --card-radius: 14px;
  --card-border: 2px;
  --pill-radius: 999px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --site-max: 1120px;
}

/* Optional: alte Grün-Variante via ?theme=gruen */
html[data-theme="gruen"] {
  --accent: #2D6A4F;
  --accent-hover: #245a42;
  --accent-soft: color-mix(in srgb, #2D6A4F 14%, #F5F7F4);
  --border: color-mix(in srgb, #2D6A4F 18%, #F5F7F4);
  --shadow: 0 8px 24px rgba(26, 46, 26, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.site {
  width: min(var(--site-max), 100% - 1.5rem);
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* —— Topbar / Menü —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  margin: 0 calc(50% - 50vw);
  padding: 0 calc(50vw - 50%);
}
.topbar-inner {
  width: min(var(--site-max), 100% - 1.5rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.35rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.brand:hover { text-decoration: none; opacity: 0.88; }
.brand-logo {
  height: clamp(66px, 14vw, 84px);
  width: auto;
  max-width: min(320px, 62vw);
  object-fit: contain;
  object-position: left center;
}

/* Logo variants: text black on light, white on dark; foot stays #f4a123 */
.logo--on-light { /* default SVG: assets/logo-barefoot-on-light.svg */ }
.logo--on-dark { /* use assets/logo-barefoot-on-dark.svg (white text) */ }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 650;
  font-family: inherit;
  padding: 0.6rem 1.05rem;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.2;
}
.menu-toggle:hover { background: var(--accent-soft); }

/* Mobile drawer */
.nav-drawer {
  display: none;
}
.nav-drawer.is-open,
.nav-drawer.is-open[hidden] { display: block !important; }
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 26, 0.35);
  z-index: 50;
}
.nav-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--bg-elevated);
  z-index: 51;
  box-shadow: -8px 0 32px rgba(26, 46, 26, 0.15);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.5rem;
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.nav-drawer-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.nav-drawer-close {
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  font-family: inherit;
}
.nav-drawer-close:hover { background: var(--accent-soft); }
.nav-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
}

/* —— Hero —— */
.hero {
  position: relative;
  margin: 1.25rem 0 1.5rem;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--card-radius);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(180, 110, 10, 0.72) 0%, rgba(232, 160, 23, 0.55) 45%, rgba(26, 46, 26, 0.45) 100%),
    url("assets/hero-allgaeu-berge.png") center / cover no-repeat,
    linear-gradient(160deg, #E8A017 0%, #f4a123 45%, #f7b84a 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  min-height: clamp(200px, 28vw, 280px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}
html[data-theme="gruen"] .hero {
  background:
    linear-gradient(125deg, rgba(26, 46, 26, 0.82) 0%, rgba(45, 106, 79, 0.65) 48%, rgba(26, 46, 26, 0.5) 100%),
    url("assets/hero-allgaeu-berge.png") center / cover no-repeat,
    linear-gradient(160deg, #1a3a28 0%, #2D6A4F 45%, #4a7c59 100%);
}
.hero-copy { min-width: 0; }
.hero-portrait {
  width: clamp(72px, 14vw, 96px);
  height: clamp(72px, 14vw, 96px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: #1a2e1a;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.hero .tagline {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.45;
}

/* —— Section heads —— */
.section {
  margin: 0 0 1.75rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.section-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* —— Jetzt aktuell —— */
.aktuell-list {
  display: grid;
  gap: 0.75rem;
}
.aktuell-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: var(--card-border) solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}
.aktuell-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.aktuell-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}
.aktuell-body p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
@media (max-width: 560px) {
  .aktuell-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .aktuell-card .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* —— Buttons / pills —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: var(--pill-radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:focus-visible { outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* —— Card grids —— */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.grid-extra {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-extra { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid,
  .grid-extra {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: var(--card-radius);
  border: var(--card-border) solid var(--accent);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 46, 26, 0.12);
  text-decoration: none;
  color: var(--text);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 15%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%);
  pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
.card-icon {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
  line-height: 1;
  opacity: 0.9;
}
.card-title {
  margin: 0;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.card-sub {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
}
.card-pill {
  margin-top: 0.85rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--pill-radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .card {
    min-height: 148px;
    padding: 0.85rem 0.8rem 0.75rem;
  }
  .card-title { font-size: 0.82rem; }
  .card-sub { font-size: 0.72rem; }
  .card-pill {
    font-size: 0.58rem;
    padding: 0.28rem 0.65rem;
  }
}

/* —— Tickets embed placeholder —— */
.tickets {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--card-radius);
  border: 2px dashed var(--accent);
  background: var(--accent-soft);
}
.tickets h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.tickets .note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
#ticket-embed {
  min-height: 120px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* —— Stub / legal pages —— */
.page-hero {
  margin: 1.25rem 0 1.5rem;
}
.page-hero-about {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.about-portrait {
  width: clamp(120px, 28vw, 180px);
  height: clamp(120px, 28vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
}
.page-hero .lede {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  max-width: 36rem;
}
.back {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.placeholder-box {
  padding: 1.5rem;
  border-radius: var(--card-radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Kontakt form */
.kontakt-form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
  padding: 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}
.kontakt-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
}
.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.kontakt-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.datenschutz-hinweis {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}
.kontakt-form .btn {
  justify-self: start;
  padding: 0.65rem 1.35rem;
  font-size: 0.8rem;
}
.form-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* —— Footer —— */
.footer {
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer a:hover { color: var(--accent); }
.draft-mark {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

body.nav-open { overflow: hidden; }

/* —— Prose / Angebotsdetails —— */
.prose,
.content-body {
  max-width: 40rem;
}
.prose p,
.content-body p {
  margin: 0 0 1.1rem;
}
.prose p:last-child,
.content-body p:last-child {
  margin-bottom: 0;
}
.prose strong,
.content-body strong {
  font-weight: 800;
}
.prose h2,
.content-body h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.prose h2:first-child,
.content-body h2:first-child {
  margin-top: 0;
}
.detail-content {
  margin-bottom: 1.75rem;
}
.detail-list {
  margin: 0;
  padding-left: 1.25rem;
}
.detail-list li + li {
  margin-top: 0.45rem;
}
.detail-actions {
  margin: 1.5rem 0 0;
}

/* —— Cookie-Hinweis —— */
.cookie-banner {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  width: min(32rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: 0 12px 36px rgba(26, 46, 26, 0.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}
.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.85rem 0;
}
.cookie-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.cookie-option input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}
.cookie-option input:disabled { opacity: 0.75; }
.cookie-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}
.cookie-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
}
.cookie-essential {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-essential:hover { color: var(--accent-hover); }
@media (max-width: 560px) {
  .cookie-banner {
    right: 0.65rem;
    bottom: 0.65rem;
    width: calc(100vw - 1.3rem);
    padding: 0.9rem;
  }
}

.prose .signoff {
  margin-top: 2rem;
  font-style: italic;
}

/* —— Feature cards (Aktuell-Stil, ohne Button/Link) —— */
.feature-grid {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: var(--card-border) solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  cursor: default;
}
.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.feature-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}
.feature-body p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Info-only Aktuell cards (no CTA button) */
.aktuell-card--info {
  grid-template-columns: auto 1fr;
  cursor: default;
}
.coaching-bausteine {
  margin: 1.25rem 0;
}


/* Theme-Banner (nur Grün-Fallback) */
.theme-banner {
  display: none;
  width: min(var(--site-max), 100% - 1.5rem);
  margin: 0.65rem auto 0;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text);
}
html[data-theme="gruen"] .theme-banner {
  display: block;
}
.theme-banner a {
  font-weight: 700;
}

/* Force yellow default (cache-safe) — Grün nur mit html[data-theme="gruen"] */
:root {
  --accent: #f4a123;
  --accent-hover: #E8A017;
  --accent-soft: #FFF3DC;
}
.btn { background: #f4a123; background: var(--accent); }
.btn:hover { background: #E8A017; background: var(--accent-hover); }
.aktuell-badge { background: #FFF3DC; background: var(--accent-soft); color: #f4a123; color: var(--accent); }
html[data-theme="gruen"] .btn { background: var(--accent); }
html[data-theme="gruen"] .btn:hover { background: var(--accent-hover); }
html[data-theme="gruen"] .aktuell-badge { background: var(--accent-soft); color: var(--accent); }
