/* =========================================================
   BenRoits Media – Hochzeiten
   Hell, ruhig, modern. Gleiche Bausteine wie die Marken-Startseite:
   Schriften Archivo (breit) / Work Sans / JetBrains Mono, selbst gehostet.
   Keine externen Ressourcen, keine Cookies.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #fbf8f3;
  --surface: #f3ebe0;
  --card: #ffffff;
  --ink: #241f1b;
  --muted: #5a5148;
  --line: rgb(36 31 27 / 0.12);
  --accent: #8f4218;
  --accent-dark: #742f0e;
  --accent-soft: #f0dfd0;

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Archivo", "Helvetica Neue", system-ui, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --maxw: 1200px;
  --radius: 28px;
  --radius-s: 16px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}

[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

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

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

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  padding: 0.7rem 1.1rem; background: var(--ink); color: #fff; font-weight: 600;
  border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

/* ===== Typografie ===== */
h1, h2, h3 { font-family: var(--font-head); font-stretch: 125%; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-stretch: 105%; overflow-wrap: break-word; }
.page-title, .legal-content h1 { font-stretch: 112%; }
h2, .section-title { font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title { margin-bottom: 0.7rem; }
.section-sub { color: var(--muted); max-width: 62ch; margin-bottom: 2.25rem; text-wrap: pretty; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section:nth-of-type(even) { background: var(--surface); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header-h);
  background: rgb(251 248 243 / 0.9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0.55rem var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.75rem); }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.4rem;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-cta {
  background: var(--accent); color: #fff; padding-inline: 1.2rem; border-radius: 999px; font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 14px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.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); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem; display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.55rem 0.25rem; font-size: 1.05rem; }
  .main-nav .nav-cta { margin-top: 0.5rem; justify-content: center; }
}

/* ===== Hero ===== */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.hero-claim {
  margin-top: 1.1rem; font-family: var(--font-head); font-stretch: 112%; font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--accent); line-height: 1.3;
}
.hero-sub { margin-top: 0.9rem; max-width: 52ch; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-facts { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; font-size: 0.9rem; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; min-height: 32px; }
.hero-facts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.stars { color: var(--accent); letter-spacing: 0.06em; margin-right: 0.35rem; }

.hero-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--accent-soft); box-shadow: 0 30px 60px -35px rgb(36 31 27 / 0.45);
}
.hero-poster, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity 0.6s ease; }
.hero-video.is-playing { opacity: 1; }

.media-toggle {
  position: absolute; right: 0.9rem; bottom: 0.9rem; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(251 248 243 / 0.92); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / 0.5);
}
.media-toggle:hover { background: #fff; }
.icon-pause { width: 14px; height: 16px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
[aria-pressed="true"] > .icon-pause { width: 0; height: 0; border: 0; border-left: 14px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: 2; }
}

/* ===== Ablauf ===== */
.process-steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: none; }
.process-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1.5rem; }
.step-no { display: block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--muted); font-size: 0.97rem; }

/* ===== Pakete ===== */
.service-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.service-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-media { position: relative; aspect-ratio: 4 / 3; background: var(--accent-soft); overflow: hidden; }
.service-photo, .service-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.5s ease; }
.service-loop { opacity: 0; }
.service-loop.is-playing { opacity: 1; }
.service-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.5rem; flex: 1; }
.service-body p { color: var(--muted); font-size: 0.97rem; flex: 1; }
@media (hover: hover) { .service-card:hover .service-photo { transform: scale(1.04); } }

/* ===== Portfolio ===== */
.portfolio-grid { column-count: 2; column-gap: 0.85rem; }
@media (min-width: 900px) { .portfolio-grid { column-count: 3; } }
.portfolio-card {
  display: block; position: relative; margin-bottom: 0.85rem; overflow: hidden; border-radius: var(--radius-s);
  background: var(--accent-soft); break-inside: avoid; cursor: zoom-in;
}
.portfolio-card img { width: 100%; height: auto; transition: transform 0.5s ease; }
@media (hover: hover) { .portfolio-card:hover img { transform: scale(1.04); } }
.portfolio-card.is-extra { display: none; }
.portfolio-grid.is-expanded .portfolio-card.is-extra { display: block; }
.portfolio-more { margin-top: 1.75rem; text-align: center; }

/* ===== Über mich ===== */
.about-inner { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.about-media { border-radius: var(--radius); overflow: hidden; background: var(--accent-soft); aspect-ratio: 4 / 5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-content p { color: var(--muted); margin-bottom: 1rem; max-width: 62ch; text-wrap: pretty; }
.about-content a, .form-hint a, .legal-content a { color: var(--ink); text-underline-offset: 0.2em; }
.about-content a:hover, .form-hint a:hover, .legal-content a:hover { color: var(--accent); }
@media (max-width: 800px) { .about-inner { grid-template-columns: 1fr; } .about-media { aspect-ratio: 4 / 3.4; } }

/* ===== Bewertungen ===== */
.review-grid { display: grid; gap: clamp(0.9rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review-score-card, .review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); }
.review-score-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.35rem; background: var(--accent-soft); border-color: transparent; }
.review-score-number { font-family: var(--font-head); font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; }
.review-stars { color: var(--accent); letter-spacing: 0.12em; font-size: 1.25rem; }
.review-count { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.review-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem; }
.review-quote p { font-size: 1rem; line-height: 1.65; text-wrap: pretty; }
.review-source { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.review-source .stars { margin-right: 0.4rem; }

/* ===== Kontakt ===== */
.contact-inner { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-link:hover { background: var(--ink); color: #fff; }

.contact-form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); }
.contact-form { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form label { font-size: 0.92rem; font-weight: 600; margin-top: 0.75rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border: 1.5px solid rgb(36 31 27 / 0.35);
  border-radius: 12px; background: #fff; color: var(--ink); font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
.form-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.form-legend, .form-hint { font-size: 0.85rem; color: var(--muted); }
.form-hint { margin-top: 0.9rem; }
.contact-form .btn { margin-top: 1rem; align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 0.9rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; font-weight: 500; }
.form-notice--success { background: #e6f0e3; color: #21391b; }
.form-notice--error { background: #f7e0d8; color: #6a2410; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #d8d1c8; padding-block: 2rem; }
.footer-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.9rem; }
.footer-brand strong { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #d8d1c8; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { outline-color: #fff; }

/* ===== Schnellkontakt (nur Smartphone) ===== */
.quick-contact { display: none; }
@media (max-width: 720px) {
  .quick-contact {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 0.6rem;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: rgb(251 248 243 / 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transition: transform 0.3s ease;
  }
  .quick-contact.is-hidden { transform: translateY(110%); }
  .quick-btn { flex: 1; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; text-decoration: none; text-align: center; padding-inline: 0.75rem; font-size: 0.95rem; }
  .quick-btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
  .quick-btn--primary { background: var(--accent); color: #fff; }
  body { padding-bottom: 4.5rem; }
}

/* ===== Lightbox ===== */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgb(20 17 15 / 0.94); padding: 3.5rem 1rem;
}
.lightbox-img { max-width: min(100%, 1400px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / 0.14); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.lightbox button:hover { background: rgb(255 255 255 / 0.28); }
.lightbox :focus-visible { outline-color: #fff; }
.lightbox-close { top: 0.9rem; right: 0.9rem; }
.lightbox-prev { left: 0.9rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.9rem; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

/* ===== Rechtsseiten, 404 ===== */
.page-simple, .legal-content { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-title { margin-bottom: 1rem; }
.legal-content h1 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
.legal-content h2 { font-size: 1.15rem; margin-top: 2.2rem; margin-bottom: 0.6rem; }
.legal-content p, .legal-content li { color: var(--muted); margin-bottom: 0.85rem; max-width: 70ch; }
.legal-content ul { list-style: disc; padding-left: 1.3rem; }
.legal-content .container > *:first-child { margin-top: 0; }

/* ===== Bewegung: nur ohne Reduzierung ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.05s; }
  .hero-text > :nth-child(3) { animation-delay: 0.1s; }
  .hero-text > :nth-child(4) { animation-delay: 0.15s; }
  .hero-text > :nth-child(5) { animation-delay: 0.2s; }
  .hero-text > :nth-child(6) { animation-delay: 0.25s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .hero-video, .service-loop { display: none; }
}

@media (forced-colors: active) {
  .btn, .contact-link, .quick-btn { border: 1px solid ButtonText; }
}
