/* Moderne Variante – gleiche Seitenstruktur wie css/style.css, gleiche Farben */
:root {
  --black: #0d0b0b;
  --ink: #161413;
  --text: #2c2a28;
  --muted: #6c6763;
  --bg: #ffffff;
  --bg-alt: #f5f3f1;
  --line: #e9e5e2;
  --accent: #7a2e24;
  --accent-dark: #4a1f1a;
  --accent-soft: #f6ecea;
  --footer: #2a2b2d;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.07);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.muted { color: #a7a9ab; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.i { flex-shrink: 0; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: .98rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; color: var(--accent);
}
.link .i { transition: transform .2s var(--ease); }
.link:hover .i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 11, 11, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 50px; width: auto; }
.nav { display: flex; gap: 2px; }
.nav a {
  color: #d9d4d1;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 550;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 4px;
    background: var(--black);
    padding: 12px 16px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--black);
}
.hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-zoom 14s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(74,31,26,.88) 0%, rgba(74,31,26,.55) 38%, rgba(13,11,11,0) 72%),
    linear-gradient(180deg, rgba(13,11,11,0) 55%, rgba(13,11,11,.6) 100%);
}
@media (max-width: 720px) {
  .hero::after { background: linear-gradient(180deg, rgba(13,11,11,.1) 0%, rgba(74,31,26,.6) 50%, rgba(13,11,11,.92) 100%); }
}
.hero-content { position: relative; z-index: 1; padding-bottom: clamp(56px, 12vh, 120px); padding-top: 140px; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .eyebrow { color: #f0d2cc; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 42ch; color: #f1ebe8; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.wrap { padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .section.wrap { padding-left: 40px; padding-right: 40px; } }
.section-tight { padding-top: 48px; padding-bottom: 88px; }
.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

.page-head {
  position: relative;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(122,46,36,.9) 0%, rgba(122,46,36,0) 55%),
    var(--accent-dark);
  color: #fff;
  padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 10vw, 128px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}
.page-head h1 { color: #fff; margin-bottom: .35em; max-width: 18ch; }
.page-head .lead { color: #ecdcd8; margin: 0; }

/* Intro */
.intro { display: grid; gap: 48px; align-items: center; padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); }
@media (min-width: 860px) { .intro { grid-template-columns: 1fr 1fr; gap: 88px; } }
.intro-text p { max-width: 54ch; }
.intro-text h2 { max-width: 14ch; }
.intro-img { margin: 0 18px 18px 0; position: relative; }
.intro-img::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: var(--radius);
  background: var(--accent-dark);
}
.intro-img img { position: relative; border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Tiles – Bento-Raster */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
.tile:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
  .tile:nth-child(4) { grid-column: span 2; }
}
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius);
  color: #fff; text-decoration: none;
  isolation: isolate;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(13,11,11,.75)); }
.tile span {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  font-weight: 700; font-size: 1.05rem;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(13,11,11,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s;
}
.tile:first-child span { font-size: 1.3rem; left: 20px; bottom: 20px; }
.tile:hover img { transform: scale(1.06); }
.tile:hover span { background: var(--accent); }

/* Features – Bildkarten mit Text auf dem Foto */
.split { display: grid; gap: 16px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.feature {
  position: relative; display: block; overflow: hidden;
  text-decoration: none; color: #fff;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(13,11,11,0) 35%, rgba(74,31,26,.92)); }
.feature div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 30px; }
.feature h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .3em; }
.feature p { color: #f1e4e1; margin: 0; max-width: 36ch; }
.feature:hover img { transform: scale(1.05); }

/* CTA – abgerundete Karte */
.cta { padding: 0 0 clamp(64px, 8vw, 104px); }
.alt + .cta { padding-top: clamp(64px, 8vw, 104px); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  background:
    radial-gradient(90% 160% at 100% 100%, rgba(122,46,36,.95) 0%, rgba(122,46,36,0) 60%),
    var(--black);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px);
}
.cta .wrap.cta-inner { max-width: calc(var(--wrap) - 80px); }
@media (min-width: 720px) { .cta .wrap.cta-inner { width: calc(100% - 80px); } }
@media (max-width: 719px) { .cta .wrap.cta-inner { width: calc(100% - 32px); } }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #cfc8c4; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Leistungen */
.chips {
  position: sticky; top: var(--header-h); z-index: 10;
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -16px; padding: 14px 16px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
}
@media (min-width: 720px) { .chips { margin: 0 -40px; padding: 16px 40px; } }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex-shrink: 0;
  padding: 8px 18px; border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.chips a:hover { background: var(--accent); color: #fff; }
.cat { padding: 48px 0 24px; }
.cat h2 { display: flex; align-items: center; gap: 16px; }
.cat h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cat:last-child { padding-bottom: 88px; }

/* Galerie */
.gallery { columns: 2; column-gap: 12px; }
@media (min-width: 720px) { .gallery { columns: 3; column-gap: 16px; } }
@media (min-width: 1080px) { .gallery { columns: 4; } }
.g-item {
  display: block; width: 100%;
  margin: 0 0 12px; padding: 0; border: 0; background: none;
  cursor: zoom-in; break-inside: avoid;
  border-radius: var(--radius-sm); overflow: hidden;
}
@media (min-width: 720px) { .g-item { margin-bottom: 16px; } }
.g-item img { width: 100%; transition: transform .6s var(--ease), filter .3s; }
.g-item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.g-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Deko-Karten */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 20px 44px rgba(0,0,0,.1); }
.card .g-item { margin: 0; border-radius: 0; aspect-ratio: 1; }
.card .g-item img { height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body ul { margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: .94rem; flex: 1; }
.card-body li { margin-bottom: 6px; padding-left: 16px; position: relative; }
.card-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .5; }
.card-body .link {
  align-self: flex-start;
  padding: 9px 18px; border-radius: 999px;
  background: var(--accent-soft);
  transition: background .2s, color .2s;
}
.card-body .link:hover { background: var(--accent); color: #fff; }

/* Unternehmen */
.split-text { display: grid; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
@media (min-width: 860px) { .split-text { grid-template-columns: 1.15fr 1fr; gap: 80px; } }
.split-text p { max-width: 60ch; }
.split-text figure { margin: 0; }
.split-text figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.values { display: grid; gap: 20px; counter-reset: wert; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.values > div {
  counter-increment: wert;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.values h3::before {
  content: counter(wert, decimal-leading-zero);
  display: block;
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: var(--accent); opacity: .85;
  margin-bottom: 18px;
}
.values p { color: var(--muted); margin: 0; }

/* Kontakt */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); padding-bottom: 24px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.contact-card .i {
  color: var(--accent);
  box-sizing: content-box;
  padding: 13px; margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
}
.contact-card .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; color: var(--muted); }
.contact-card strong { font-size: 1.12rem; color: var(--ink); word-break: break-word; }
a.contact-card:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow); }
.map-note p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Rechtstexte */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2em; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 20px; }
.prose li { margin-bottom: 4px; }
.muted-dark { color: var(--muted); font-size: .9rem; margin-top: 2.5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #d6d3d0; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f0d2cc; }
.footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); color: #9a9c9e; text-align: center; padding: 20px 16px; font-size: .82rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 9, 9, .95);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.1); color: #fff;
  border: 0; border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 30px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.lightbox button:hover { background: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- Einblenden beim Scrollen (js/modern.js) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
