/* Schulze-Renzel – Stylesheet
   Mobile-first. Keine externen Ressourcen. Tokens oben, danach Basis, Layout, Komponenten. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0b69b4;
  --blue-dark: #084f88;
  --blue-soft: #e8f1f9;
  --amber: #e09900;
  --amber-soft: #fdf3dc;
  --ink: #17202c;
  --ink-soft: #4a5565;
  --bg: #ffffff;
  --surface: #f5f3ee;
  --line: #dcdad2;
  --ok: #1d7a46;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s-1: .5rem; --s-2: .75rem; --s-3: 1rem; --s-4: 1.5rem; --s-5: 2.5rem; --s-6: 4rem; --s-7: 6rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(23 32 44 / .08), 0 6px 20px rgb(23 32 44 / .07);
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #5eb0f0; --blue-dark: #8cc8f7; --blue-soft: #14283a;
    --amber: #f0b030; --amber-soft: #2e2410;
    --ink: #eef1f5; --ink-soft: #b4bdc9;
    --bg: #10161e; --surface: #18202b; --line: #2b3644;
    --ok: #5fcf8e;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 20px rgb(0 0 0 / .3);
  }
  img { filter: brightness(.92); }
  .logo-img { filter: none; background: #fff; border-radius: 8px; padding: .4rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 var(--s-3); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 var(--s-3); text-wrap: pretty; }
ul { margin: 0 0 var(--s-3); padding-left: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-2); top: -4rem; background: var(--ink); color: var(--bg); padding: var(--s-2) var(--s-3); z-index: 100; border-radius: 8px; }
.skip:focus { top: var(--s-2); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s-6); }
.section--tint { background: var(--surface); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue a { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: var(--s-5); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: var(--s-2); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem;
  padding: .7rem 1.5rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--amber { background: var(--amber); border-color: var(--amber); color: #17202c; }
.btn--amber:hover { background: #c98700; border-color: #c98700; color: #17202c; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }
.section--blue .btn--ghost, .hero .btn--ghost { color: #fff; border-color: #fff; }
.section--blue .btn--ghost:hover, .hero .btn--ghost:hover { background: rgb(255 255 255 / .15); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-2); }
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand strong { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.brand span { display: none; white-space: nowrap; font-size: .72rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; }
.header-cta { display: flex; gap: var(--s-2); align-items: center; }
.header-cta .btn { min-height: 2.6rem; padding: .45rem 1.1rem; font-size: .9rem; }
.header-tel { display: none; white-space: nowrap; font-weight: 700; text-decoration: none; color: var(--ink); }
.nav { border-top: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.nav a {
  display: block; padding: .8rem .85rem; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink);
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); color: var(--blue); }

@media (min-width: 40rem) { .brand span { display: block; } }
@media (min-width: 56rem) {
  .site-header { position: sticky; top: 0; z-index: 50; }
  .header-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
  .nav { border: 0; order: 2; }
  .header-top { padding-block: var(--s-3); gap: var(--s-4); }
  .header-tel { display: inline; }
  .nav a { padding-block: 1.1rem; }
  .nav ul { display: flex; gap: .25rem; text-align: left; }
}

/* Hero */
.hero { position: relative; color: #fff; background: #0a2540; overflow: hidden; }
.hero img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgb(8 28 48 / .9) 0%, rgb(8 28 48 / .62) 55%, rgb(8 28 48 / .2) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(3rem, 10vw, 7rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { color: rgb(255 255 255 / .9); }
.hero a:not(.btn) { color: #fff; }

.page-head { background: var(--surface); padding-block: var(--s-5) var(--s-5); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: var(--s-2); }
.page-head p { color: var(--ink-soft); max-width: 44rem; margin: 0; font-size: 1.1rem; }
.crumbs { font-size: .85rem; margin-bottom: var(--s-3); color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; }
.crumbs a { color: var(--ink-soft); }

/* Grids & Karten */
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--blue); }
.card .media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.card-body { display: flex; flex-direction: column; gap: .25rem; padding: var(--s-3) var(--s-3) var(--s-3); flex: 1; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .kind { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.facts li { font-size: .78rem; font-weight: 600; background: var(--blue-soft); color: var(--blue-dark); border-radius: 6px; padding: .15rem .5rem; }
.price { margin-top: auto; padding-top: var(--s-3); display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.price span { font-size: .8rem; color: var(--ink-soft); }
.card--path .media { aspect-ratio: 3 / 2; }
.card--path h3 { font-size: 1.3rem; }
.card--path .arrow { margin-top: auto; padding-top: var(--s-2); font-weight: 700; color: var(--blue); }

/* Kategorie-Navigation (Chips) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.chips a {
  display: inline-flex; gap: .5rem; align-items: center; min-height: 2.75rem; padding: .4rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--line); text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink); background: var(--bg);
}
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.chips small { font-weight: 600; color: var(--ink-soft); }

.category + .category { margin-top: var(--s-6); }
.category-head { max-width: 46rem; margin-bottom: var(--s-4); }
.category-head h2 { margin-bottom: var(--s-1); }
.category-head p { color: var(--ink-soft); margin: 0; }

/* Versprechen */
.promises { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.promises li { background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 10px; padding: var(--s-3); }
.promises strong { display: block; margin-bottom: .25rem; }
.promises span { color: var(--ink-soft); font-size: .95rem; }

/* Zwei Spalten */
.split { display: grid; gap: var(--s-5); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); } .split--wide { grid-template-columns: 7fr 5fr; } }

/* Detailseite */
.detail { display: grid; gap: var(--s-5); }
@media (min-width: 60rem) { .detail { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } .aside { grid-column: 2; grid-row: 1; position: sticky; top: 6rem; } .detail .main { grid-column: 1; grid-row: 1; } }
.gallery { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.gallery a { position: relative; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.box + .box { margin-top: var(--s-3); }
.box h2, .box h3 { font-size: 1.1rem; margin-bottom: var(--s-2); }
.box--price { background: var(--amber-soft); border-color: var(--amber); }
.big-price { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.big-price + small { display: block; color: var(--ink-soft); margin-bottom: var(--s-3); }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s-2); margin: 0 0 var(--s-4); }
.keyfacts div { background: var(--blue-soft); border-radius: 10px; padding: var(--s-2) var(--s-3); }
.keyfacts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-dark); }
.keyfacts dd { margin: 0; font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.checks li { position: relative; padding: .3rem 0 .3rem 1.8rem; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .75rem; width: .9rem; height: .5rem; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg) scale(.9); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
td:not(:first-child), th:not(:first-child) { text-align: right; white-space: nowrap; }
caption { text-align: left; font-weight: 700; padding-bottom: var(--s-2); }
.note { font-size: .92rem; color: var(--ink-soft); }
.pager { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); }

details.more { margin-top: var(--s-2); }
details.more summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: var(--s-2) 0; }
.gallery--rest { margin-top: var(--s-2); }
.gallery--rest a:first-child { grid-column: auto; aspect-ratio: 4 / 3; }

/* Planwagen */
.wagon { display: grid; gap: var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.wagon + .wagon { margin-top: var(--s-5); }
.wagon .gallery { padding: var(--s-3); }
.wagon-body { padding: var(--s-4); }
.wagon-body h3 { font-size: 1.5rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--amber-soft); border: 1px solid var(--amber); margin-right: .35rem; margin-bottom: .5rem; }
@media (min-width: 60rem) { .wagon { grid-template-columns: 6fr 5fr; } .wagon .gallery { padding: var(--s-4) 0 var(--s-4) var(--s-4); align-content: start; } }
.compare th:first-child, .compare td:first-child { font-weight: 700; }

/* Reiterhof */
.facility { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.facility li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: var(--s-3); }
.facility strong { display: block; }
.facility span { color: var(--ink-soft); font-size: .92rem; }
.cols { display: grid; gap: var(--s-5); }
@media (min-width: 52rem) { .cols { grid-template-columns: 1fr 1fr; } }
.masonry { columns: 2 12rem; column-gap: var(--s-2); }
@media (min-width: 52rem) { .masonry { columns: 4 12rem; } }
.masonry a { display: block; margin-bottom: var(--s-2); border-radius: 10px; overflow: hidden; }
.masonry img { width: 100%; }

/* Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--amber); }
.timeline li { position: relative; padding: 0 0 var(--s-4) var(--s-3); }
.timeline li::before { content: ""; position: absolute; left: -1.7rem; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--amber); }
.timeline strong { display: block; color: var(--blue); }

/* Zitate */
.quotes { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.quotes blockquote { margin: 0; height: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); position: relative; }
.quotes blockquote::before { content: "„"; position: absolute; top: -.1rem; left: var(--s-3); font-size: 4rem; color: var(--amber); line-height: 1; }
.quotes p { margin: var(--s-3) 0 0; }

/* Aktuelles */
.news { display: grid; gap: var(--s-5); max-width: 48rem; }
.news article { border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); }
.news time { font-size: .85rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.news h2 { font-size: 1.5rem; margin-top: .25rem; }
.news .links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; padding: 0; font-weight: 600; }

/* Kontakt */
.contact-cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); text-decoration: none; color: var(--ink); display: block; }
a.contact-card:hover { border-color: var(--blue); }
.contact-card small { display: block; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .72rem; color: var(--blue); margin-bottom: .35rem; }
.contact-card strong { font-size: 1.25rem; overflow-wrap: anywhere; }

/* Text-/Rechtsseiten */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: var(--s-5); }
.prose h3 { font-size: 1.05rem; margin-top: var(--s-4); }
.prose--legal { font-size: .98rem; }

/* Footer */
.site-footer { background: #0e1a28; color: #d6dde6; padding-block: var(--s-6) var(--s-4); margin-top: var(--s-7); }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #8fa3b8; margin-bottom: var(--s-2); }
.footer-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: .15rem 0; }
.footer-brand strong { font-size: 1.3rem; display: block; }
.legal { border-top: 1px solid #2a3a4d; margin-top: var(--s-5); padding-top: var(--s-3); font-size: .85rem; color: #8fa3b8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }

.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }
.cta-band h2 { color: inherit; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .btn-row, .nav { display: none; } .section { padding-block: 1rem; } }
