/* ==========================================================
   chrismockphoto.com – Stylesheet
   Farben, Schriften und Abstände zentral hier oben ändern.
   Nur System-Schriften, nichts wird von fremden Servern geladen.
   ========================================================== */

:root {
  --bg: #faf9f6;          /* helles, leicht warmes Weiß */
  --surface: #f0eeea;
  --fg: #171717;
  --muted: #565656;       /* 6,6 : 1 auf --bg */
  --line: #dcd9d3;        /* nur Deko-Linien */
  --control: #6b6b6b;     /* Ränder von Feldern und Knöpfen, 4,9 : 1 */
  --accent: #09658c;      /* Akzent: Petrol. 5,8 : 1 auf --bg, 5,3 : 1 auf --surface */
  --accent-ink: #09658c;  /* für kleine Schrift (bei einer helleren Akzentfarbe hier eine dunklere Variante eintragen) */
  --accent-on: #fff;      /* Schrift auf Akzent-Flächen (Knöpfe), 6,5 : 1 */
  --max: 1320px;
  --narrow: 760px;
  --pad: clamp(18px, 4vw, 44px);
  --gap: clamp(8px, 1vw, 12px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { margin: 0; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: var(--accent); }
::selection { background: var(--accent-ink); color: #fff; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 2em 0 .5em; }
h3 { font-size: 1.4rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Sprachumschaltung ----------
   Jeder Text steht zweimal im HTML: lang="de" und lang="en". Die andere Sprache wird ausgeblendet.
   Inhalte, die es nur auf Deutsch gibt (Impressum, Datenschutz …), tragen class="de-only"
   und bleiben auch in der englischen Ansicht sichtbar und als Deutsch ausgezeichnet. */
html[data-lang="de"] body [lang="en"],
html[data-lang="en"] body [lang="de"]:not(.de-only) { display: none !important; }

/* Ohne JavaScript: E-Mail-Adresse als Text zeigen */
.js .no-js-mail { display: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow > * { max-width: var(--narrow); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 10px 14px;
}
.skip-link:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 249, 246, .92);  /* = --bg mit leichter Transparenz */
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; flex-wrap: wrap;
}
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: .5em; padding: 10px 0; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; }
.brand-sub { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand:hover { color: var(--fg); }
.brand:hover .brand-name { color: var(--accent-ink); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); font-size: .9375rem; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--accent-ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em; text-decoration-color: var(--accent); }

.lang-toggle {
  font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .06em;
  background: none; color: var(--muted); cursor: pointer;
  border: 1px solid var(--control); border-radius: 999px; padding: 6px 12px; min-height: 36px;
}
.lang-toggle:hover { color: var(--fg); border-color: var(--accent-ink); }
html[data-lang="de"] .lang-toggle [data-l="de"],
html[data-lang="en"] .lang-toggle [data-l="en"] { color: var(--fg); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--accent); }

@media (max-width: 560px) {
  .site-header .wrap { padding-top: 4px; padding-bottom: 8px; row-gap: 0; }
  .brand { padding-bottom: 0; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; font-size: .875rem; }
}
@media (max-width: 380px) { .nav { font-size: .8125rem; gap: 6px; } .lang-toggle { padding: 6px 9px; } }

/* ---------- Seitenkopf ---------- */
.page-head { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(20px, 3vw, 36px); }
.page-head .intro, .page-head .intro p { max-width: 62ch; }
.intro { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.intro h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.intro .quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; }
.back { font-size: .9375rem; margin-bottom: 1.4em; }
.back a { text-decoration: none; }
.back a:hover { text-decoration: underline; }

/* ---------- Startseite ---------- */
.hero { padding-top: clamp(36px, 6vw, 80px); }
.hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: 1; margin-bottom: .3em; }
.h1-sub {
  display: block; font-family: var(--sans); font-size: clamp(.875rem, 1.4vw, 1.0625rem);
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent-ink); margin-top: .9em;
}
.hero-img {
  width: 100%; max-width: var(--max); margin: 0 auto;
  aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 40%;
}
@media (max-width: 700px) { .hero-img { aspect-ratio: 4 / 3; } }

.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px);
  align-items: center; padding-top: clamp(56px, 8vw, 110px);
}
.about h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.about-img { width: 100%; max-width: 480px; }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-img { max-width: 360px; } }

.section { padding-top: clamp(64px, 9vw, 120px); }
.section-title { position: relative; margin: 0 0 1em; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.section-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 4.5rem; height: 4px; background: var(--accent); }
.more { margin-top: 1.5em; font-size: 1.0625rem; }
.more a, .back a { color: var(--accent-ink); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }
.cards.more-projects { margin-top: clamp(48px, 6vw, 80px); }
.more-projects .card-media { aspect-ratio: 1 / 1; }
/* Weitere Projekte: schwarz-weiß, farbig beim Drüberfahren oder mit der Tastatur */
.more-projects .card-media img { filter: grayscale(1); transition: filter .4s ease, transform .5s ease; }
.more-projects .card-link:hover .card-media img,
.more-projects .card-link:focus-visible .card-media img { filter: none; }
@media (prefers-reduced-motion: reduce) { .more-projects .card-media img { transition: none; } }

/* ---------- Kacheln ---------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(28px, 3.5vw, 48px) clamp(18px, 2.5vw, 32px);
}
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); max-width: 980px; }
.card-link { display: block; text-decoration: none; }
.card-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
@media (prefers-reduced-motion: reduce) { .card-media img { transition: none; } }
.card-link:hover .card-media img { transform: scale(1.025); }
.card-media { border-bottom: 4px solid transparent; transition: border-color .3s ease; }
.card-link:hover .card-media { border-bottom-color: var(--accent); }
.card-title { font-size: 1.45rem; margin: .7em 0 .25em; }
.card-link:hover .card-title { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card-text { color: var(--muted); margin: 0; font-size: .96875rem; }
.card-price { margin: .6em 0 0; font-weight: 600; }
.card-price .muted { font-weight: 400; font-size: .875rem; }

/* ---------- Galerie (Blocksatz, nichts wird beschnitten) ----------
   Jedes <li> bekommt sein Seitenverhältnis als --r. Bilder einer Reihe sind gleich hoch. */
.gallery-wrap { padding-top: clamp(16px, 3vw, 32px); }
.gallery { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gap); }
.gallery li { flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 300px); }
.gallery::after { content: ""; flex-grow: 1000000; }
.gallery a { display: block; cursor: zoom-in; background: var(--surface); }
.gallery img { width: 100%; height: auto; }
.gallery a:focus-visible { outline-offset: 2px; }
.gallery a:hover img { outline: 4px solid var(--accent); outline-offset: -4px; }
@media (max-width: 700px) { .gallery li { flex-basis: calc(var(--r) * 170px); } }

/* ---------- Bildansicht (Lightbox) ---------- */
.lb {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #0d0d0d; color: #f2f2f2;
}
.lb::backdrop { background: rgba(0, 0, 0, .9); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-fig { margin: 0; display: grid; grid-template-rows: 1fr auto; min-height: 0; padding: 56px 72px 8px; }
.lb-img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lb-cap { text-align: center; font-size: .9375rem; padding-top: 10px; min-height: 1.6em; color: #e6e6e6; }
.lb-count { text-align: center; margin: 0; padding: 0 0 16px; font-size: .8125rem; letter-spacing: .08em; color: #c8c8c8; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  background: rgba(0, 0, 0, .45); color: #fff; border: 1px solid #9a9a9a; border-radius: 50%; cursor: pointer;
}
.lb-btn:hover { background: #000; border-color: #fff; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }
@media (max-width: 700px) {
  .lb-fig { padding: 64px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .lb-count { padding-bottom: 24px; }
}

/* ---------- Links, Knöpfe, Kästen ---------- */
.link-list { list-style: none; padding: 0; margin: 1.2em 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.links-box { padding-top: clamp(8px, 2vw, 16px); padding-bottom: clamp(24px, 4vw, 40px); }
.links-box h2 { margin-top: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-on); border: 2px solid var(--accent);
  padding: 12px 22px; min-height: 48px; border-radius: 2px;
}
.button:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.button[disabled] { opacity: .6; cursor: progress; }

.note-box { margin-top: clamp(56px, 7vw, 88px); max-width: 760px; padding-top: 1em; border-top: 1px solid var(--line); }
.note-box h2 { margin-top: .4em; }

/* ---------- Produktseite ---------- */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.product-img { width: 100%; }
.product-text { max-width: 680px; }
.product-text > div > p:first-child { margin-top: 0; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } .product-img { max-width: 520px; } }
.product-text ul { padding-left: 1.2em; }
.order { margin: 2em 0 0; padding: clamp(20px, 3vw, 32px); background: var(--surface); border-left: 4px solid var(--accent); }
.price { font-family: var(--serif); font-size: 2.2rem; margin: 0; line-height: 1.2; color: var(--accent-ink); }
.price-note { color: var(--muted); font-size: .9375rem; }
.fine { font-size: .875rem; color: var(--muted); line-height: 1.5; margin: 0; }
.fine a { color: var(--fg); }

/* ---------- YouTube erst nach Klick ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-bottom: 1em; }
.yt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.yt-consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 20px; text-align: center; color: #f2f2f2;
}
.yt-consent p { margin: 0; max-width: 46ch; font-size: .875rem; line-height: 1.5; }
.yt-consent a { color: #fff; }
.yt-load {
  display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; cursor: pointer;
  background: #f5f3ef; color: #171717; border: 0; padding: 12px 20px; min-height: 48px;
}
.yt-load:hover { background: #fff; }
.yt-load:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.yt-load svg { width: 16px; height: 16px; fill: currentColor; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .yt { aspect-ratio: auto; min-height: 280px; } }

/* ---------- Kontakt ---------- */
.contact { padding-top: 0; align-items: start; }
.contact-mail { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

/* ---------- Newsletter ---------- */
.nl-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px);
  padding-top: clamp(36px, 6vw, 80px); align-items: start;
}
@media (max-width: 820px) { .nl-layout { grid-template-columns: 1fr; } }
.nl-form { display: grid; gap: 16px; }
.nl-form label { display: grid; gap: 6px; font-size: .9375rem; font-weight: 600; }
.nl-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .nl-form .row { grid-template-columns: 1fr; } }
.nl-form input {
  font: inherit; font-weight: 400; color: var(--fg); background: #fff;
  border: 1px solid var(--control); border-radius: 2px; padding: 11px 12px; min-height: 48px; width: 100%;
}
.nl-form input:focus-visible { outline: 3px solid var(--fg); outline-offset: 1px; }
.nl-form .button { justify-self: start; }
.nl-status:empty { display: none; }
.nl-status { margin: 0; font-weight: 600; }
.nl-status.is-error { color: #9e2a1e; }  /* Rot für Fehler, 6,8 : 1 */
.nl-form.is-done label, .nl-form.is-done .row, .nl-form.is-done .button { display: none; }

/* ---------- Rechtstexte ---------- */
.prose { padding-bottom: 2rem; }
.prose h2 { font-size: 1.45rem; margin: 2em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose ul li::marker, .product-text ul li::marker { color: var(--accent); }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; margin: .5em 0 1.2em; }
.prose th, .prose td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; border-bottom: 2px solid var(--accent); }
.form-sample { border-left: 4px solid var(--accent); padding-left: 1em; }
.notfound { min-height: 45vh; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: clamp(80px, 10vw, 140px); border-top: 4px solid var(--accent); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 36px; }
.footer-copy { margin: 0; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { text-decoration: underline; }

@media print {
  .site-header, .site-footer, .lb, .lang-toggle { display: none !important; }
}
