/*
Theme Name: Lumen
Theme URI: https://example.com
Author: AI4KML
Description: Minimalistisches, hochwertiges Theme für Foto- & Videografie-Studios. Große Typografie, viel Weißraum, sanfte Scroll-Animationen, schneller Ladeaufbau. Inspiriert von reduziertem Premium-Webdesign.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lumen
*/

/* ===========================================================
   1. DESIGN TOKENS
   =========================================================== */
:root {
  /* Farbpalette A (Markenkonzept 2026) - warm & natürlich statt Apple-Grau/Blau.
     Einsatzregel: Beige/Marmor ~70-80% Fläche, Schwarz ~15% (Text, Buttons),
     Eiche ~10% (zweiter Kontrast), Salbeigrün <5% - nur als EIN sparsamer
     Akzent (Eyebrow-Labels, Links, kleine Hervorhebungen), nie als Fläche. */
  --color-bg: #EDE6D6;          /* Beige - Haupt-Hintergrund */
  --color-bg-light: #F2F0EB;    /* Marmor-Hell - zweite Fläche/Karten */
  --color-bg-dark: #1A1A1A;     /* Schwarz - dunkle Kontrast-Flächen */
  --color-fg: #1A1A1A;          /* Schwarz - Überschriften, primäre Buttons */
  --color-fg-dark: #F2F0EB;     /* Text auf dunklem Grund */
  --color-muted: #6b6a63;       /* gedämpft - Fließtext (nie reines Schwarz) */
  --color-muted-dark: #c9c4b8;
  --color-accent: #7C8B6F;      /* Salbeigrün - sparsamer Akzent */
  --color-secondary: #8B6B4A;   /* Eichenholz-Braun - zweiter Kontrast, Tags */
  --color-border: #ddd3be;      /* warmer Rahmenton statt kühlem Grau */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --radius-sm: 8px;   /* Tags, kleine Badges */
  --radius-md: 16px;  /* Buttons (falls nicht Pill), Input-Felder */
  --radius-lg: 24px;  /* Karten, Bild-Kacheln */
  --radius-xl: 32px;  /* große Sections, Hero-Container */
  --radius: 24px;     /* Alias für Karten/Bild-Kacheln (bestehende Nutzung) */
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-weight: 500; /* nie fett/schwarz (700+) - ruhige Zurückhaltung statt Wucht */
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

p { color: var(--color-muted); }

.eyebrow {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  background: var(--color-fg);
  color: var(--color-bg-light);
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  border: 1px solid var(--color-border);
  color: var(--color-fg);
}
.btn-ghost:hover { background: rgba(26,26,26,0.05); }

.btn-light {
  background: var(--color-bg-light);
  color: var(--color-fg);
}
.btn-light:hover { opacity: 0.85; }

/* ===========================================================
   2. HEADER / NAV
   =========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  /* Liquid Glass (Design_System_2026.md): blur-basierte, transluzente Fläche
     statt reiner Farbfläche, dünner heller Glas-Kanten-Rand. */
  background: rgba(242, 240, 235, 0.6);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.site-header.is-dark {
  background: rgba(26,26,26,0.5);
  border-bottom-color: rgba(255,255,255,0.3);
}
.site-header.is-dark .site-title,
.site-header.is-dark .main-nav a { color: var(--color-bg-light); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.site-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-logo-fallback {
  display: flex;
  align-items: center;
}
.site-logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.site-logo-img--light { display: none; }
.site-header.is-dark .site-logo-img--dark { display: none; }
.site-header.is-dark .site-logo-img--light { display: block; }

/* Nischen-Kacheln ("Was ich mache" / Leistungen) — ein Name, keine
   Sub-Marken; aktive Nischen vs. sichtbar-aber-gedimmte, siehe
   Markenkonzept_2026.md, Abschnitt "Markenstruktur". */
.lumen-nischen {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch !important; /* Standard von Gutenberg's Flex-Layout ist
    "center", nicht "stretch" - dadurch wurden die 3 Kacheln nur an ihrem
    eigenen (unterschiedlich langen) Text ausgerichtet statt gleich hoch. */
  gap: 32px;
  margin-top: 48px;
}
.lumen-tile {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column; /* damit der Link unten via margin-top:auto andocken kann */
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: opacity 0.2s ease;
}
.lumen-tile--dimmed {
  opacity: 0.5;
}
.lumen-tile-link {
  margin-top: auto; /* "Portfolio ansehen ->" landet bei allen 3 Kacheln auf
    derselben Höhe, egal wie lang der Text darüber ist */
  padding-top: 16px;
}
.lumen-tile-link a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
}
.lumen-tile-link a:hover { text-decoration: underline; }
.lumen-tile-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  margin-top: 4px;
}
@media (max-width: 780px) {
  .lumen-tile { flex-basis: 100%; }
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0; padding: 0;
}

.main-nav a {
  font-size: 13px;
  color: var(--color-fg);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.main-nav a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 22px;
  color: inherit;
  padding: 10px;
  margin: -10px;
  min-width: 44px;
  min-height: 44px;
}

/* Tablet + Handy: 900px deckt iPad Mini/Air/Pro im Hochformat mit ab,
   damit die Nav dort nicht gequetscht wirkt, sondern sauber als Menü klappt. */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: rgba(237,230,214,0.97);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 4px; }
  .main-nav.is-open a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
  }
  .nav-toggle { display: block; }
}

/* ===========================================================
   3. STARTSEITEN-BLÖCKE (Cover, Buttons, Query-Loop)
   Die Startseite ist eine ganz normale Block-Seite - hier wird
   nur der Standard-Look der core-Blöcke ans Theme angepasst.
   =========================================================== */

/* Normale Blöcke bekommen angenehme Lesebreite + Innenabstand;
   "Breit"/"Vollbreite"-Blöcke (Hero-Cover) brechen bewusst aus. */
.home-content > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.home-content > .alignwide {
  max-width: 1400px;
}
.home-content > .alignfull {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Genug Abstand zur fixierten Nav (52px hoch), falls der erste Block auf
   der Startseite KEIN Vollbreite-Hero ist (der darf bewusst darunter
   beginnen). Das war die Ursache für den Text, der unter die Nav rutscht. */
.home-content > *:first-child:not(.alignfull) {
  padding-top: 100px;
}

.wp-block-cover {
  color: #fff;
}
.wp-block-cover .wp-block-heading,
.wp-block-cover p {
  color: #fff;
}
.wp-block-cover .wp-block-heading {
  font-size: clamp(40px, 7vw, 92px) !important;
  line-height: 1.02;
}
.wp-block-cover p {
  font-size: clamp(16px, 2vw, 21px);
  color: rgba(245,245,247,0.85);
}

.wp-block-button__link,
.contact-form button,
.btn {
  border-radius: 980px !important;
  padding: 14px 28px !important;
  font-weight: 500;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wp-block-button__link:hover { opacity: 0.85; }

/* Standard-Button-Farbe: Schwarz statt WordPress' Standard-Grau (Salbeigrün
   bleibt laut Design-System der sparsame Akzent für Eyebrow-Labels/Links,
   nicht für flächige Buttons - siehe Design_System_2026.md, Farbeinsatz-Regel).
   Gilt nur, solange im Editor keine eigene Farbe für den Button gewählt
   wurde (erkennbar an einer "has-*-background-color"-Klasse) - dann hat
   die eigene Wahl weiterhin Vorrang. */
.wp-block-button__link:not([class*="has-"][class*="-background-color"]) {
  background-color: var(--color-fg);
  color: var(--color-bg-light);
}
.contact-form button {
  background-color: var(--color-fg);
  color: var(--color-bg-light);
  border: none;
}

/* Portfolio- & Testimonial-Query-Loop auf der Startseite wie eine Galerie */
.lumen-portfolio-query .wp-block-post-template,
.lumen-testimonial-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lumen-portfolio-query .wp-block-post-template > li {
  margin: 0;
}
.lumen-portfolio-query figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  margin: 0 0 12px;
}
.lumen-portfolio-query figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.lumen-portfolio-query a:hover img { transform: scale(1.06); }
.lumen-portfolio-query .wp-block-post-title {
  font-size: 18px;
  margin: 0;
}

.lumen-testimonial-query .wp-block-post-template > li {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 0;
}
.section-dark .lumen-testimonial-query .wp-block-post-template > li {
  border-color: rgba(255,255,255,0.15);
}
.lumen-testimonial-query .wp-block-post-excerpt { font-size: 17px; }
.lumen-testimonial-query .wp-block-post-title { font-size: 16px; margin-top: 12px; }

/* Großes Einzel-Zitat (Pull-Quote im Apple-Stil) */
.lumen-big-quote {
  border: none;
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  padding: 0;
}
.lumen-big-quote p {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 500;
  color: var(--color-fg);
  line-height: 1.4;
}
.lumen-big-quote cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 14px;
  color: var(--color-muted);
}

/* Scroll-Story: Bild bleibt beim Scrollen stehen (nur Desktop/Tablet-quer).
   Reines CSS, kein JavaScript - fällt auf älteren Browsern automatisch auf
   eine normale, statische Ansicht zurück (kein kaputtes Layout möglich). */
/* Ausnahme von der Spalten-Karten-Optik (Rahmen/Rundung/Padding) weiter
   unten: die Scroll-Story soll flächig/immersiv wirken, kein Kästchen-Look. */
.lumen-scroll-story .wp-block-column {
  border: none;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .lumen-scroll-story .wp-block-column:first-child {
    position: sticky;
    top: 110px;
    align-self: start;
  }
  .lumen-scroll-story .wp-block-column:last-child > * {
    margin-bottom: 30vh;
  }
  .lumen-scroll-story .wp-block-column:last-child > *:last-child {
    margin-bottom: 0;
  }
}

/* Fortschrittliche Verbesserung: sanftes Skalieren/Einblenden des fixierten
   Bildes, gesteuert allein über CSS-Scroll-Animationen (kein JS). Browser
   ohne Unterstützung zeigen einfach das normale, unbewegte Bild. */
@supports (animation-timeline: view()) {
  @media (min-width: 900px) {
    .lumen-scroll-story .wp-block-column:first-child img {
      animation: lumen-story-reveal linear;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes lumen-story-reveal {
      from { transform: scale(0.92); opacity: 0.6; }
      to { transform: scale(1); opacity: 1; }
    }
  }
}

/* ===========================================================
   3b. WILDE LAYOUTS (Mosaik, Collage, Ticker, Editorial)
   =========================================================== */

/* Mosaik: gemischte große/kleine Kacheln */
.lumen-mosaik {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 16px;
}
.lumen-mosaik .wp-block-image { margin: 0; height: 100%; }
.lumen-mosaik .wp-block-image img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius);
}
.lumen-mosaik .wp-block-image:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.lumen-mosaik .wp-block-image:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.lumen-mosaik .wp-block-image:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.lumen-mosaik .wp-block-image:nth-child(4) { grid-column: span 1; grid-row: span 2; }
.lumen-mosaik .wp-block-image:nth-child(5) { grid-column: span 2; grid-row: span 1; }
@media (max-width: 700px) {
  .lumen-mosaik { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .lumen-mosaik .wp-block-image:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .lumen-mosaik .wp-block-image:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* Collage: überlappende, schräg gestellte Fotos wie hingeworfen */
.lumen-collage {
  position: relative;
  min-height: 560px;
  padding: 40px;
}
.lumen-collage__item {
  position: absolute;
  width: 38%;
  margin: 0;
  box-shadow: 0 20px 40px rgba(26,26,26,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.lumen-collage__item img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.lumen-collage__item--1 { top: 0;    left: 4%;  transform: rotate(-7deg); z-index: 3; }
.lumen-collage__item--2 { top: 60px; left: 31%; transform: rotate(5deg);  z-index: 2; }
.lumen-collage__item--3 { top: 110px;left: 58%; transform: rotate(-4deg); z-index: 1; }
.lumen-collage__item:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 5; }
@media (max-width: 780px) {
  .lumen-collage { min-height: 0; padding: 0; }
  .lumen-collage__item {
    position: static;
    width: 100%;
    transform: none !important;
    margin-bottom: 16px;
    box-shadow: none;
  }
}

/* Ticker: endloses Laufband, pausiert bei Hover */
.lumen-ticker {
  overflow: hidden;
  display: flex;
}
.lumen-ticker__set {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  animation: lumen-ticker-scroll 26s linear infinite;
}
.lumen-ticker:hover .lumen-ticker__set { animation-play-state: paused; }
.lumen-ticker__set .wp-block-image { margin: 0; flex-shrink: 0; width: 320px; }
.lumen-ticker__set .wp-block-image img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: var(--radius);
}
@keyframes lumen-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .lumen-ticker__set { animation: none; }
}

/* Editorial: riesige Typografie über dem Bild, invertiert sich am Bild */
.lumen-editorial .wp-block-heading {
  color: #fff;
  letter-spacing: -0.03em;
  mix-blend-mode: difference;
  margin: 0 0 24px 24px;
}

/* ===========================================================
   3c. VOLLBILD-PIN-HERO (Apple-Stil: Bild bleibt, Text wechselt,
   Hintergrund bewegt sich leicht mit). Layout per CSS (funktioniert
   ohne JS), Ein-/Ausblenden + Bewegung per JavaScript (main.js) für
   volle Browser-Kompatibilität inkl. Safari.
   =========================================================== */
.lumen-pin-hero {
  position: relative;
}
.lumen-pin-hero__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh; /* Text-Szenen darüber "durchscrollen" lassen */
  overflow: hidden;
  z-index: 0;
}
.lumen-pin-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
}
.lumen-pin-hero__bg .wp-block-image,
.lumen-pin-hero__bg figure {
  height: 100%;
  margin: 0;
}
.lumen-pin-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.1s linear; /* wird per JS laufend leicht hochskaliert */
  will-change: transform;
}
.lumen-pin-hero__scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.lumen-pin-hero__scene.is-active {
  opacity: 1;
  transform: translateY(0);
}
.lumen-pin-hero__scene .wp-block-heading {
  color: #fff;
  font-size: clamp(30px, 5vw, 52px);
  max-width: 700px;
}
.lumen-pin-hero__scene p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  max-width: 560px;
}

/* Kein JavaScript: alle Texte normal untereinander zeigen, kein Pinning,
   damit garantiert nichts kaputt/unlesbar aussieht. */
.no-js .lumen-pin-hero__bg {
  position: relative;
  height: 60vh;
  margin-bottom: 0;
}
.no-js .lumen-pin-hero__scene {
  opacity: 1;
  transform: none;
  min-height: auto;
  padding: 56px 24px;
  color: var(--color-fg);
}
.no-js .lumen-pin-hero__scene .wp-block-heading { color: var(--color-fg); }
.no-js .lumen-pin-hero__scene p { color: var(--color-muted); }

@media (max-width: 780px) {
  /* Auf dem Handy ist "vollbild + fixiert" oft eher verwirrend als beeindruckend
     (Adressleiste springt, 100vh ist unzuverlässig) - dort läuft es normal. */
  .lumen-pin-hero__bg {
    position: relative;
    height: 50vh;
    margin-bottom: 0;
  }
  .lumen-pin-hero__scene {
    opacity: 1;
    transform: none;
    min-height: auto;
    padding: 48px 24px;
    color: var(--color-fg);
  }
  .lumen-pin-hero__scene .wp-block-heading { color: var(--color-fg); }
  .lumen-pin-hero__scene p { color: var(--color-muted); }
}

/* ===========================================================
   4. SECTIONS / REVEAL
   =========================================================== */
.section {
  padding: 120px 0;
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
}
.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-fg-dark);
}
.section-dark p { color: var(--color-muted-dark); }
.section-dark h2 { color: var(--color-fg-dark); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 48px); }
.section-header p { font-size: 18px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   5. PORTFOLIO GRID
   =========================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-bg-light);
}
.portfolio-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.portfolio-card:hover img { transform: scale(1.06); }

.portfolio-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  /* Titel ist immer sichtbar (nicht erst bei Hover) - wichtig auf dem Handy,
     wo es kein "Drüberfahren" gibt, und falls ein Projekt mal kein Bild hat. */
}
.portfolio-card .overlay h3 { color: #fff; font-size: 20px; margin: 0; }
.portfolio-card .overlay span { color: rgba(255,255,255,0.75); font-size: 13px; }

/* Projekt ohne Beitragsbild: dezenter Hinweis statt leerer grauer Fläche. */
.portfolio-card:not(:has(img))::before {
  content: "Kein Bild hinterlegt";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

.portfolio-card.placeholder {
  background: linear-gradient(135deg, #e3dcc8, var(--color-bg-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

/* Sicherheitsnetz: normale wp:columns-Blöcke (z.B. die 3 Preis-Kacheln auf
   "Pakete & Preise") MÜSSEN auf schmalen Screens untereinander stehen.
   Das übernimmt WordPress eigentlich automatisch - falls das durch ein
   Plugin/Caching mal nicht greift, erzwingt das hier dasselbe nochmal,
   damit nie wieder abgehackter Ein-Buchstabe-pro-Zeile-Text entsteht. */
@media (max-width: 600px) {
  .wp-block-columns { flex-wrap: wrap !important; }
  .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  /* Große Preis-Zahlen (48px) würden auch gestapelt noch knapp werden -
     auf schmalen Screens spürbar kleiner, bleibt aber klar die "Preis"-Zeile. */
  p[style*="font-size:48px"] { font-size: 34px !important; }
}

/* Preis-Karten ("Pakete & Preise"): echter Fix für die kaputt aussehenden
   Kästen. Zwei Ursachen gleichzeitig:
   1) Die generische Inhalts-Regel weiter unten (.entry-content .wp-block-column)
      hat JEDER Spalte selbst schon Rahmen+Padding+Radius gegeben - während die
      Preis-Karte INNEN nochmal ihre eigene Box (Hintergrund+Radius) mitbringt.
      Ergebnis: zwei ineinander verschachtelte, leicht versetzte Kästen statt
      einer sauberen Karte. .lumen-pricing nimmt die Spalte davon aus.
   2) Die 3 Karten haben unterschiedlich viele Listenpunkte (3 / 4 / 4) und
      unterschiedlich langen Preistext ("ab 490 €" vs. "auf Anfrage") - ohne
      Stretch-Fix endet die INNERE Karten-Box einfach dort, wo ihr eigener
      Inhalt aufhört, statt sich auf die Höhe der Nachbarn zu strecken. */
.lumen-pricing.wp-block-columns { align-items: stretch; }
.lumen-pricing .wp-block-column {
  display: flex;
  border: none;
  padding: 0;
  border-radius: 0;
}
.lumen-pricing .wp-block-column > .wp-block-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.lumen-pricing .wp-block-column > .wp-block-group > .wp-block-list {
  margin-top: auto;
  padding-top: 16px;
}

/* Checkliste in den Preis-Karten: "is-style-checklist" wurde im Inhalt
   verwendet, hatte aber nie eine passende CSS-Regel - lief also als nackte
   Browser-Aufzählung mit. Echte Häkchen statt Punkte. */
.wp-block-list.is-style-checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.wp-block-list.is-style-checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}
.wp-block-list.is-style-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ===========================================================
   6. INHALTS-SEITEN (Leistungen, Über mich, Kontakt ...)
   Style default Gutenberg blocks nicely for editable pages
   =========================================================== */
/* Portfolio-Projekt-Einzelseite: Inhalt darf ausbrechen (siehe single-portfolio.php).
   Normale Blöcke bleiben lesefreundlich schmal, "Breit"/"Vollbreite"-Blöcke
   (z.B. die Riesenbild-Projekt-Layouts) brechen bewusst aus - exakt wie auf
   der Startseite (.home-content), nur eben für einzelne Portfolio-Projekte. */
.entry-content--wide > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 48px;
}
.entry-content--wide > .alignwide {
  max-width: 1400px;
}
.entry-content--wide > .alignfull {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.entry-content h2 { font-size: 32px; margin-top: 56px; }
.entry-content h3 { font-size: 22px; margin-top: 32px; }
.entry-content p { font-size: 16px; line-height: 1.6; }
.entry-content .wp-block-columns,
.home-content .wp-block-columns { gap: 32px; }
.entry-content .wp-block-column,
.home-content .wp-block-column {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.entry-content figure,
.home-content figure { border-radius: var(--radius); overflow: hidden; }

/* Portfolio-Projekt-Layouts (Riesenbild + Text): bewusst KEIN Kästchen-Look,
   das Bild soll wirken statt in einem Rahmen zu stecken. */
.lumen-projekt-layout.wp-block-columns { gap: 48px; }
.lumen-projekt-layout .wp-block-column {
  border: none;
  padding: 0;
  border-radius: 0;
}
.lumen-projekt-layout .wp-block-column img,
.lumen-projekt-layout.wp-block-group img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
@media (max-width: 780px) {
  .lumen-projekt-layout.wp-block-columns { gap: 24px; }
}
.entry-content .wp-block-button__link,
.home-content .wp-block-button__link {
  border-radius: 980px;
  padding: 14px 28px;
}

/* ===========================================================
   8. CONTACT
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 20px 0 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  font-family: inherit;
  font-size: 15px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { margin-top: 24px; border: none; cursor: pointer; }

.contact-info a { color: var(--color-accent); }
.contact-info .social { display: flex; gap: 16px; margin-top: 24px; }

.form-notice {
  padding: 14px 18px;
  border-radius: 12px;
  background: #e8f6ec;
  color: #14622e;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ===========================================================
   9. FOOTER
   =========================================================== */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-muted-dark);
  padding: 64px 0 32px;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 32px;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--color-muted-dark); }
.footer-social a:hover { color: var(--color-bg-light); }

/* ===========================================================
   10. SINGLE PORTFOLIO
   =========================================================== */
.single-portfolio-hero {
  padding: 140px 0 48px;
}
.single-portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.single-portfolio-gallery img { border-radius: var(--radius); }

/* Category filter */
.portfolio-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.portfolio-filter a {
  padding: 8px 18px;
  border-radius: 980px;
  border: 1px solid var(--color-border);
  font-size: 13px;
}
.portfolio-filter a.is-active,
.portfolio-filter a:hover {
  background: var(--color-fg);
  color: #fff;
  border-color: var(--color-fg);
}
