/* ==========================================================
   Christian Delakowitz – Porträt- & Hochzeitsfotografie
   Schriften lokal gehostet (DSGVO-konform, keine Google-Server)
   ========================================================== */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f4f1ec;
  --bg-soft: #ebe5dc;
  --ink: #1d1a17;
  --ink-soft: #4a443d;
  --muted: #8a8076;
  --accent: #a8916f;
  --accent-dark: #8c7656;
  --line: #d9d1c5;
  --dark: #5b4c3e;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h, 84px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 6.2vw, 4.9rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}
.rule { width: 46px; height: 1px; background: var(--accent); border: 0; margin: 2rem 0; }
.lead { color: var(--ink-soft); max-width: 46ch; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.05em 2.1em; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}

.btn .arr, .link .arr { transition: transform .3s ease; }

.btn--sm { padding: 0.8em 1.6em; font-size: 0.66rem; }

.link {
  display: inline-flex; align-items: center; gap: 0.8em;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-dark);
  padding-bottom: 0.55em; border-bottom: 1px solid var(--accent);
}

/* ---------- Header ---------- */
:root { --header-h: 84px; }
@media (max-width: 960px) { :root { --header-h: 68px; } }

.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
/* Hintergrund als eigene Ebene: blur direkt am Header würde das
   Vollbild-Menü auf iPhone/Android in die Kopfzeile einsperren */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 241, 236, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mono { position: relative; width: 38px; height: 44px; font-family: var(--serif); font-size: 42px; line-height: 1; flex: none; }
.mono span { position: absolute; }
.mono span:first-child { left: 0; top: -2px; }
.mono span:last-child { left: 13px; top: 8px; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.05; white-space: nowrap; }
.logo-sub { font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.btn) {
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .3s ease;
}
.nav a[aria-current="page"]::after { right: 0; }
.nav .btn { margin-left: 10px; }

.burger { display: none; background: none; border: 0; padding: 12px 10px; margin-right: -10px; cursor: pointer; flex: none; min-width: 44px; min-height: 44px; }
.burger span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 6px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    flex-direction: column; justify-content: center; gap: 26px;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav a:not(.btn) { font-size: 0.9rem; padding: 8px 0; }
  .nav .btn { margin: 10px 0 0; }
  html.nav-open, body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open .site-header { transform: none !important; opacity: 1 !important; border-color: var(--line); }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 960px) and (max-height: 500px) {
  .nav { justify-content: flex-start; gap: 14px; }
}
@media (max-width: 420px) {
  .logo-name { font-size: 1.3rem; }
  .logo-sub { font-size: 0.5rem; letter-spacing: 0.14em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 40%, rgba(244,241,236,0) 40%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { max-width: 6.6em; }
.hero .tagline { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; line-height: 2; margin-bottom: 2rem; max-width: 22em; }
.hero .hero-img--right { left: 40%; width: 60%; }
.hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: 40%; width: 18%; z-index: 1; background: linear-gradient(90deg, var(--bg), rgba(244,241,236,0)); }
@media (max-width: 760px) { .hero::after { display: none; } }

@media (max-width: 760px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero::before { display: none; }
  .hero .hero-img, .hero .hero-img--right { position: relative; left: 0; width: 100%; height: 58vh; height: 58svh; min-height: 300px; order: -1; }
  .hero .wrap { padding-top: 44px; padding-bottom: 56px; }
}

/* Unterseiten-Hero */
.page-hero { padding: clamp(70px, 10vw, 130px) 0 clamp(40px, 6vw, 70px); text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.page-hero .rule { margin: 1.8rem auto; }
.page-hero .lead { margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 60px); }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.service .img { display: block; overflow: hidden; aspect-ratio: 4 / 2.85; background: var(--bg-soft); }
.service .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }

.service h3 { margin: 1.6rem 0 1rem; }
.service p { color: var(--ink-soft); max-width: 44ch; }
.service .link { margin-top: 0.6rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split .img { aspect-ratio: 4 / 3.5; overflow: hidden; background: var(--bg-soft); }
.split .img img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .img { order: 2; }
.split h2 { line-height: 1.04; }
.split p { color: var(--ink-soft); max-width: 44ch; }
.split .btn { margin-top: 1.2rem; }

/* Zitat-Band */
.quote {
  position: relative; padding: clamp(64px, 8vw, 96px) 0; text-align: center; color: #f6efe6;
  background: var(--dark) url("../bilder/zitat-hintergrund.jpg") center / cover no-repeat;
}
.quote::before { content: ""; position: absolute; inset: 0; background: rgba(70, 56, 44, .45); }
.quote blockquote { position: relative; margin: 0 auto; max-width: 14em; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; }
.quote .rule { position: relative; margin: 1.8rem auto 0; background: rgba(246, 239, 230, .6); }

/* Galerie */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .4s; }

.gallery--large { grid-template-columns: repeat(3, 1fr); }
.gallery--large a:nth-child(5n+1) { grid-row: span 2; aspect-ratio: auto; }

/* Kontakt-CTA */
.cta { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.cta .divider { width: 1px; align-self: stretch; background: var(--line); }
.cta p { color: var(--ink-soft); max-width: 36ch; }
.cta .btn { margin-top: 0.6rem; }

/* Listen / Leistungen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 60px); }
.features .num { font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 1rem; }
.features h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.features p { color: var(--ink-soft); font-size: 0.95rem; }

/* Kontaktformular */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; border-radius: 0; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%238a8076'/%3E%3C/svg%3E") right 4px center no-repeat; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form .note { font-size: 0.82rem; color: var(--muted); }
.contact-info { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-info li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info span { display: block; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Rechtstexte */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.9rem; margin: 2.4rem 0 0.8rem; }
.legal p, .legal li { color: var(--ink-soft); }
.placeholder { background: #f3e6c9; padding: 0 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 64px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.footer-grid .divider { width: 1px; align-self: stretch; background: var(--line); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav a { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 2.3; }
.footer-nav a:hover { color: var(--accent-dark); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 30px; }
.social { display: flex; gap: 12px; }
.social a { width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }

.social svg { width: 15px; height: 15px; }
.legal-links { display: flex; gap: 24px; }
.legal-links a { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; }
.copyright { margin-top: 40px; font-size: 0.72rem; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(29, 26, 23, .94); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; width: auto; }

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .services, .split, .features { grid-template-columns: 1fr; }
  .split--reverse .img { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--large { grid-template-columns: repeat(2, 1fr); }
  .gallery--large a:nth-child(5n+1) { grid-row: auto; aspect-ratio: 1; }
  .cta { grid-template-columns: 1fr; }
  .cta .divider { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .divider { display: none; }
  .footer-grid .logo { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- Logo-Intro (Startseite) ---------- */
.has-intro .site-header {
  position: fixed; left: 0; right: 0;
  transform: translateY(-100%); opacity: 0;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease, border-color .3s ease;
}
.has-intro.show-header .site-header { transform: none; opacity: 1; }

.intro {
  position: relative; height: 100vh; height: 100svh;
  display: grid; place-items: center; text-align: center;
  background: var(--bg);
}
.intro-inner {
  display: flex; flex-direction: column; align-items: center;
  will-change: opacity, transform;
  animation: introIn 1.6s cubic-bezier(.2,.7,.2,1) both;
}
.intro-mono { position: relative; width: clamp(110px, 16vw, 170px); height: clamp(130px, 19vw, 200px); font-family: var(--serif); font-size: clamp(120px, 18vw, 190px); line-height: 1; }
.intro-mono span { position: absolute; }
.intro-mono span:first-child { left: 0; top: -0.06em; }
.intro-mono span:last-child { left: 0.33em; top: 0.2em; color: var(--accent); }
.intro-name { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-top: 1.4rem; }
.intro-sub { font-size: clamp(0.62rem, 1.1vw, 0.78rem); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.9rem; }
.intro-scroll { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: 1px; height: 56px; overflow: hidden; background: var(--line); animation: introIn 1.6s .8s both; }
.intro-scroll span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--accent); animation: scrollLine 2s ease-in-out infinite; }

@keyframes introIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .intro-inner, .intro-scroll, .intro-scroll span { animation: none; } }


/* ==========================================================
   Geräte-Optimierung: iPhone, Android, Tablet, Desktop
   ========================================================== */

/* Hover-Effekte nur mit Maus/Trackpad */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
  .btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
  .nav a:not(.btn):hover::after { right: 0; }
  .service:hover .img img { transform: scale(1.04); }
  .gallery a:hover img { transform: scale(1.05); }
  .social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
}
/* Touch: kurzes Feedback beim Antippen */
.btn:active { background: var(--accent-dark); }

/* Formularfelder: iOS zeigt Datumsfelder sonst ohne Höhe, 16px verhindert Auto-Zoom */
.form input, .form select, .form textarea { font-size: 16px; min-height: 44px; display: block; }
.form input[type="date"] { line-height: 1.4; }
.form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.form textarea { min-height: 140px; }

/* Lightbox mit Schließen-Button, passt sich der sichtbaren Höhe an */
.lightbox { padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.lightbox img { max-height: 90vh; max-height: 90dvh; object-fit: contain; }
.lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }

/* Ränder bei iPhones mit Notch im Querformat */
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.site-footer { padding-bottom: max(36px, env(safe-area-inset-bottom)); }

/* Kleine Handys (iPhone SE, Galaxy Fold) */
@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .mono { width: 32px; height: 38px; font-size: 36px; }
  .mono span:last-child { left: 11px; top: 7px; }
  .logo { gap: 9px; }
  .logo-name { font-size: 1.15rem; }
  .logo-sub { font-size: 0.46rem; letter-spacing: 0.1em; }
  h1 { font-size: 2.4rem; }
  .btn { padding: 1em 1.6em; letter-spacing: 0.16em; }
}
@media (max-width: 320px) {
  .logo-sub { display: none; }
  .logo-name { font-size: 1.1rem; }
}

/* Footer auf schmalen Displays untereinander */
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-right { align-items: flex-start; }
  .legal-links { flex-wrap: wrap; gap: 12px 24px; }
}

/* Intro: dynamische Höhe (Adressleiste iOS/Android) */
.intro { min-height: 100vh; min-height: 100svh; height: auto; padding: 40px 20px 110px; }
.intro-name { text-align: center; }
.intro-sub { text-align: center; line-height: 1.8; }

/* Handy im Querformat / sehr niedrige Fenster */
@media (max-height: 520px) and (orientation: landscape) {
  .intro { padding: 24px 20px 70px; }
  .intro-mono { width: 80px; height: 94px; font-size: 90px; }
  .intro-name { font-size: 1.9rem; margin-top: 0.6rem; }
  .intro-sub { margin-top: 0.4rem; }
  .intro-scroll { height: 36px; bottom: 16px; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 36px; padding-bottom: 36px; }
  .hero h1 { font-size: 2.3rem; }
  .hero .rule { margin: 1.2rem 0; }
  .hero .tagline { margin-bottom: 1.2rem; }
  .page-hero { padding: 48px 0 32px; }
}

/* Tablets hochkant: Hero etwas ruhiger */
@media (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) {
  .hero { min-height: 62vh; }
  .hero h1 { font-size: 3rem; }
}

/* Sehr große Bildschirme */
@media (min-width: 1700px) {
  :root { --wrap: 1320px; }
  body { font-size: 17px; }
}

/* Rechtstexte: kompakter Einstieg, sichtbare Links */
.page-hero:not(:has(.lead)) { padding-bottom: 0; }
.legal a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.3em; }
.legal h2:first-child { margin-top: 0; }
