/* ============================================================
   Haerzenswunder — Design-System (Konzept 2026-11-25)
   Reines CSS, kein Framework. Farben/Schriften aus Logo v03.
   ============================================================ */

/* --- Fonts: Nunito Sans selbst gehostet (OFL) --- */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-sans-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-700.woff2") format("woff2");
}

/* --- Tokens --- */
:root {
  --bordeaux: #6B203C;
  --bordeaux-dark: #4E152B;
  --gold: #C09070;
  --gold-deep: #A87654;
  --paper: #FAF6F2;
  --tint: #F4E9E7;
  --ink: #34272B;

  --font-title: "akhand", "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1140px;
  --text-col: 68ch;
  --radius: 14px;
  --shadow-card: 0 10px 30px rgba(78, 21, 43, .10);
  --section-pad: clamp(3.5rem, 8vw, 7rem);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--bordeaux);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1.15em; max-width: var(--text-col); }

.eyebrow {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }
.section--tint { background: var(--tint); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1.05em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn--primary {
  background: var(--bordeaux);
  color: #fff;
}
.btn--primary:hover {
  background: var(--bordeaux-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn--gold {
  background: var(--gold);
  color: var(--bordeaux-dark);
}
.btn--gold:hover {
  background: #fff;
  color: var(--bordeaux-dark);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}
.btn--outline:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(78, 21, 43, .12);
  transition: background-color .3s ease, border-color .3s ease;
}
/* Startseite: Header startet transparent ueber dem Hero */
body.home .site-header {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
body.home .site-header.is-scrolled {
  position: fixed;
  background: var(--paper);
  border-bottom-color: rgba(78, 21, 43, .12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
/* Logo-Varianten je nach Header-Zustand (nur Startseite) */
.brand .logo-dark { display: inline-block; }
.brand .logo-white { display: none; }
body.home .site-header:not(.is-scrolled) .brand .logo-dark { display: none; }
body.home .site-header:not(.is-scrolled) .brand .logo-white { display: inline-block; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: var(--bordeaux); border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] {
  color: var(--bordeaux);
  border-bottom-color: var(--gold);
}
/* Transparent-Modus Home: weisse Links */
body.home .site-header:not(.is-scrolled) .main-nav a { color: #fff; }
body.home .site-header:not(.is-scrolled) .main-nav a:hover,
body.home .site-header:not(.is-scrolled) .main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold);
}

.header-cta {
  font-size: 0.92rem;
  padding: 0.8em 1.5em;
}
body.home .site-header:not(.is-scrolled) .header-cta {
  background: rgba(250, 246, 242, .16);
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
  background-clip: padding-box;
}
body.home .site-header:not(.is-scrolled) .header-cta:hover {
  background: #fff;
  color: var(--bordeaux);
  border-color: #fff;
}

/* Burger */
.nav-toggle {
  display: none;
  position: relative;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--bordeaux);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
}
body.home .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile-Nav-Overlay */
@media (max-width: 880px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bordeaux);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 200;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .main-nav a {
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
  }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
}

/* --- Hero Home --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(46, 10, 22, .15), rgba(46, 10, 22, .55));
}
.hero__inner {
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  max-width: 900px;
}
.hero__logo {
  height: clamp(90px, 16vw, 150px);
  width: auto;
  margin: 0 auto 1.6rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.hero__sub {
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 auto 2.2rem;
  color: rgba(255, 255, 255, .92);
}

/* --- Hero Unterseiten (Band) --- */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(46, 10, 22, .15), rgba(46, 10, 22, .55));
}
.page-hero__inner {
  padding: 3rem 0 3rem;
}
.page-hero h1 { color: #fff; margin: 0; }

/* --- Karten --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.8rem;
}
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}
.card__body {
  padding: 1.6rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__body h3 { margin-bottom: 0.6rem; }
.card__body p { margin-bottom: 1.2rem; }
.card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
}
.card__link::after { content: " \2192"; }
.card__link:hover { color: var(--bordeaux); }

/* --- Split (Bild + Text) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split--portrait .split__img { aspect-ratio: 4 / 5; }

/* --- CTA-Band --- */
.cta-band {
  position: relative;
  color: #fff;
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  overflow: hidden;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(78, 21, 43, .72), rgba(46, 10, 22, .78));
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin-inline: auto; color: rgba(255, 255, 255, .92); }

/* --- Listen mit Gold-Marker --- */
.ticks {
  list-style: none;
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  max-width: var(--text-col);
}
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.05rem;
  height: 1.05rem;
  background: url("../logo/signet.svg") no-repeat center / contain;
}

/* --- Tarif-/Info-Karten --- */
.facts {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.8rem, 4vw, 3rem);
}

/* --- Formular --- */
.form {
  display: grid;
  gap: 1.3rem;
  max-width: 620px;
}
.form label { font-weight: 700; display: block; margin-bottom: 0.35rem; }
.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(78, 21, 43, .25);
  border-radius: 10px;
  padding: 0.85em 1em;
  transition: border-color .2s ease;
}
.form input:focus, .form textarea:focus {
  border-color: var(--bordeaux);
  outline: none;
}
.form textarea { min-height: 170px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 0.35em; }

.form-note {
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
}
.form-note--ok { background: #E9F2E4; color: #2E5B27; border: 1px solid #B7D3AA; }
.form-note--err { background: #F9E7E7; color: #7A1F2B; border: 1px solid #E3B3B8; }
[hidden] { display: none !important; }

/* --- Kontakt-Block --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.contact-card h2, .contact-card h3 { margin-top: 0; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--bordeaux); margin-top: 1.1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.15rem 0 0; }

/* --- Footer --- */
.site-footer {
  background: var(--bordeaux-dark);
  color: rgba(255, 255, 255, .85);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 110px; width: auto; margin-bottom: 1.2rem; }
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--gold); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-nav a { text-decoration: none; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
}
.footer-bottom a { color: rgba(255, 255, 255, .7); }

/* --- Recht-Seiten --- */
.legal h2 { margin-top: 2.4rem; }
.legal address { font-style: normal; line-height: 1.7; }

/* --- Reduzierte Bewegung --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
