/*
 * Theme „Blende“ – Feinschliff. Grundaussehen kommt aus dem Kern (site.css) und theme.json.
 * Schriften liegen im Theme (Cormorant Garamond, Inter – SIL Open Font License, siehe schriften/*-OFL.txt).
 *
 * Stil: Die Fotos stehen im Mittelpunkt. Papierweiß, fast Schwarz, viel Weißraum, feine Serifen.
 * Sand (Akzent) nur für die kleine Zeile über Überschriften, Links und das hervorgehobene Wort.
 *
 * Alles hier ist reines CSS – kein JavaScript. Effekte:
 *   - Bilder zoomen beim Darüberfahren ganz leicht
 *   - Abschnitte blenden beim Scrollen ruhig ein (animation-timeline, nur wenn der Browser es kann)
 *   - weiches Überblenden zwischen Seiten (View Transitions)
 * Regeln:
 *   - „Weniger Bewegung“ am Gerät → alle Bewegungen aus, das Aussehen bleibt (siehe ganz unten).
 *   - Im Bearbeitungsmodus (html.jx-editing) gibt es keine Scroll-Effekte.
 */

/* ---------- Schriften ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("schriften/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("schriften/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("schriften/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("schriften/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("schriften/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundwerte des Themes ---------- */
:root {
  --line: #e4dfd8;
  --bl-paper: #fff;
  --bl-sand: var(--color-accent);
  --bl-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

body {
  background: var(--bl-paper);
  font-size: 0.97rem;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--bl-sand) 55%, transparent);
}

/* ---------- Überschriften ---------- */
h1,
h2,
h3 {
  line-height: 1.08;
}

.section-title,
.cta__title,
.banner__title {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  text-wrap: balance;
}

/* Das hervorgehobene Wort: kursiv, sonst gleich – wie in einem Bildband */
:is(.section-title, .cta__title, .banner__title, .hero__title) strong {
  font-style: italic;
  font-weight: 500;
}

.jx-bg--light :is(.section-title, .cta__title) strong,
.jx-s:not([class*="jx-bg--"]) :is(.section-title, .cta__title) strong {
  color: var(--color-primary);
}

/* Kleine Zeile über Überschriften */
.section-eyebrow,
.card__eyebrow {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

:is(.jx-bg--dark, .jx-bg--image, .jx-bg--accent, .gallery-full) .section-eyebrow {
  color: var(--bl-sand);
}

/* ---------- Buttons: schmal, ruhig, mit feinem Rahmen ---------- */
.btn {
  border-width: 1px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn--primary {
  border-color: var(--color-dark);
  background: var(--color-dark);
  color: #fff;
  box-shadow: none;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

:is(.jx-bg--dark, .jx-bg--image, .jx-bg--accent, .gallery-full) .btn--primary {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

:is(.jx-bg--dark, .jx-bg--image, .jx-bg--accent, .gallery-full) .btn--primary:hover,
:is(.jx-bg--dark, .jx-bg--image, .jx-bg--accent, .gallery-full) .btn--primary:focus-visible {
  background: #fff;
  color: var(--color-dark);
}

/* ---------- Links im Text ---------- */
.prose a:not(.btn) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--bl-sand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}

.prose a:not(.btn):hover {
  text-decoration-color: currentColor;
}

/* ---------- Kopfbereich ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (min-width: 900px) {
  .site-nav a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
}

/* ---------- Bild-Banner (Seitenkopf) ---------- */
.banner__title {
  color: #fff;
}

/* ---------- Galerie ---------- */
.gallery__image {
  transition: transform 0.9s var(--bl-ease), filter 0.4s;
}

.gallery__link:hover .gallery__image,
.gallery__link:focus-visible .gallery__image {
  transform: scale(1.03);
  filter: none;
}

.gallery__caption {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
}

.gallery-filter__btn {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

/* Vollbild zum Wischen: Bildunterschrift wie ein kleines Etikett */
.gallery-full__caption {
  padding: 10px 16px 12px;
  border-radius: 1px;
  background: rgba(16, 15, 14, 0.5);
}

.gallery-full__meta {
  color: var(--bl-sand);
  opacity: 1;
}

.gallery-full__text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
}

.gallery-full__toggle {
  border-radius: 1px;
  background: rgba(16, 15, 14, 0.5);
}

.gallery-full__menu {
  background: #100f0e;
}

.gallery-full__title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

.gallery-full__cat {
  aspect-ratio: 3 / 4;
  border-radius: 1px;
}

.gallery-full__cat-name {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 500;
}

.gallery-full__cat-count {
  color: var(--bl-sand);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 1;
}

.gallery-full__hint-text {
  border-radius: 1px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---------- Karten und Bildkacheln ---------- */
.card {
  border-radius: var(--radius);
  box-shadow: none;
}

.card__title {
  font-size: 1.6rem;
  font-weight: 500;
}

.card__media img {
  transition: transform 0.9s var(--bl-ease);
}

.card:hover .card__media img {
  transform: scale(1.03);
}

/* ---------- Kundenstimmen und Zitat ---------- */
.testimonial__quote,
.quote__text {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
}

/* ---------- Preise ---------- */
.price__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

/* ---------- Zahlen ---------- */
.fact__number {
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ---------- Fußbereich ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bl-paper);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* ---------- Effekte beim Scrollen ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.jx-editing) :is(.section-head, .section-intro, .split__content, .split__media, .cta, .form-block, .contact, .quote, .project, .prices, .text-block, .gallery__item, .card, .testimonial, .step, .fact, .faq__item) {
      animation: bl-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

@keyframes bl-reveal {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Seitenwechsel: weiches Überblenden ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: bl-fade-out 0.3s var(--bl-ease) both;
  }

  ::view-transition-new(root) {
    animation: bl-fade-in 0.5s var(--bl-ease) both;
  }
}

@keyframes bl-fade-out {
  to { opacity: 0; }
}

@keyframes bl-fade-in {
  from { opacity: 0; }
}

/* ---------- Weniger Bewegung: alles steht still, Aussehen bleibt ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Der Wisch-Hinweis bleibt auch bei „weniger Bewegung“ kurz stehen (nur ein- und ausblenden, ohne Bewegung) */
@media (prefers-reduced-motion: reduce) {
  .gallery-full.is-hinting .gallery-full__hint {
    animation-duration: 3.6s !important;
  }
}

/* Demo-Website von Jupix: Hinweis ganz unten im Fuß */
.site-footer::after {
  content: "Demo-Website von Jupix · Betrieb, Angaben und Preise sind erfunden · Formulare senden nichts";
  display: block;
  padding: 14px var(--gutter) 0;
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.75;
}
