/* Aperture – Toms Photoart */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-roman.var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf8f5;
  --bg-2: #f1ede7;
  --bg-3: #e7e2da;
  --fg: #17161a;
  --fg-dim: #5d5a56;
  --line: rgba(0, 0, 0, .1);
  --accent: #c2410c;
  --accent-2: #d97706;
  --accent-grad: linear-gradient(120deg, #fbbf24, #f97316);
  --on-accent: #2b1200;
  --header-h: 76px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Dunkler Modus (per Umschalter) */
:root[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-2: #121216;
  --bg-3: #1b1b21;
  --fg: #eceae6;
  --fg-dim: #a6a39d;
  --line: rgba(255, 255, 255, .1);
  --accent: #fbbf24;
  --accent-2: #fb923c;
  --accent-grad: linear-gradient(120deg, #fbbf24, #f97316);
  --on-accent: #1a0d00;
  color-scheme: dark;
}
:root[data-theme="dark"] .about__figure img { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .sub { box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
body, .site-header, .section--contact, .site-footer, .sub, .contact-form input, .contact-form textarea { transition-property: background-color, color, border-color, box-shadow; transition-duration: .3s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap--wide { width: min(1500px, 100% - 32px); }
.wrap--narrow { width: min(760px, 100% - 48px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: box-shadow .35s var(--ease);
}
/* Weichzeichner-Hintergrund als eigenes Element: ein backdrop-filter direkt am Header würde in Safari
   das Vollbild-Menü (position: fixed) auf Header-Größe einsperren und es durchsichtig/flackernd machen. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0; transition: opacity .35s var(--ease);
}
.site-header.is-solid::before { opacity: 1; }
.site-header.is-solid { box-shadow: 0 1px 0 var(--line); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1320px, 100% - 48px); }
.brand img { height: 40px; width: auto; }
:root:not([data-theme="dark"]) .site-header.is-solid .brand img, :root:not([data-theme="dark"]) .site-footer .brand img, :root:not([data-theme="dark"]).nav-open .brand img { filter: invert(1); }
.nav > ul { display: flex; align-items: center; gap: 6px; }
.site-header:not(.is-solid) .nav a, .site-header:not(.is-solid) .brand, .site-header:not(.is-solid) .theme-toggle, .site-header:not(.is-solid) .nav-toggle { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.site-header:not(.is-solid) .brand img { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .5)); }
.nav a { display: block; padding: 8px 14px; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #f1efeb; border-radius: 999px; transition: color .2s, background .2s; }
.site-header.is-solid .nav a { color: var(--fg); }
.nav a:hover, .nav li.is-active > a { color: var(--accent); }
.nav__cta a { border: 1px solid currentColor; margin-left: 8px; }
.nav__cta a:hover { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 190px; padding: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(30, 20, 60, .16);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .25s var(--ease);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { color: var(--fg) !important; text-transform: none; letter-spacing: 0; font-size: 15px; border-radius: 8px; }
.sub a:hover { background: var(--bg-3); }

.lang-switch { order: 2; display: flex; align-items: center; gap: 2px; margin-left: 4px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.lang-switch a { padding: 6px 9px; border-radius: 999px; opacity: .6; transition: opacity .2s, background .2s, color .2s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.on { opacity: 1; background: rgba(127, 127, 127, .28); }
.site-header:not(.is-solid) .lang-switch { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.site-header.is-solid .lang-switch, .nav-open .lang-switch { color: var(--fg); text-shadow: none; }
:root:not(.nav-open) .site-header[data-tone="dark"]:not(.is-solid) .lang-switch { color: #17161a; text-shadow: 0 1px 10px rgba(255, 255, 255, .6); }
.theme-toggle { order: 2; width: 44px; height: 44px; margin-left: -12px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; color: #fff; transition: background .2s, color .2s; }
.theme-toggle:hover { background: rgba(127, 127, 127, .22); }
.site-header.is-solid .theme-toggle, .nav-open .theme-toggle { color: var(--fg); }
.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav { order: 1; margin-left: auto; }
.nav-toggle { order: 3; display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: #fff; }
.site-header.is-solid .nav-toggle { color: var(--fg); }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 61; }
  .lang-switch { z-index: 61; margin-left: auto; }
  .theme-toggle { z-index: 61; margin-left: 0; }
  .nav {
    position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav > ul { flex-direction: column; gap: 4px; text-align: center; }
  .nav a { font-size: 22px; color: var(--fg); text-transform: none; letter-spacing: 0; padding: 10px 20px; }
  .sub { position: static; opacity: 1; visibility: inherit; transform: none; background: none; border: 0; box-shadow: none; padding: 0; }
  .sub a { font-size: 17px; color: var(--fg-dim) !important; }
  .nav__cta a { margin: 12px 0 0; }
  .nav-open .nav-toggle { color: var(--fg); }
}

/* ---------- Hero ---------- */
.hero {
  --slant: clamp(32px, 5vw, 80px);
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(520px, 82svh, 900px); overflow: hidden; background: var(--bg-2);
  padding: calc(var(--header-h) + 40px) 0 calc(var(--slant) + clamp(28px, 4vw, 56px));
  isolation: isolate;
}
.hero--home { min-height: 100svh; align-items: center; padding-bottom: calc(var(--slant) + 60px); }
/* Übergang Header → Inhalt: schräge Kante, die an der Diagonalen weich ausläuft */
.hero::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 150%; height: calc(var(--slant) * 1.5 + 1px); z-index: -1; pointer-events: none; /* Ebene 150% breit/hoch: Diagonale läuft rechts erst außerhalb des Bildes aus, der weiche Rand wird nicht abgeschnitten. Sichtbarer Anstieg = --slant */ background: linear-gradient(to top left, var(--bg) 50%, transparent calc(50% + 16px)); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; will-change: transform; animation: heroZoom 14s cubic-bezier(.2, .7, .2, 1) both; }
.hero__shade { display: none; }
.hero__inner { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 24px rgba(0, 0, 0, .35); }
.hero__inner .btn { text-shadow: none; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.hero .eyebrow { background: none; color: #fff; opacity: .8; }
.hero__title { margin: 0; font-size: clamp(40px, 7.5vw, 104px); font-weight: 300; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; max-width: 14ch; }
.hero--home .hero__title { font-weight: 250; max-width: 11ch; }
.hero__sub { margin: 22px 0 0; font-size: clamp(17px, 2vw, 22px); font-weight: 300; letter-spacing: .02em; opacity: .85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero__scroll { position: absolute; left: 50%; bottom: calc(var(--slant) + 18px); z-index: 1; width: 26px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes heroZoom { from { transform: scale(1.06); opacity: .0; } 12% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

/* ---------- Dunkle Schrift auf hellen Header-Bildern (hero.tone: dark) ---------- */
.hero--dark .hero__inner { color: #17161a; text-shadow: 0 1px 14px rgba(255, 255, 255, .55); }
.hero--dark .eyebrow { color: #17161a; }
.hero--dark .btn--ghost { background: rgba(255, 255, 255, .55); border-color: rgba(23, 22, 26, .35); color: #17161a; }
.hero--dark .btn--ghost:hover, .hero--dark .btn--ghost.is-active { background: #17161a; border-color: #17161a; color: #fff; }
:root:not(.nav-open) .site-header[data-tone="dark"]:not(.is-solid) :is(.theme-toggle, .nav-toggle, .brand) { color: #17161a; text-shadow: 0 1px 10px rgba(255, 255, 255, .6); }
:root:not(.nav-open) .site-header[data-tone="dark"]:not(.is-solid) .brand img { filter: invert(1) drop-shadow(0 1px 6px rgba(255, 255, 255, .6)); }
@media (min-width: 861px) {
  .site-header[data-tone="dark"]:not(.is-solid) .nav a { color: #17161a; text-shadow: 0 1px 10px rgba(255, 255, 255, .6); }
  .site-header[data-tone="dark"]:not(.is-solid) .nav a:hover, .site-header[data-tone="dark"]:not(.is-solid) .nav li.is-active > a { color: var(--accent); }
  .site-header[data-tone="dark"]:not(.is-solid) .nav__cta a:hover { color: var(--on-accent); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font: 600 15px/1 "Inter", sans-serif; letter-spacing: .03em; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: #fff; color: #0a0a0c; }
.btn--solid:hover { background: var(--accent-grad); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(8px); }
.btn--ghost:hover, .btn--ghost.is-active { background: #fff; color: #0a0a0c; border-color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section--first { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); }
.section-title, .article-title { margin: 0 0 .6em; font-size: clamp(32px, 4.6vw, 60px); font-weight: 300; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.article-title { font-size: clamp(38px, 6vw, 76px); }

.prose { color: var(--fg-dim); }
.prose > * { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--fg); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.5em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-2); }
.prose ul { list-style: none; margin: 0 0 1.6em; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--accent-grad); }
.prose [style*="font-size"] { font-size: inherit !important; }
.prose--lead { font-size: clamp(17px, 1.5vw, 19px); }
.prose [style*="text-align"] { text-align: inherit !important; }
.section--article .prose { font-size: 18px; }

/* About */
.about { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .about--right { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .about--right .about__figure { order: 2; }
}
.about__figure { margin: 0; position: relative; }
.about__figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: calc(var(--radius) + 6px); background: linear-gradient(135deg, #5f9a45, #1f4d2b); opacity: .75; z-index: 0; }
.about__figure img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: 0 30px 70px rgba(30, 20, 60, .22); }

/* Contact */
.section--contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-form { margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-form form, .contact-form .form-wrapper { width: 100%; }
.contact-form .form-field, .contact-form .form-data, .contact-form .form-group { margin-bottom: 22px; }
.contact-form label, .contact-form .form-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="password"], .contact-form textarea {
  width: 100%; padding: 15px 18px; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.contact-form ::placeholder { color: var(--fg-dim); opacity: .6; }
.contact-form .form-input-addon { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact-form .form-input-addon img { border-radius: 8px; max-width: 220px; }
.contact-form .reload-captcha-button { width: 40px; height: 40px; padding: 8px; cursor: pointer; color: var(--fg); background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; }
.contact-form .buttons { margin-top: 28px; }
.contact-form button[type="submit"], .contact-form .button {
  padding: 15px 36px; font: 600 15px/1 "Inter", sans-serif; letter-spacing: .04em; cursor: pointer;
  color: var(--on-accent); background: var(--accent-grad); border: 0; border-radius: 999px; transition: transform .25s var(--ease), filter .25s;
}
.contact-form button[type="submit"]:hover { transform: translateY(-2px); filter: brightness(1.1); }
.notices, .form-messages .alert, .alert { margin: 0 0 24px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); }
.notices.green, .alert.green { border-color: #3fb97a; }
.notices.red, .alert.red { border-color: #e5575a; }
.form-errors, .toast, .has-errors .errors { color: #ff7b7e; font-size: 14px; }

/* ---------- Gallery ---------- */
.section--gallery { padding-top: clamp(24px, 4vw, 48px); }
.gallery { --row: 190px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 760px) { .gallery { --row: 250px; } }
@media (min-width: 1200px) { .gallery { --row: 310px; gap: 14px; } }
.gallery::after { content: ""; flex-grow: 1000; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--bg-2); cursor: zoom-in; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row)); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.gallery__item:hover img { transform: scale(1.05);  }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; font-size: 13px; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery__cap { display: none; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: rgba(6, 6, 8, .96); backdrop-filter: blur(10px); color: #fff; }
.lb.is-open { display: flex; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lb__stage { position: relative; flex: 1; min-height: 0; margin: 56px 64px 8px; touch-action: pan-y; }
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; transition: opacity .25s; }
.lb__img.is-loading { opacity: 0; }
.lb__bar { padding: 14px 24px 22px; text-align: center; min-height: 72px; }
.lb__title { font-weight: 500; font-size: 16px; }
.lb__desc { color: rgba(255, 255, 255, .6); font-size: 14px; }
.lb__count { position: absolute; top: 20px; left: 24px; font-size: 13px; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }
.lb button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; color: #fff; background: rgba(255, 255, 255, .08); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.lb button:hover { background: rgba(255, 255, 255, .22); }
.lb__close { top: 12px; right: 16px; }
.lb__prev { left: 12px; top: 50%; margin-top: -24px; }
.lb__next { right: 12px; top: 50%; margin-top: -24px; }
@media (max-width: 700px) { .lb__stage { margin: 56px 6px 4px; } .lb__prev, .lb__next { top: auto; bottom: 14px; margin: 0; } .lb__prev { left: 14px; } .lb__next { right: 14px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg); }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-links a { font-size: 14px; color: var(--fg-dim); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.site-footer__copy { margin: 40px 0 0; font-size: 13px; color: var(--fg-dim); opacity: .7; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Login-Seite (überschreibt das eingebaute Plugin-Design) ---------- */
.contact-form #grav-login { max-width: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; text-align: left; }
.contact-form #grav-login h1, .contact-form #grav-login h2, .contact-form #grav-login h3, .contact-form #grav-login h4 { color: var(--fg); font-weight: 400; letter-spacing: -.02em; margin: 0 0 1em; }
.contact-form #grav-login p { font-size: 15px; text-align: left; color: var(--fg-dim); margin: 0 0 1em; }
.contact-form #grav-login .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; text-align: left; }
.contact-form #grav-login .rememberme { float: none; padding: 0; margin-right: auto; }
.contact-form #grav-login .rememberme label { display: inline; margin: 0 0 0 8px; letter-spacing: .08em; }
.contact-form #grav-login .rememberme input { accent-color: var(--accent); vertical-align: middle; }
.contact-form #grav-login .button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.contact-form #grav-login .button.secondary, .contact-form #grav-login a.button { color: var(--fg); background: none; border: 1px solid var(--line); padding: 14px 24px; border-radius: 999px; font: 600 14px/1 "Inter", sans-serif; }
.contact-form #grav-login .button.secondary:hover, .contact-form #grav-login a.button:hover { border-color: var(--accent); color: var(--accent); }
.contact-form #grav-login .button.primary, .contact-form #grav-login button { padding: 15px 32px; }
.contact-form .notices, .contact-form .notices.green, .contact-form .notices.red, .contact-form .notices.yellow { margin: 0 0 28px; padding: 14px 20px; color: var(--fg); background: var(--bg-3); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; }
.contact-form .notices.green { border-left-color: #3fb97a; }
.contact-form .notices.red { border-left-color: #e5575a; }
.contact-form .notices.yellow { border-left-color: #e0a93a; }
.contact-form .notices p { margin: 0; font-size: 15px; color: inherit; }

/* ---------- Angemeldetes Model: "Dein Bereich" + Abmelden ---------- */
.nav li.nav__area a { background: var(--accent-grad); color: var(--on-accent); margin-left: 8px; }
.nav li.nav__area a:hover, .site-header .nav li.nav__area a:hover { color: var(--on-accent); filter: brightness(1.1); }
.site-header .nav li.nav__area a { color: var(--on-accent); }
.nav__logout button { display: block; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #f1efeb; background: none; border: 0; border-radius: 999px; cursor: pointer; transition: color .2s; }
.site-header.is-solid .nav__logout button { color: var(--fg-dim); }
.nav__logout button:hover { color: var(--accent); }
@media (min-width: 861px) {
  .site-header[data-tone="dark"]:not(.is-solid) .nav li.nav__area a { color: var(--on-accent); }
  .site-header[data-tone="dark"]:not(.is-solid) .nav__logout button { color: #17161a; }
}
@media (max-width: 860px) {
  .nav li.nav__area a { margin: 12px 0 0; }
  .nav__logout button { font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--fg-dim); padding: 10px 20px; }
}

/* ---------- Galerie-Seite mit Wechsel-Buttons ---------- */
.gset[hidden] { display: none; }
.hero--gal .hero__img { transition: opacity .35s var(--ease); }
.hero--gal .hero__title { transition: opacity .2s; }
.hero--gal .hero__actions .btn { min-width: 110px; }

/* ---------- Kontakt-Abschluss am Ende jeder Seite ---------- */
.btn--accent { background: var(--accent-grad); color: var(--on-accent); }
.btn--accent:hover { filter: brightness(1.08); }
.cta { padding: clamp(56px, 9vw, 120px) 0; border-top: 1px solid var(--line); background: var(--bg-2); text-align: center; }
.cta__inner { max-width: 720px; }
.cta .eyebrow { margin-inline: auto; }
.cta__title { margin: 0 0 .4em; font-weight: 300; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.cta__text { margin: 0 0 1.8em; color: var(--fg-dim); font-size: 18px; }

/* ---------- Lieblingsbilder: horizontale Leiste ---------- */
.section--highlights { padding-bottom: clamp(40px, 7vw, 90px); }
.hl__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.hl__head .section-title { margin: 0; }
.hl__all { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim); transition: color .2s; }
.hl__all:hover { color: var(--accent); }
.hl { --hl-h: clamp(220px, 36vw, 400px); position: relative; margin-top: 18px; }
.hl__track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; position: relative; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px max(24px, calc((100vw - 1180px) / 2)) 14px; scroll-padding-inline: max(24px, calc((100vw - 1180px) / 2)); cursor: grab; }
.hl__track::-webkit-scrollbar { display: none; }
.hl__track.is-drag { cursor: grabbing; }
.hl__track.is-drag a { pointer-events: none; }
.hl__item { flex: 0 0 auto; height: var(--hl-h); width: calc(var(--hl-h) * var(--ar)); }
.hl__item img { height: 100%; user-select: none; -webkit-user-drag: none; }
.hl__more { flex: 0 0 auto; width: calc(var(--hl-h) * .62); height: var(--hl-h); display: grid; place-content: center; gap: 10px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--fg-dim); scroll-snap-align: start; transition: border-color .2s, color .2s; }
.hl__more b { font-size: 30px; font-weight: 300; color: var(--accent); }
.hl__more:hover { border-color: var(--accent); color: var(--fg); }
.hl__nav { position: absolute; top: calc(var(--hl-h) / 2 - 8px); width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--fg); font-size: 20px; cursor: pointer; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s, background .2s; z-index: 2; }
.hl__nav:hover { background: var(--accent-grad); color: var(--on-accent); transform: scale(1.06); }
.hl__prev { left: clamp(10px, 1.6vw, 28px); } .hl__next { right: clamp(10px, 1.6vw, 28px); }
/* Weiches Ausblenden an beiden Seiten */
.hl::before, .hl::after { content: ""; position: absolute; top: 0; bottom: 14px; width: clamp(56px, 11vw, 200px); z-index: 1; pointer-events: none; }
.hl::before { left: 0; background: linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 30%, color-mix(in srgb, var(--bg) 35%, transparent) 65%, transparent 100%); }
.hl::after { right: 0; background: linear-gradient(to left, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 30%, color-mix(in srgb, var(--bg) 35%, transparent) 65%, transparent 100%); }
@media (hover: none) { .hl__nav { display: none; } }

/* ---------- Lightbox: Werkzeuge, Zoom, Hinweis ---------- */
.lb__tools { position: absolute; top: 12px; right: 16px; display: flex; gap: 8px; z-index: 3; }
.lb__tools .lb__btn, .lb__tools button { position: static; width: 46px; height: 46px; font-size: 20px; }
.lb__img { transform-origin: center center; touch-action: none; cursor: zoom-in; will-change: transform; }
.lb.is-zoomed .lb__img { cursor: grab; }
.lb__stage { touch-action: none; overflow: hidden; }
.lb__toast { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 10px); padding: 9px 18px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #111; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 4; }
.lb__toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Weiche Seitenübergänge und Einblenden der Kacheln ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
.js .gallery__item.tile-in { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .gallery__item.tile-in.is-in { opacity: 1; transform: none; }
.hero__img { object-position: 50% calc(var(--hero-y, 30%) + var(--hero-py, 0px)); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } .js .gallery__item.tile-in { opacity: 1; transform: none; } }

/* ---------- Nummerierte Listen (Ablauf) und Auswahlfelder im Formular ---------- */
.prose ol { list-style: none; counter-reset: step; margin: 0 0 1.6em; display: grid; gap: 14px; padding: 0; }
.prose ol li { counter-increment: step; position: relative; padding: 18px 20px 18px 72px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.prose ol li::before { content: counter(step); position: absolute; left: 20px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); font-weight: 700; }
.contact-form select { width: 100%; padding: 15px 18px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%), linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
