/* =========================================================================
   BIERGERMEISTER | style.css
   Nachbau des bisherigen Porto-Looks, ohne Bootstrap und ohne jQuery.
   Farben zentral unter :root.
   ========================================================================= */

/* ---------- Schriften (liegen auf dem eigenen Server) ------------------- */
@font-face { font-family: "Open Sans"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/open-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/open-sans-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/open-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Shadows Into Light"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/shadows-into-light-400.woff2") format("woff2"); }

/* ---------- Farben ------------------------------------------------------ */
:root {
  --bg: #1d2127;            /* Seite und Kopf */
  --bg-line: #2e353e;       /* Linie über dem Kopf, FAQ-Balken */
  --intro: #141414;         /* Willkommens-Band */
  --page-head: #171717;     /* Titelband der Unterseiten */
  --page-head-top: #384045;
  --page-head-bottom: #282d36;
  --footer: #0e0e0e;
  --copyright: #060606;

  --primary: #f7c121;       /* Gold */
  --primary-hover: #f8ca44;
  --primary-dark: #dda708;
  --primary-shadow: #c49507;
  --gold-light: #f9cf52;

  --text: #777;
  --text-light: #999;
  --copy-text: #555;
  --white: #fff;

  --font: "Open Sans", Arial, sans-serif;
  --hand: "Shadows Into Light", cursive;
}

/* ---------- Grundlagen -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/22px var(--font);
  -webkit-font-smoothing: antialiased;
}
main { display: flow-root; }  /* Abstände wie im Original nicht zusammenfallen lassen */
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover, a:focus { color: var(--primary-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
p { margin: 0 0 20px; }
strong { font-weight: 700; }
ul { margin: 0; }
.list-unstyled { list-style: none; padding: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--primary); color: var(--white); padding: 8px 14px; }
.skip-link:focus { left: 0; }

/* Raster wie Bootstrap 3 */
.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row > * { width: 100%; padding: 0 15px; }
@media (min-width: 992px) {
  .col-2 { width: 16.6667%; } .col-3 { width: 25%; } .col-4 { width: 33.3333%; }
  .col-6 { width: 50%; } .col-8 { width: 66.6667%; }
}

/* ---------- Kopf -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: -57px;               /* beim Scrollen bleibt nur die Menüzeile stehen */
  z-index: 100;
}
.header-body {
  background: var(--bg);
  border-top: 5px solid var(--bg-line);
  padding: 8px 0;
  transition: box-shadow .2s;
}
.is-sticky .header-body { box-shadow: 0 0 6px rgba(0, 0, 0, .45); }
.header-inner { position: relative; min-height: 104px; }

.logo { display: inline-block; }
.logo img {
  position: relative; top: 0;
  height: 54px; width: auto;
  margin: 24px 24px 24px 0;
  transition: height .2s, top .2s;
}
.is-sticky .logo img { height: 40px; top: 33px; }

.header-nav {
  position: absolute; right: 15px; top: 58px;
  display: flex; align-items: flex-start;
}
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 10px 13px;
  border-radius: 4px;
  color: var(--primary);
  font-size: 12px; font-weight: 700; line-height: 20px;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] {
  background: var(--primary); color: var(--white); text-decoration: none;
}

.social-icons { display: flex; gap: 5px; list-style: none; margin: 2px 0 0 10px; padding: 0; }
.social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); color: #333;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .3);
  font-size: 11px; font-weight: 700; line-height: 1;
  transition: background .2s, color .2s;
}
.social-icons a:hover, .social-icons a:focus { color: var(--white); text-decoration: none; }
.social-icons .fb a:hover, .social-icons .fb a:focus { background: #3b5a9a; }
.social-icons .yt a:hover, .social-icons .yt a:focus { background: #c3191e; }

.nav-toggle {
  display: none;
  position: absolute; right: 15px; top: 60px;
  width: 38px; height: 34px; padding: 0;
  border: 0; border-radius: 4px;
  background: var(--primary); color: var(--white); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 14px; height: 2px; background: currentColor;
  margin: 0 auto; position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -5px; }
.nav-toggle .bars::after  { position: absolute; top: 5px; }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .header-nav { position: static; display: block; }
  .main-nav { display: none; padding: 0 0 12px; }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 13px; padding: 7px 8px; margin: 1px 0; }
  .social-icons { position: absolute; right: 63px; top: 62px; margin: 0; }
}
@media (max-width: 767px) {
  .social-icons { display: none; }
}

/* ---------- Slider (Startseite, Team, Unterstützer) ---------------------- */
.slider {
  position: relative;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}
.slider > :not(.slider-ui) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.slider > img, .slider > a > img { width: 100%; height: 100%; object-fit: cover; }
.slider > a > img { display: block; }
.slider > :first-child, .slider > .is-active { opacity: 1; z-index: 1; }
.slider.is-ready > :first-child:not(.is-active) { opacity: 0; z-index: 0; }

.slider-hero { height: clamp(110px, 32vw, 435px); }
.slider-boxed { aspect-ratio: 1140 / 500; margin-bottom: 35px; }

.slider-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.slider-arrow {
  position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px;
  border: 0; border-radius: 3px; padding: 0;
  background: rgba(0, 0, 0, .45); cursor: pointer; pointer-events: auto;
  opacity: .8; transition: opacity .2s, background .2s;
}
.slider-arrow:hover, .slider-arrow:focus-visible { opacity: 1; background: rgba(0, 0, 0, .7); }
.slider-arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 11px; margin: -6px 0 0 -4px;
  border: solid var(--white); border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-next::before { margin-left: -8px; transform: rotate(-135deg); }

.slider-dots {
  position: absolute; left: 20px; right: 20px; bottom: 6px;
  display: flex; justify-content: center; pointer-events: auto;
}
.slider-dots button {
  width: 19px; height: 19px; padding: 6px; border: 0; background: none; cursor: pointer;
}
.slider-dots button::before {
  content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: #ccc;
}
.slider-dots button[aria-current="true"]::before { background: var(--white); }

@media (max-width: 600px) {
  .slider-hero .slider-arrow { display: none; }
}

/* Unterstützer: Karussell im Fuß */
.slider-sponsors {
  aspect-ratio: 1 / 1; max-width: 300px;
  border-radius: 4px; overflow: hidden; background: transparent;
}
.sponsor-wrap { max-width: 300px; }
.sponsor-wrap .slider-dots { position: static; justify-content: center; margin-top: 6px; }
.sponsor-wrap .slider-dots button { width: 24px; height: 20px; padding: 5px 7px; }
.sponsor-wrap .slider-dots button::before { width: 10px; height: 10px; background: var(--bg-line); }
.sponsor-wrap .slider-dots button[aria-current="true"]::before { background: var(--primary); }

/* ---------- Willkommens-Band (Startseite) -------------------------------- */
.home-intro {
  background: var(--intro);
  padding: 20px 0 10px;
  margin-bottom: 60px;
}
.intro-copy {
  color: var(--white);
  font-size: 18.2px; font-weight: 300; line-height: 24px;
  padding-top: 5px; margin-bottom: 20px;
}
.intro-copy h1, .intro-copy p { display: inline; font: inherit; margin: 0; }
.intro-copy h1 strong {
  color: var(--gold-light);
  font-size: 1.6em; font-weight: 700; letter-spacing: -1px;
}
.intro-copy p { color: var(--text-light); font-size: .8em; }

.get-started { margin: 15px 0; text-align: right; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--primary); border-bottom-color: var(--primary-dark);
  border-radius: 6px;
  background: var(--primary); color: var(--white);
  font-size: 18px; line-height: 24px; text-align: center;
}
.btn:hover, .btn:focus { background: var(--primary-hover); color: var(--white); text-decoration: none; }
.learn-more { display: inline-block; margin-left: 15px; color: var(--text); }
.learn-more a { color: var(--text); text-decoration: underline; }
.learn-more a:hover { color: var(--white); }

/* ---------- Titelband der Unterseiten ------------------------------------ */
.page-header {
  background: var(--page-head);
  border-top: 5px solid var(--page-head-top);
  border-bottom: 5px solid var(--page-head-bottom);
  padding: 20px 0;
  margin: 0 0 35px;
  min-height: 50px;
  font-size: 14px;
}
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; margin: -3px 0 0; padding: 0; line-height: 24px; }
.breadcrumb li + li::before { content: "/\00a0"; padding: 0 5px; color: #555; }
.breadcrumb [aria-current] { color: var(--text); }
.page-header h1 {
  display: inline-block;
  margin: 0 0 -25px; padding: 0 0 17px;
  border-bottom: 5px solid var(--primary);
  color: var(--white);
  font-size: 36.4px; font-weight: 300; line-height: 46px; letter-spacing: -1px;
}

/* ---------- Inhalt ------------------------------------------------------- */
.content { font-size: 14px; }
.content h2 {
  color: var(--white);
  font-size: 30.8px; font-weight: 300; line-height: 42px; letter-spacing: -1px;
  margin: 0 0 32px;
}
.content h4 {
  color: var(--white);
  font-size: 19.6px; font-weight: 400; line-height: 27px;
  margin: 35px 0 14px;
}
.content h4:first-child { margin-top: 0; }
.content p, .content li { line-height: 24px; }
.lead { font-size: 21px; font-weight: 300; line-height: 29.4px; }
hr {
  height: 1px; margin: 22px 0; border: 0;
  background: linear-gradient(to right, transparent, #3f4247, transparent);
}

/* FAQ: aufklappbare Fragen */
.toggle { margin: 10px 0 20px; }
.toggle details { margin-top: 10px; }
.toggle summary {
  position: relative;
  display: block; list-style: none; cursor: pointer;
  padding: 12px 34px 12px 10px; margin-bottom: 5px;
  border-left: 3px solid var(--primary); border-radius: 5px;
  background: var(--bg-line); color: var(--primary);
  font-size: 15.4px; line-height: 22px;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary::after {
  content: ""; position: absolute; right: 14px; top: 50%; margin-top: -6px;
  border: 6px solid transparent; border-left: 7px solid var(--primary); border-right: 0;
  transition: transform .2s;
}
.toggle details[open] summary::after { transform: rotate(90deg); }
.toggle summary:hover { color: var(--primary-hover); }
.toggle details p { color: var(--text-light); padding-left: 30px; }

/* Karte mit Zwei-Klick-Lösung */
.map-consent {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px;
  border-radius: 4px;
  background: #22272e repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, .025) 18px 36px);
  color: var(--text-light); text-align: center; font-size: 12px; line-height: 18px;
}
.map-consent button {
  border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer;
  background: var(--primary); color: var(--white);
  font: 700 12px/18px var(--font);
}
.map-consent button:hover { background: var(--primary-hover); }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.map-footer { height: 150px; }
.map-large { height: 400px; margin: -35px 0 30px; border-radius: 0; }
.map-consent .pin { width: 22px; height: 30px; fill: var(--primary); }

/* ---------- Fuß ---------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 50px; padding-top: 70px;
  background: var(--footer);
  border-top: 4px solid var(--footer);
  font-size: 11.7px; line-height: 22px;
}
.footer-main { position: relative; }
.footer-ribbon {
  position: absolute; top: -90px; left: 14px;
  padding: 10px 20px 6px;
  background: var(--primary);
}
.footer-ribbon::before {
  content: ""; position: absolute; left: -10px; top: 0;
  border-right: 10px solid var(--primary-shadow); border-top: 16px solid transparent;
}
.footer-ribbon span { color: var(--white); font: 18.72px/22px var(--hand); }
.site-footer h2 {
  color: var(--white);
  font-size: 21.06px; font-weight: 300; line-height: 27px; letter-spacing: -1px;
  margin: 0 0 14px;
}
.site-footer p { line-height: 24px; }
.site-footer .row > * { margin-bottom: 20px; }

.footer-copyright {
  margin-top: 20px; padding: 30px 0 10px;
  background: var(--copyright);
  border-top: 4px solid var(--copyright);
}
.footer-copyright .row > * { margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--copy-text); }
.footer-brand img { height: 35px; width: auto; }
.sub-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 0; list-style: none; padding: 0; margin: 6px 0 0; }
.sub-menu li { padding-right: 8px; line-height: 12px; }
.sub-menu li + li { padding-left: 8px; border-left: 1px solid #333; }
.sub-menu a { color: var(--white); }
.sub-menu a:hover { color: var(--primary); }

@media (max-width: 991px) {
  .footer-ribbon { left: 14px; }
  .sub-menu { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .slider > :not(.slider-ui), .logo img, .header-body { transition: none; }
}

mark.todo { background: var(--primary); color: #000; padding: 0 .25em; }
