/* TRAURINGSCHMIEDE Franchise – statischer Nachbau
   Farben und Schriften aus dem Child-Theme "ts" des WordPress-Originals */

@font-face { font-family: "DINPro"; src: url("../fonts/DINPro-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "DINPro"; src: url("../fonts/DINPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DINPro"; src: url("../fonts/DINPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DINPro"; src: url("../fonts/DINPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "AGaramondPro"; src: url("../fonts/AGaramondPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "AGaramondPro"; src: url("../fonts/AGaramondPro-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "AGaramondPro"; src: url("../fonts/AGaramondPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --trs-blue: #026082;
  --trs-button: #027798;
  --trs-yellow: #cfb787;
  --trs-gold: #978243;
  --trs-grey: #797a7c;
  --trs-beige: #f5f1e6;
  --text: #555555;
  --heading: #555555;
  --sans: "DINPro", "Helvetica Neue", Arial, sans-serif;
  --serif: "AGaramondPro", Garamond, "Times New Roman", serif;
  --page: 1080px;
  --bg: #ffffff;
  --surface: #f5f1e6;
  --footer-bg: #f6f6f6;
  --footer-link: #373737;
  --footer-hover: #000000;
  --land: #e9e0cb;
  --land-stroke: #cfb787;
  --dot: #026082;
  --dot-hover: #978243;
  --benefit-text: #3f3f3f;
  --icon-filter: none;
  --video-bg: linear-gradient(135deg, #026082 0%, #013f56 100%);
  --toggle-track: #797a7c;
  --toggle-track-on: #797a7c;
  --toggle-thumb: #ffffff;
  --toggle-ink: #1f1d1a;
  color-scheme: light dark;
}

/* Nachtmodus: automatisch nach Systemeinstellung, der Schalter überschreibt und merkt sich die Wahl */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1f1d1a;
    --surface: #2b2823;
    --text: #d6d1c7;
    --heading: #eee9df;
    --trs-gold: #cbb27a;
    --footer-bg: #171614;
    --footer-link: #cfc9bd;
    --footer-hover: #ffffff;
    --land: #3a352d;
    --land-stroke: #8a7a55;
    --dot: #cfb787;
    --dot-hover: #ffffff;
    --benefit-text: #2a2621;
    --icon-filter: invert(1) brightness(.9);
    --video-bg: linear-gradient(135deg, #024a64 0%, #012b3b 100%);
  --toggle-track: #797a7c;
  --toggle-track-on: #797a7c;
  --toggle-thumb: #1f1d1a;
  --toggle-ink: #cfb787;
    --toggle-track: #797a7c;
    --toggle-track-on: #797a7c;
    --toggle-thumb: #1f1d1a;
    --toggle-ink: #cfb787;
  }
  :root:not([data-theme="light"]) .quote img { filter: invert(1); }
  :root:not([data-theme="light"]) .logo--light { display: none; }
  :root:not([data-theme="light"]) .logo--dark { display: block; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #1f1d1a;
    --surface: #2b2823;
    --text: #d6d1c7;
    --heading: #eee9df;
    --trs-gold: #cbb27a;
    --footer-bg: #171614;
    --footer-link: #cfc9bd;
    --footer-hover: #ffffff;
    --land: #3a352d;
    --land-stroke: #8a7a55;
    --dot: #cfb787;
    --dot-hover: #ffffff;
    --benefit-text: #2a2621;
    --icon-filter: invert(1) brightness(.9);
    --video-bg: linear-gradient(135deg, #024a64 0%, #012b3b 100%);
  --toggle-track: #797a7c;
  --toggle-track-on: #797a7c;
  --toggle-thumb: #1f1d1a;
  --toggle-ink: #cfb787;
    --toggle-track: #797a7c;
    --toggle-track-on: #797a7c;
    --toggle-thumb: #1f1d1a;
    --toggle-ink: #cfb787;
}
:root[data-theme="dark"] .quote img { filter: invert(1); }
:root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark { display: block; }
:root[data-theme="light"] { color-scheme: light; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--heading); margin: 0 0 .5em; line-height: 1.2; }
h2 { font-size: 2.4em; font-weight: 700; letter-spacing: .04em; }
h3 { font-size: 1.25em; font-weight: 700; }
h4 { font-size: 1em; font-weight: 700; }
p { font-family: var(--serif); font-size: 1.1em; line-height: 1.55; margin: 0 0 1em; }
.uppercase { text-transform: uppercase; }

a { color: var(--trs-blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--trs-blue); outline-offset: 3px; }

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

/* ---------- Header ---------- */
.site-header { background: var(--bg); }
.site-header__inner {
  max-width: var(--page); margin: 0 auto; min-height: 90px; padding: 0 15px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.site-header__logo { grid-column: 2; grid-row: 1; }
.site-header__logo img { width: 200px; }
.logo--dark { display: none; }

.theme-toggle {
  grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: .25rem .5rem; background: transparent; border: 1px solid transparent;
  border-radius: 999px; cursor: pointer;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle__track {
  position: relative; flex: none; width: 2.75rem; height: 1.5rem; border-radius: 999px;
  background: var(--toggle-track); transition: background-color .2s;
}
.theme-toggle[aria-checked="true"] .theme-toggle__track { background: var(--toggle-track-on); }
.theme-toggle__thumb {
  position: absolute; top: .125rem; left: .125rem; display: grid; place-items: center;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--toggle-thumb); color: var(--toggle-ink); transition: transform .2s;
}
.theme-toggle[aria-checked="true"] .theme-toggle__thumb { transform: translateX(1.25rem); }
.theme-toggle__thumb svg { width: .85rem; height: .85rem; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle[aria-checked="true"] .icon-moon { display: block; }
.theme-toggle[aria-checked="true"] .icon-sun { display: none; }
@media (prefers-reduced-motion: reduce) { .theme-toggle__track, .theme-toggle__thumb { transition: none; } }
.site-header__link {
  grid-column: 3; grid-row: 1; justify-self: end; font-size: .8em; color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; gap: .4em;
}
.site-header__link:hover { color: var(--trs-blue); text-decoration: underline; }
.site-header__link svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Rahmen ---------- */
main { flex: 1 0 auto; width: 100%; max-width: var(--page); margin: 0 auto; }
.section { padding: 40px 30px; }
.section--beige { background: var(--surface); }
.section--framed { border-left: 2px solid var(--surface); border-right: 2px solid var(--surface); }
.section__title { text-align: center; }
.cta { text-align: center; margin-top: 10px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .85em;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--trs-button); border: 0; border-radius: 7px;
  padding: .75em 1.4em; line-height: 1.2; cursor: pointer;
}
.button:hover { background: var(--trs-blue); }
.button--normalcase { text-transform: none; }
.button--grey { background: var(--trs-grey); border-radius: 0; display: flex; justify-content: center; align-items: center; gap: .5em; width: 100%; }
.button--grey:hover { background: #666769; }
.button--grey svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; aspect-ratio: 16 / 9; background: #bebebe; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 59%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(190, 190, 190, .2); pointer-events: none; }
.hero__box {
  position: absolute; inset: 0 auto 0 0; width: 55%; z-index: 1;
  background: rgba(169, 146, 82, .651); padding: 50px 50px 30px; color: #fff;
}
.hero h1 { color: #fff; font-size: 2.4em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .45em; }
.hero p { font-size: 1.4em; line-height: 1.3; color: #fff; }

/* ---------- Businessziele ---------- */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; margin: 20px 0 10px; }
.goals img { width: 33%; margin: 0 auto 15px; filter: var(--icon-filter); }
.goals p { font-size: 1em; }

/* ---------- Video ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; background: var(--trs-blue); overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__start {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff;
  background: var(--video-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--sans); padding: 20px;
}
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__start.has-poster::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.video__start > span { position: relative; z-index: 1; }
.video__play {
  width: 84px; height: 84px; border-radius: 50%; background: var(--trs-yellow);
  display: grid; place-items: center; flex-shrink: 0; transition: transform .2s ease;
}
.video__play svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }
.video__start:hover .video__play { transform: scale(1.06); }
.video__label { font-weight: 700; font-size: 1.1em; letter-spacing: .04em; text-transform: uppercase; }
.video__note { font-size: .78em; font-weight: 400; max-width: 460px; text-align: center; opacity: .85; line-height: 1.4; }
.video__note a { color: #fff; }
.video-wrap { max-width: 1020px; margin: 20px auto 10px; }

/* ---------- Augenhöhe ---------- */
.partner { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.partner img { width: 100%; height: 100%; object-fit: cover; }
.partner__text { padding: 40px 30px; }
.partner__text h2 { font-weight: 700; }

/* ---------- Zitat ---------- */
.quote { text-align: center; padding: 40px 30px 30px; margin: 0; }
.quote blockquote { margin: 0 0 20px; }
.quote blockquote p { font-size: 2em; font-style: italic; color: var(--trs-gold); line-height: 1.3; }
.quote img { margin: 0 auto 4px; width: 200px; }
.quote figcaption { font-family: var(--serif); font-style: italic; font-size: 1em; }

/* ---------- Trauen Sie sich + Karte ---------- */
.dare { text-align: center; padding-bottom: 20px; }
.dare h2 { color: var(--trs-gold); margin-bottom: 0; }
.dare h3 { margin-top: 0; }
.dare p { font-size: 1.2em; margin-bottom: 0; }

.stores { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.store-map { min-width: 0; }
.store-map__canvas { position: relative; height: 560px; background: var(--surface); overflow: hidden; }
.store-map__preview { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
.store-map__google { position: absolute; inset: 0; }
.store-map.is-loaded .store-map__preview, .store-map.is-loaded .store-map__consent { display: none; }
.store-map__consent {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, 90%);
  background: var(--bg); padding: 20px; text-align: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
.store-map__consent p { font-size: .85em; margin: 12px 0 0; }
.store-map.is-loading .store-map__load { opacity: .6; pointer-events: none; }
.map-land { fill: var(--land); stroke: var(--land-stroke); stroke-width: 1.2; stroke-linejoin: round; }
.map-stores circle { fill: var(--trs-yellow); stroke: #fff; stroke-width: 2; }
.map-btn {
  position: absolute; top: 20px; z-index: 2; display: none; width: 32px; height: 32px; padding: 0;
  border: 0; background: #cfb787; color: #fff; font: 700 20px/32px var(--sans); cursor: pointer;
}
.map-btn--in { left: 20px; }
.map-btn--out { left: 60px; }
.store-map.is-loaded .map-btn { display: block; }
.map-btn:hover { background: #978243; }
.map-info {
  position: absolute; top: 50%; right: 20px; transform: translateY(-50%); z-index: 3; width: 260px;
  background: #fff; color: #555; padding: 18px 18px 20px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); font-family: var(--sans);
}
.map-info[hidden] { display: none; }
.map-info p { margin: 0 0 6px; font-family: var(--sans); font-size: .95em; }
.map-info__title { font-weight: 700; font-size: 1.15em !important; color: #333; }
.map-info__img { width: 100%; height: auto; margin: 8px 0 10px; }
.map-info__tel { color: #978243; }
.map-info .button { margin-top: 8px; background: #cfb787; border-radius: 0; }
.map-info .button:hover { background: #978243; }
.map-info__close { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #555; }
.store-map__hint { font-size: .8em; margin-top: 10px; text-align: center; }

.stores__side h3 { font-size: 1.25em; line-height: 1.3; }
.stores__side .button { margin: 15px 0 20px; }
.stores__side p { color: var(--trs-gold); font-weight: 700; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  color: var(--trs-gold); font-weight: 700; padding-left: 1.3em; text-indent: -1.3em; margin-bottom: .3em;
}
.checklist li::before { content: "\2713"; padding-right: .5em; }

/* ---------- Partnerstimmen ---------- */
.voices h2 { font-size: 1.9em; letter-spacing: .02em; }
.voices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 25px 0 10px; }
.voices__grid img { width: 100%; aspect-ratio: 2.3 / 1; object-fit: cover; margin-bottom: 15px; }
.voices__grid h3 { font-size: 1em; }
.voices__grid figure, .voices__grid blockquote { margin: 0; }
.voices__grid p { font-style: italic; font-size: 1em; }

/* ---------- Vorteile ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 20px 0 30px; }
.benefit { background: var(--trs-yellow); padding: 30px 20px; min-height: 200px; text-align: center; display: flex; flex-direction: column; }
.benefit h3 { order: 1; }
.benefit img { order: 2; width: 30%; margin: auto; padding-top: 18px; }
.benefit h3 { font-size: 1em; color: var(--benefit-text); margin: 0; line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); }
.site-footer__inner {
  max-width: var(--page); margin: 0 auto; padding: 30px 15px;
  display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; align-items: center;
}
.site-footer img { width: 150px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--footer-link); font-weight: 300; text-decoration: none; }
.ext { display: inline-block; width: .645em; height: .645em; margin-left: .5em; vertical-align: baseline; color: var(--trs-yellow); }
.ext svg { width: 100%; height: 100%; display: block; }
.footer-consent { background: none; border: 0; padding: 0; font: inherit; font-weight: 300; color: var(--footer-link); cursor: pointer; }
.footer-consent:hover { color: var(--footer-hover); text-decoration: underline; }
.site-footer a:hover { color: var(--footer-hover); text-decoration: underline; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 1.5em; }
  .hero h1 br { display: none; }
  .hero p { font-size: 1.1em; }
  .hero__box { padding: 30px; }
  .partner__text h2 { font-size: 1.6em; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  h2 { font-size: 1.7em; }
  h3 { font-size: 1.2em; }
  .section { padding: 30px 20px; }
  .site-header__inner { position: relative; grid-template-columns: 1fr; justify-items: center; padding: 12px 15px; gap: 6px; }
  .site-header__logo, .site-header__link { grid-column: 1; justify-self: center; }
  .site-header__link { grid-row: 2; }
  .theme-toggle { position: absolute; top: 8px; left: 6px; }
  .site-header__logo img { width: 170px; }

  .hero { aspect-ratio: auto; min-height: 420px; display: flex; align-items: flex-end; }
  .hero__box { position: relative; inset: auto; width: 100%; padding: 25px 20px; }
  .hero h1 { font-size: 1.4em; }
  .hero .button { display: block; width: max-content; margin: 0 auto; }

  .goals, .partner, .stores, .voices__grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .video { aspect-ratio: auto; min-height: 240px; }
  .video__start { gap: 12px; }
  .video__play { width: 60px; height: 60px; }
  .video__play svg { width: 26px; height: 26px; }
  .partner__text { padding: 30px 20px; }
  .quote blockquote p { font-size: 1.5em; }
  .voices h2 br { display: none; }
  .store-map { margin: 0 -20px; }
  .store-map__canvas { height: 440px; }
  .map-info { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; transform: none; }
  .map-info__img { display: none; }
  .stores__side { background: var(--bg); border: 1px solid var(--trs-yellow); padding: 25px; }
  .site-footer__inner { justify-content: center; text-align: center; }
  .site-footer ul { justify-content: center; }
}

@media (max-width: 420px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit { min-height: 0; }
}
