/* ============ Design Tokens ============ */
:root {
  --ink: #131315;
  --paper: #f7f6f3;
  --paper-dim: #eeece7;
  --wine: #8a1526;
  --wine-light: #d99aa3;
  --steel: #6b6d70;
  --line: rgba(0,0,0,0.1);
  --line-light: rgba(255,255,255,0.1);
}

/* ============ Reset & Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 450;
  margin: 0;
  letter-spacing: -0.02em;
}
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

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

/* ============ Accessibility ============ */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink);
  padding: 12px 20px; border-radius: 2px; font-size: 14px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--wine); outline-offset: 3px;
}

/* ============ Header ============ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,19,21,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
header.site .logo img { height: 20px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Mobil (< 1024px): Menü ist standardmäßig zu, klappt sich unter dem Header auf */
nav.main {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--ink); border-bottom: 1px solid var(--line-light);
  padding: 8px 20px 20px; max-height: calc(100vh - 76px); overflow-y: auto;
}
nav.main.open { display: flex; }
nav.main a {
  padding: 12px 0; border-bottom: 1px solid var(--line-light);
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(247,246,243,.6); transition: color .2s ease;
}
nav.main a:hover, nav.main a:focus-visible { color: var(--paper); }
nav.main a.btn-outline { border-bottom: none; margin-top: 14px; text-align: center; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: none; border: 1px solid rgba(247,246,243,.25);
  border-radius: 2px; color: var(--paper); cursor: pointer; flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }
.mobile-cta { display: inline-block; }

/* "Leistungen"-Untermenü: auf Mobil immer sichtbar eingerückt, kein Hover nötig */
.nav-dropdown { display: flex; flex-direction: column; }
.nav-dropdown > a { border-bottom: none; padding-bottom: 4px; }
.nav-dropdown-menu {
  display: flex; flex-direction: column; padding-left: 16px;
  border-bottom: 1px solid var(--line-light); padding-bottom: 8px; margin-bottom: 4px;
}
.nav-dropdown-menu a { border-bottom: none; padding: 8px 0; font-size: 12.5px; text-transform: none; letter-spacing: normal; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .mobile-cta { display: none; }
  nav.main {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 34px; background: none; border-bottom: none; padding: 0; max-height: none; overflow: visible;
  }
  nav.main a { width: auto; padding: 0; border-bottom: none; }
  nav.main a.btn-outline { margin-top: 0; padding: 10px 20px; }

  .nav-dropdown { position: relative; flex-direction: row; }
  .nav-dropdown > a { padding-bottom: 0; }
  .nav-dropdown-menu {
    position: absolute; left: 0; top: 100%; width: 220px; flex-direction: column;
    background: var(--ink); border: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
    padding: 8px 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .15s ease;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; }
  .nav-dropdown-menu a { padding: 10px 20px; }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,.05); }
}

.btn-outline {
  border: 1px solid rgba(247,246,243,.25); color: var(--paper);
  padding: 10px 20px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  border-radius: 2px; transition: border-color .2s ease; display: inline-block;
}
.btn-outline:hover { border-color: rgba(247,246,243,.6); }

/* ============ Buttons ============ */
.btn-primary {
  display: inline-block; background: var(--wine); color: var(--paper);
  padding: 14px 28px; font-size: 14px; font-weight: 600; border-radius: 2px;
  border: none; cursor: pointer; transition: opacity .2s ease;
}
.btn-primary:hover { opacity: .9; }
.btn-light {
  display: inline-block; background: var(--paper); color: var(--ink);
  padding: 14px 28px; font-size: 14px; font-weight: 600; border-radius: 2px;
  transition: opacity .2s ease;
}
.btn-light:hover { opacity: .85; }
.btn-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: rgba(247,246,243,.75); }
.btn-arrow:hover { color: var(--paper); }
.btn-arrow span { transition: transform .2s ease; }
.btn-arrow:hover span { transform: translateX(4px); }

/* ============ Hero (Homepage + Sub-pages) ============ */
.hero {
  position: relative; overflow: hidden; color: var(--paper); z-index: 1;
  min-height: 100vh; display: flex; align-items: center;
  padding: 144px 0 96px;
}
.hero-sub { min-height: auto; padding: 160px 0 80px; display: block; background: var(--ink); }
.page-bg-photo {
  position: fixed; inset: 0; z-index: 0;
}
.page-bg-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
  filter: blur(1px) saturate(.8) brightness(.55);
}
.page-bg-photo::after {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(19,19,21,.55) 0%, rgba(19,19,21,.88) 55%, var(--ink) 100%);
}
header.site, footer.site, main > * { position: relative; z-index: 1; }
.hero-inner { position: relative; z-index: 2; }
.eyebrow-dark { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .28em; color: rgba(247,246,243,.5); margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; max-width: 16ch; }
.hero-sub h1 { font-size: clamp(36px, 5.4vw, 60px); max-width: 18ch; }
.hero h1 em, .hero h1 .accent { font-style: italic; font-weight: 400; color: var(--wine-light); }
.hero .sub { margin-top: 28px; max-width: 520px; font-size: 17px; line-height: 1.65; color: rgba(247,246,243,.6); }
.hero .cta-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 44px; }

/* ============ Spec Strip ============ */
.spec-strip { border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: var(--ink); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-item { padding: 24px 0 24px 24px; border-left: 1px solid var(--line-light); }
.spec-item:first-child { border-left: none; }
.spec-value { display: block; font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 500; color: var(--paper); }
.spec-label { display: block; margin-top: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: rgba(247,246,243,.45); }

/* ============ Sections ============ */
section { padding: 0; }
.section { padding: 96px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dim { background: var(--paper-dim); }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--wine); margin-bottom: 16px; }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.02em; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--steel); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ Service Rows (table-style) ============ */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  border-bottom: 1px solid var(--line); padding: 28px 0;
}
@media (min-width: 640px) { .service-row { grid-template-columns: 1fr 1.6fr; gap: 40px; } }
.service-row h3 { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.service-row h3 a:hover { color: var(--wine); }
.service-row p { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.65; color: var(--steel); }

/* ============ Anlass Grid (occasion tiles) ============ */
.anlass-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
@media (min-width: 640px) { .anlass-grid { grid-template-columns: repeat(4, 1fr); } }
.anlass-tile { background: var(--paper-dim); padding: 28px; transition: background .2s ease; }
.anlass-tile:hover { background: var(--paper); }
.anlass-tile .eyebrow { margin-bottom: 8px; font-size: 11px; }
.anlass-tile h3 { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.anlass-tile span { transition: transform .2s ease; }
.anlass-tile:hover span { transform: translateX(4px); }

/* ============ Motto ============ */
.motto { padding: 128px 0; text-align: center; }
.motto blockquote {
  margin: 0 auto; max-width: 15ch; font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(32px, 4.8vw, 58px); line-height: 1.15;
}
.motto .cite { margin-top: 28px; font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: rgba(247,246,243,.4); }

/* ============ Why-us grid ============ */
.why-grid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { padding: 36px; border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  .why-card { border-top: none; border-left: 1px solid var(--line); }
  .why-card:first-child { border-left: none; }
}
.why-card .mark { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--wine); }
.why-card h3 { margin-top: 12px; font-size: 18px; font-weight: 500; }
.why-card p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--steel); }

/* ============ Logo Marquee ============ */
.logos-section { background: var(--paper); padding: 48px 0; border-bottom: 1px solid var(--line); }
.logos-label { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--steel); margin-bottom: 28px; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.logo-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 70s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item { flex: 0 0 auto; height: 32px; display: flex; align-items: center; }
.logo-item img { height: 100%; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .2s ease, opacity .2s ease; }
.logo-item img:hover { filter: grayscale(0); opacity: 1; }

/* ============ Referenzen Grid ============ */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
@media (min-width: 640px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ref-grid { grid-template-columns: repeat(5, 1fr); } }
.ref-tile { background: var(--paper); height: 112px; display: flex; align-items: center; justify-content: center; padding: 24px; filter: grayscale(1); transition: filter .2s ease; }
.ref-tile:hover { filter: grayscale(0); }
.ref-tile img { max-height: 56px; width: auto; object-fit: contain; }

/* ============ Timeline (Über uns) ============ */
.timeline { border-left: 1px solid var(--line); padding-left: 32px; }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); }
.tl-year { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--wine); }
.tl-text { margin-top: 6px; max-width: 42ch; font-size: 15px; line-height: 1.6; }

/* ============ FAQ Accordion ============ */
.faq-list { border-top: 1px solid var(--line); max-width: 74ch; }
.faq-list.compact details { padding: 12px 0; }
details.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
details.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 17px; font-weight: 500;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-family: monospace; font-size: 20px; color: var(--wine); flex-shrink: 0; transition: transform .2s ease; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--steel); max-width: 60ch; }
.faq-group-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); margin: 24px 0 4px; }

/* ============ Legal pages ============ */
.legal-prose { max-width: 74ch; border-top: 1px solid var(--line); padding-top: 40px; }
.legal-prose h2 { font-size: 18px; font-weight: 500; margin: 32px 0 8px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--steel); }
.legal-prose ul { margin: 0 0 16px; padding-left: 20px; }
.legal-prose li { font-size: 15px; line-height: 1.7; color: var(--steel); margin-bottom: 4px; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; margin-bottom: 40px; }
.legal-grid p { margin: 0 0 6px; font-size: 15px; }
.legal-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--wine); margin-bottom: 10px; }
.legal-name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; margin-bottom: 10px; }

/* ============ Blog ============ */
.blog-list { border-top: 1px solid var(--line); max-width: 74ch; }
.blog-item { display: block; border-bottom: 1px solid var(--line); padding: 32px 0; }
.blog-item:hover h2 { color: var(--wine); }
.blog-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--steel); }
.blog-item h2 { margin-top: 8px; font-size: 21px; font-weight: 500; transition: color .2s ease; }
.blog-item p { margin-top: 8px; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--steel); }
.blog-article p { font-size: 16px; line-height: 1.75; margin: 0 0 20px; }
.blog-back { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--steel); }
.blog-back:hover { color: var(--wine); }

/* ============ Kontakt ============ */
.kontakt-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 1024px) { .kontakt-grid { grid-template-columns: 1fr 1fr; } }
.kontakt-details { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.kontakt-details .row { margin-bottom: 20px; }
.kontakt-details .row:last-child { margin-bottom: 0; }
.kontakt-details a:hover { color: var(--wine); }
.mailto-box {
  border: 1px solid var(--line); padding: 32px; background: var(--paper-dim);
}
.mailto-box p { font-size: 15px; line-height: 1.7; color: var(--steel); margin: 0 0 20px; }

/* ============ Footer ============ */
footer.site { background: var(--ink); color: var(--paper); }
.partners-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  border-bottom: 1px solid var(--line-light); padding: 20px 0;
}
.partners-row .flabel { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--wine-light); }
.partners-row a { font-size: 13px; color: rgba(247,246,243,.6); }
.partners-row a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0; }
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(247,246,243,.6); }
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a { color: rgba(247,246,243,.6); }
.footer-links a:hover { color: var(--paper); }

/* ============ 404 ============ */
.notfound { min-height: 60vh; display: flex; align-items: center; }
