/* ==========================================================================
   Frank Jasper Fotografie — Stylesheet
   Editorial, image-forward design. Warm greige paper, deep bordeaux accent,
   Fraunces for display type, Work Sans for body copy.
   ========================================================================== */

:root {
  --ink: #1e1b18;
  --ink-soft: #4a453f;
  --paper: #ede9e2;
  --paper-deep: #e1dbcd;
  --white: #fffdfa;
  --wine: #6e1f2a;
  --wine-deep: #4a141c;
  --gold: #a98753;
  --line: #cdc4b1;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--wine-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.measure { max-width: var(--measure); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wine);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 233, 226, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  display: block;
}
.logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.logo:hover { color: var(--wine); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

nav.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
}
nav.main-nav a:hover { color: var(--wine); }

nav.main-nav a.nav-cta {
  background: var(--wine);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 2px;
}
nav.main-nav a.nav-cta:hover { background: var(--wine-deep); color: var(--white); }

.contact-strip {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.contact-strip a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav.main-nav.is-open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }
  nav.main-nav li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  nav.main-nav a.nav-cta { display: inline-block; margin-top: 6px; }
}

/* ---------- Hero / slider ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}
.hero-controls button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(20,15,12,0.25);
  color: var(--white);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}
.hero-controls button:hover { background: rgba(20,15,12,0.5); }

/* Intro heading directly below the hero, plain and light like the rest of the page */
.hero-intro {
  padding: 72px 0 56px;
  text-align: center;
}
.hero-intro h1 { max-width: 22ch; margin: 0 auto 0.4em; }
.hero-intro p { max-width: 56ch; margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; }

/* Sub-page intro: image + heading side by side, same language as the "\u00dcber mich" block */
.page-intro { padding-top: 56px; }
.page-intro figure { margin: 0; aspect-ratio: 3/2; overflow: hidden; }
.page-intro img { width: 100%; height: 100%; object-fit: cover; }
.page-intro .lede { color: var(--ink-soft); font-size: 1.05rem; margin-top: 10px; }

/* ---------- Section rhythm ---------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.deep { background: var(--paper-deep); }
section.ink { background: var(--ink); color: var(--white); }
section.ink h2, section.ink h3 { color: var(--white); }

.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Gallery tiles (home) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
}

.tile { text-decoration: none; color: var(--ink); display: block; }
.tile figure { margin: 0 0 14px; overflow: hidden; aspect-ratio: 3/2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile h3 { margin-bottom: 6px; font-size: 1.15rem; }
.tile p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Masonry gallery (sub-pages) ---------- */

.masonry {
  column-count: 3;
  column-gap: 18px;
}
.masonry figure {
  break-inside: avoid;
  margin: 0 0 18px;
}
.masonry img { width: 100%; border-radius: 1px; }

@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

/* ---------- Two column editorial block ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
}
.split img { width: 100%; }

/* ---------- Lists: leistungen, preise ---------- */

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plain-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
}
.plain-list li::before {
  content: "—";
  color: var(--wine);
  flex-shrink: 0;
}

.price-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  max-width: 560px;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.price-list .duration { font-family: var(--serif); font-size: 1.15rem; }
.price-list .price { font-size: 1.15rem; white-space: nowrap; }
.price-note { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--wine);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--wine);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.98rem;
}
.btn:hover { background: var(--wine-deep); color: var(--white); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 12px 25px;
  border-radius: 2px;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--wine); color: var(--wine); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--line);
}
.contact-card dt { font-size: 0.85rem; color: var(--ink-soft); margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; font-size: 1.05rem; }
.contact-card dd a { color: var(--ink); text-decoration: none; }
.contact-card dd a:hover { color: var(--wine); }

section#kontakt p { color: var(--ink-soft); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
footer.site-footer a { color: rgba(255,255,255,0.85); }
footer.site-footer .foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 20px;
}
footer.site-footer .foot-logo { font-family: var(--serif); font-size: 1.2rem; color: var(--white); }
footer.site-footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Simple pages (Impressum/Datenschutz) ---------- */

.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal { max-width: 74ch; }
