/* Grafiken, Schriften und Farben aus dem Template "mangoblau" von bartsch-oldenburg.de, alles lokal (keine externen Anfragen) */
@font-face { font-family: "Bree Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bree-serif-v9-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/open-sans-v17-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/open-sans-v17-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/open-sans-v17-latin-700.woff2") format("woff2"); }

:root {
  --green: #008e39;
  --green-dark: #008837;
  --red: #d61030;
  --head: #474747;
  --text: #606060;
  --line: #b6b6b6;
  --foot: #bababa;
  --slate: #23232a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--slate) url("img/bartsch-background-1.jpg") no-repeat center center fixed; background-size: cover; min-height: 100%; }
body { margin: 0 auto; max-width: 1980px; font: 14px/1.8 "Open Sans", sans-serif; color: var(--text); background: transparent; overflow-x: hidden; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
::selection { background: var(--green); color: #fff; }

/* Kopf: Logo-Karte links oben wie auf der Live-Seite, rechts Telefon und Social Media in der Menü-Optik */
header { position: relative; height: 87px; }
.logo { position: absolute; left: 47px; top: 0; z-index: 200; width: 209px; }
.logo img { display: block; width: 100%; height: auto; }
.topnav { display: flex; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; padding: 0 40px 0 280px; }
.topnav a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 15px; padding: 8px 10px; display: inline-flex; align-items: center; gap: 8px; }
.topnav a:hover { color: var(--green); }
.topnav .sep { width: 1px; height: 50px; background: #a8a8a8; }
.topnav svg { width: 22px; height: 22px; fill: currentColor; }
.topnav img { display: block; width: 38px; height: 38px; transition: transform .2s ease-out; }
.topnav a.social { padding: 8px 6px; }
.topnav a.social:hover img { transform: scale(1.08); }

/* Bild-Banner der Unterseiten mit Störer im Slider-Stil */
.banner { height: 210px; background: #3b2a1d url("img/bartsch-unterseite-header.jpg") no-repeat right center; background-size: cover; display: flex; align-items: center; }
.banner .inner { width: 100%; max-width: 1110px; margin: 0 auto; padding: 0 16px 0 max(16px, 290px); }
.stoerer-rot { display: inline-block; background: var(--red); color: #fff; font-weight: 600; text-transform: uppercase; font-size: 22px; line-height: 1.2; padding: 8px 15px; box-shadow: 1px 2px 3px 0 rgba(0,0,0,.6); }
.stoerer-gruen { position: relative; display: inline-block; margin: 10px 0 0; background: var(--green); color: #fff; font: 400 27px/1.15 "Bree Serif", serif; text-transform: uppercase; padding: 15px 12px; box-shadow: 1px 2px 3px 0 rgba(0,0,0,.6); }
.stoerer-gruen::after { content: ""; position: absolute; top: 0; left: 100%; margin-left: 5px; border: 31px solid transparent; border-left: 30px solid var(--red); border-right-width: 0; }

/* Inhalt: weiße Box mit Original-Welle am unteren Rand */
main { max-width: 1110px; margin: 40px auto 0; padding: 0 16px; }
.page { background: #fff url("img/bartsch-content-welle.png") no-repeat bottom; background-size: 100%; padding: 10px 30px calc(15% + 24px); box-shadow: 0 3px 9px 1px rgba(0,0,0,.6); }
h1, h2 { font: 400 27px/1.3 "Bree Serif", serif; text-transform: uppercase; color: var(--head); margin: 25px 0; }
h2 { font-size: 23px; margin: 40px 0 20px; }
.lead { font-size: 16px; max-width: 70ch; margin: 0; }

.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.teaser { position: relative; background: #fff url("img/bartsch-teaser-welle.png") no-repeat center bottom; background-size: 100%; box-shadow: 0 3px 9px 1px rgba(0,0,0,.45); padding-bottom: calc(34% + 12px); min-width: 0; }
.teaser h3 { margin: 0; padding: 18px 10px 14px; text-align: center; text-transform: uppercase; font: 400 21px/1.2 "Bree Serif", serif; color: var(--head); }
.teaser .body { text-align: center; padding: 0 16px 10px; }
.teaser .big { font: 400 22px/1.3 "Bree Serif", serif; color: var(--green); text-decoration: none; font-variant-numeric: tabular-nums; }
.teaser a.big:hover { color: var(--red); }
.teaser p { margin: 4px 0 0; }
address { font-style: normal; }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 30px; }
.services li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
.services li::before { content: ""; position: absolute; left: 0; top: 17px; border: 6px solid transparent; border-left: 8px solid var(--green); border-right: 0; }
.services b { color: var(--head); }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; font: 400 16px/1.2 "Bree Serif", serif; text-decoration: none; padding: 12px 16px; transition: background .25s ease-out; }
.btn:hover { background: var(--red); color: #fff; }
.btn img { width: 24px; height: 24px; display: block; flex: none; }

/* Unterseiten (Impressum, Datenschutz) */
.banner-sub { height: 210px; }
.page.text { font-size: 14px; }
.page.text h2 { font-size: 18px; margin: 30px 0 8px; }
.page.text p, .page.text ul { margin: 0 0 12px; max-width: 80ch; }
.back { display: inline-block; margin-top: 20px; }


/* Fuß wie auf der Live-Seite */
footer { max-width: 1110px; margin: 80px auto 0; padding: 0 16px 20px; }
.footcont { border-top: 2px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 20px; color: var(--foot); }
.footcont p { margin: 0; padding: 17px 0 20px; }
.footmenu { display: flex; align-items: center; flex-wrap: wrap; }
.footmenu a { color: var(--foot); text-decoration: none; font-size: 15px; padding: 17px 10px 20px; }
.footmenu a:hover { color: var(--green-dark); }
.footmenu span { color: var(--foot); font-size: 19px; font-weight: 100; }

@media (max-width: 1076px) {
  .logo { width: 150px; left: 16px; }
  .topnav { padding: 0 16px 0 180px; }
  .banner .inner { padding-left: 190px; }
}
@media (max-width: 640px) {
  header { height: 70px; }
  .logo { width: 110px; }
  .topnav { padding: 0 10px 0 136px; gap: 0; }
  .banner .inner { padding-left: 16px; }
  .topnav .label { display: none; }
  .topnav .sep { height: 34px; }
  .topnav img { width: 32px; height: 32px; }
  .banner.banner-sub { height: 120px; min-height: 0; padding: 0; }
  .banner { height: auto; min-height: 210px; padding: 60px 0 24px; }
  .stoerer-rot { font-size: 17px; }
  .stoerer-gruen { font-size: 21px; }
  .stoerer-gruen::after { display: none; }
  main { margin-top: 24px; }
  .page { padding: 4px 18px calc(15% + 20px); }
  h1 { font-size: 23px; }
  .footcont { justify-content: center; text-align: center; }
}

/* Filialen */
.filiale .body { text-align: left; padding: 0 22px 10px; }
.filiale h3 { padding-bottom: 6px; }
.filiale .sb { text-align: center; margin: 0 0 10px; }
.filiale .sb { color: var(--red); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.filiale address { font-weight: 600; color: var(--head); margin-bottom: 8px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.hours dt { color: var(--head); }
.hours dd { margin: 0; }
.filiale .tel { font: 400 18px/1.4 "Bree Serif", serif; text-decoration: none; }
.filiale .tel:hover { color: var(--red); }
.sbinfo { margin: 20px 0 0; max-width: 80ch; }
.social-note { margin-bottom: 16px; }
.filiale .foto { display: block; width: 100%; height: auto; aspect-ratio: 480 / 338; object-fit: cover; margin: 0 0 14px; }

/* Startseite: Inhalte in einzelnen Boxen */
.box { background: #fff; padding: 10px 30px 30px; box-shadow: 0 3px 9px 1px rgba(0,0,0,.6); margin-bottom: 30px; min-width: 0; }
.box.page { background: #fff url("img/bartsch-content-welle.png") no-repeat bottom; background-size: 100%; padding-bottom: calc(15% + 24px); margin-bottom: 0; }
.box h2.first { font-size: 27px; margin: 25px 0; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 30px; }
.row2 .lead { font-size: 15px; }
@media (max-width: 640px) {
  .box { padding: 4px 18px 22px; margin-bottom: 20px; }
  .box.page { padding-bottom: calc(15% + 20px); }
  .box h2.first { font-size: 23px; }
}

/* Teaser direkt auf dem Schiefer, Überschrift weiß wie auf der Live-Seite */
.slate { margin: 10px 0 40px; }
.slate:last-child { margin-bottom: 0; }
.slate h2.first { color: #fff; margin: 10px 0 22px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.slate .teaser { box-shadow: 0 3px 9px 1px #000; }
.slate .sbinfo { color: #e0e0e0; text-shadow: 0 1px 2px rgba(0,0,0,.6); margin-top: 24px; }
.slate .sbinfo b { color: #fff; }
.slate .teaser-grid { gap: 40px; }
@media (max-width: 640px) { .slate .teaser-grid { gap: 28px; } }

/* Social-Buttons umrahmt statt grün gefüllt */
.btn { background: #fff; color: var(--head); border: 2px solid var(--green); padding: 10px 14px; }
.btn:hover, .btn:focus-visible { background: #fff; color: var(--green); border-color: var(--red); }

/* Desktop: Social-Buttons in einer Reihe */
@media (min-width: 1100px) {
  .row2 { grid-template-columns: 1fr 1.25fr; }
  .row2 .buttons { flex-wrap: nowrap; }
  .row2 .btn { white-space: nowrap; }
}

/* Bereichssprünge */
html { scroll-behavior: smooth; }
.slate { scroll-margin-top: 20px; }
.jumps { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.jump { position: relative; padding-left: 20px; font: 400 16px/1.4 "Bree Serif", serif; color: var(--green); text-decoration: none; }
.jump::before { content: ""; position: absolute; left: 2px; top: 5px; border: 6px solid transparent; border-top: 8px solid var(--red); border-bottom: 0; }
.jump:hover { color: var(--red); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Buttons wie "ath-button" der Live-Seite: rot, Bree Serif, grüner Einschub von links beim Hover */
.btn, .jump { position: relative; z-index: 0; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; background: #dc0023; color: #fff; border: 0; border-radius: 0; padding: 10px 10px; font: 400 16px/1.3 "Bree Serif", serif; text-decoration: none; transition: none; }
.btn::after, .jump::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #008837; z-index: -1; transition: left .25s ease-out; }
.btn:hover, .btn:focus-visible, .jump:hover, .jump:focus-visible { background: #dc0023; color: #fff; border: 0; }
.btn:hover::after, .btn:focus-visible::after, .jump:hover::after, .jump:focus-visible::after { left: 0; }
.jump { padding-left: 10px; }
.jump::before { display: none; }
.jumps { gap: 10px; }
.buttons { gap: 10px; }
@media (prefers-reduced-motion: reduce) { .btn::after, .jump::after { transition: none; } }
.stoerer-gruen::after { display: none; }
.teaser .body .btn { margin-top: 14px; }
#kontakt .teaser { display: flex; flex-direction: column; }
#kontakt .teaser .body { flex: 1; display: flex; flex-direction: column; align-items: center; }
#kontakt .teaser .body .btn { margin-top: auto; }
#kontakt .teaser .body > :nth-last-child(2) { margin-bottom: 14px; }

/* Social-Buttons: weiß mit dezentem Rahmen, grüner Einschub beim Hover bleibt */
.buttons .btn { background: #fff; color: var(--head); box-shadow: inset 0 0 0 1px #ccc; transition: color .25s ease-out; }
.buttons .btn:hover, .buttons .btn:focus-visible { background: #fff; color: #fff; box-shadow: inset 0 0 0 1px #008837; }

/* Versteckte Hauptüberschrift (wie auf der Live-Seite) */
.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; }

/* Häufige Fragen */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 6px 40px; }
.faq-item h3 { margin: 0 0 4px; font: 400 17px/1.35 "Bree Serif", serif; color: var(--head); }
.faq-item p { margin: 0 0 14px; }
