
Theme Name: ALMA LIVING CONCEPT
Theme URI: https://example.com/
Author: ALMA LIVING CONCEPT
Author URI: https://example.com/
Description: Editorial-Interior-Design-Theme für ALMA LIVING CONCEPT — mediterrane Wohnkonzepte auf Mallorca. Importiert bei Aktivierung automatisch die Projektbilder in die Mediathek und legt die Projektseite an.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alma-living-concept
Tags: one-column, custom-menu, featured-images, portfolio
*/

/* Lokale Schriften — selbst gehostet (kein externer Font-Dienst, DSGVO) */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrumentserif-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrumentserif-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/instrumentsans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/instrumentsans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spacemono-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spacemono-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/mrssaintdelafield-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/mrssaintdelafield-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   ALMA LIVING CONCEPT — Interior Design Mallorca
   Editorial design system v2 · modern serif (Instrument Serif) + grotesk + mono
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Warme, mediterrane Palette — höherer Kontrast */
  --sand-50:  #faf8f3;
  --sand-100: #f3eee4;
  --sand-150: #ebe3d4;
  --sand-200: #ddd0bb;
  --clay:     #a75d3b;   /* Terrakotta-Akzent */
  --clay-dark:#8a4a2d;
  --olive:    #6f7257;
  --ink:      #1a1713;   /* tiefes, warmes Fast-Schwarz */
  --ink-soft: #524b42;
  --ink-mute: #756a5b;   /* >=4.5:1 auf sand-50/sand-100 (WCAG 1.4.3) */
  --line:     #e3d9c8;
  --white:    #ffffff;

  --bg:       var(--sand-50);
  --surface:  #fffefb;

  /* Typografie */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Cascadia Mono", "Courier New", monospace;
  --font-script: "Mrs Saint Delafield", "Segoe Script", "Brush Script MT", cursive;

  /* Fluid type scale — größer, mutiger */
  --fs-eyebrow: 0.68rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  --fs-lead: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.45rem, 1.2rem + 1.2vw, 2.2rem);
  --fs-h2: clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem);
  --fs-h1: clamp(3rem, 1.6rem + 7vw, 8.5rem);

  /* Spacing / layout */
  --container: 1240px;
  --container-wide: 1520px;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --radius: 0px;
  --radius-img: 16px;   /* Bilder/Kacheln — moderne, sanfte Rundung */
  --radius-card: 22px;  /* Karten/Feature-Kacheln */

  --shadow-soft: 0 18px 50px -28px rgba(40, 32, 22, 0.4);
  --shadow-lift: 0 30px 70px -30px rgba(40, 32, 22, 0.5);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;

  /* Boho-Pattern: mediterranes Bogen-/Schuppenmuster (Inline-SVG, nahtlos).
     Terrakotta auf hellen Flaechen, Sand auf dunklen — bewusst sehr dezent. */
  --boho-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23a75d3b' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0'/%3E%3Cpath d='M12 40a28 28 0 0 1 56 0'/%3E%3Cpath d='M24 40a16 16 0 0 1 32 0'/%3E%3Cpath d='M-40 80a40 40 0 0 1 80 0'/%3E%3Cpath d='M40 80a40 40 0 0 1 80 0'/%3E%3Cpath d='M-28 80a28 28 0 0 1 56 0'/%3E%3Cpath d='M52 80a28 28 0 0 1 56 0'/%3E%3Cpath d='M-16 80a16 16 0 0 1 32 0'/%3E%3Cpath d='M64 80a16 16 0 0 1 32 0'/%3E%3C/g%3E%3C/svg%3E");
  --boho-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23ece2d4' stroke-opacity='.05' stroke-width='1'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0'/%3E%3Cpath d='M12 40a28 28 0 0 1 56 0'/%3E%3Cpath d='M24 40a16 16 0 0 1 32 0'/%3E%3Cpath d='M-40 80a40 40 0 0 1 80 0'/%3E%3Cpath d='M40 80a40 40 0 0 1 80 0'/%3E%3Cpath d='M-28 80a28 28 0 0 1 56 0'/%3E%3Cpath d='M52 80a28 28 0 0 1 56 0'/%3E%3Cpath d='M-16 80a16 16 0 0 1 32 0'/%3E%3Cpath d='M64 80a16 16 0 0 1 32 0'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture { display: block; max-width: 100%; }
img { height: auto; }
/* <picture>-Wrapper muss Container fuellen, damit object-fit greift */
.hero__media picture, .band__media picture, .project-hero__media picture,
.figure picture, .tile picture { width: 100%; height: 100%; }
.hero__media img, .band__media img, .project-hero__media img,
.figure img, .tile img { height: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
/* Akzentwoerter: kein Kursiv mehr (die Italic-Schnitte wirkten verschnoerkelt)
   — Akzent kommt jetzt allein ueber die Farbe */
h1 em, h2 em, h3 em { font-style: normal; color: var(--clay); }

::selection { background: var(--clay); color: #fff; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.container-wide { max-width: var(--container-wide); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 400;
  color: var(--clay);
  display: inline-block;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); font-weight: 400; }
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.display { font-size: var(--fs-h1); }

/* Section heading block */
.head { max-width: 48ch; } .head h2 { text-wrap: balance; }
.head--center { margin-inline: auto; text-align: center; }
.head .eyebrow { margin-bottom: 1.2rem; }
.head h2 { margin-bottom: 1.2rem; }

/* Buttons — Pill, Mono-Caps */
.btn {
  --_bg: var(--ink); --_fg: var(--sand-50); --_bd: var(--ink);
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 1em 1.9em;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--_fg); background: var(--_bg); border: 1px solid var(--_bd);
  border-radius: 999px;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; transform: translateY(-2px); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: var(--ink); }
.btn--light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.55); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Text link with underline animation */
.link {
  position: relative; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 4px; display: inline-flex; align-items: center; gap: .55em;
}
.link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.link:hover::after { transform: scaleX(1); }
.link .arrow { transition: transform .4s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* Figures */
.figure { position: relative; overflow: hidden; background: var(--sand-150); border-radius: var(--radius-img); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.figure--zoom:hover img { transform: scale(1.045); }
.figure figcaption { margin-top: .7rem; font-size: .78rem; color: var(--ink-mute); letter-spacing: .01em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
  color: #fff;
}
/* WordPress-Adminbar (eingeloggte Nutzer) nicht ueberdecken */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* WP macht #wpadminbar bei <=600px absolute (scrollt weg) — fixieren, damit
   der Header-Offset stimmt und keine Luecke beim Scrollen entsteht */
@media screen and (max-width: 600px) { .admin-bar #wpadminbar { position: fixed; } }
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--container-wide); }
.site-header.is-scrolled { background: rgba(250,248,243,.92); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
/* Mobiles Vollbild-Menue: ein aktiver backdrop-filter macht den Header zum
   Containing Block fuer position:fixed-Kinder — dann bezieht sich das
   .nav-Overlay nur auf die Header-Hoehe statt aufs Viewport und die Seite
   scheint darunter durch. Bei offenem Menue den Filter daher deaktivieren. */
.site-header.is-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled .btn--light,
.site-header.is-menu-open .btn--light { --_fg: var(--ink); --_bd: var(--ink); }
.site-header.is-scrolled .btn--light:hover,
.site-header.is-menu-open .btn--light:hover { background: var(--ink); color: var(--sand-50); border-color: var(--ink); }
/* Seiten ohne dunkles Hero (z. B. Impressum/Datenschutz): Header von Anfang an dunkel */
.is-light-page .site-header { color: var(--ink); }
.is-light-page .site-header .btn--light { --_fg: var(--ink); --_bd: var(--ink); }
.is-light-page .site-header .btn--light:hover { background: var(--ink); color: var(--sand-50); border-color: var(--ink); }
.brand { font-family: var(--font-display); font-size: 1.32rem; font-weight: 400; letter-spacing: .01em; line-height: 1; }
.brand small { display: block; font-family: var(--font-mono); font-size: .52rem; letter-spacing: .38em; text-transform: uppercase; font-weight: 400; margin-top: .4rem; opacity: .8; }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.6rem); }
.nav li { list-style: none; display: contents; } /* WP-Menues (li-Elemente) transparent einbinden */
.nav a { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; position: relative; padding-block: .4rem; }
.nav a::after { content:""; position:absolute; left:0; bottom:0; height:1px; width:100%; background:currentColor; transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav .btn { padding: .75em 1.5em; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 24px; height: 1.5px; background: currentColor; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; width:24px; height:1.5px; background:currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Sprachumschalter (Plugin) im Header — Desktop rechts nach der Navigation */
@media (min-width: 901px) {
  .site-header .nav { margin-left: auto; }
  .site-header .als { margin-left: clamp(1rem, 2vw, 1.8rem); }
}
.site-header .als { flex: 0 0 auto; }

/* Umschalter schwebend (ohne Pille) — soll sich nicht mit dem Kontakt-Button
   beissen; wirkt wie ein weiterer, dezenter Nav-Eintrag. */
.site-header .als__toggle {
  border: 0;
  background: none;
  padding: .35em .2em;
  opacity: .82;
}
.site-header .als__toggle:hover,
.site-header .als__dd[open] > .als__toggle {
  background: none;
  opacity: 1;
}

/* Kein Hover-Unterstrich auf dem Kontakt-Button (die Linie der Nav-Links
   soll nur bei den Text-Links erscheinen, nicht auf dem Button). */
.nav .btn::after { content: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; z-index: 61; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.8rem;
    background: var(--sand-50); color: var(--ink);
    transform: translateX(100%); transition: transform .5s var(--ease); z-index: 60;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: .95rem; }
  .site-header.is-menu-open { color: var(--ink); }
  /* Umschalter bleibt in der Leiste sichtbar, direkt links vom Menue-Button */
  .site-header .als { order: 1; margin-left: auto; margin-right: .6rem; }
  .site-header .nav-toggle { order: 2; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--header-h); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content:""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,14,10,.42) 0%, rgba(18,14,10,.05) 32%, rgba(18,14,10,.12) 60%, rgba(18,14,10,.72) 100%); }
.hero__inner { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); padding-bottom: clamp(6rem, 11vh, 9rem); }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { font-size: var(--fs-h1); font-weight: 400; line-height: .98; margin: 1.3rem 0 1.6rem; max-width: 13ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { color: var(--sand-200); }
.hero p { max-width: 44ch; font-size: var(--fs-lead); font-weight: 400; color: rgba(255,255,255,.92); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.05rem clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid rgba(255,255,255,.22);
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.hero__meta span { white-space: nowrap; }
@media (max-width: 700px) { .hero__meta span:nth-child(2) { display: none; } }

/* ---------- Marquee — endlos ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.1rem; background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
/* VIER identische Gruppen, Animation um exakt EINE Gruppenbreite (-25%).
   Jede Kopie ist EIN Flex-Item mit eigenem Gap + Trailing-Padding in Gap-Breite,
   dadurch ist der Loop pixelgenau nahtlos — und weil nach der Translation noch
   drei volle Gruppen folgen, laeuft der Text auf keiner Viewport-Breite leer. */
.marquee__group { display: flex; align-items: center; gap: 3.2rem; padding-right: 3.2rem; }
.marquee__group > span { white-space: nowrap; font-family: var(--font-display); font-style: normal; font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.6rem); color: var(--ink-soft); }
.marquee__group > span.mo { font-family: var(--font-mono); font-style: normal; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--clay); }
@keyframes marquee { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Intro / manifest ---------- */
.intro { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (min-width: 860px) { .intro { grid-template-columns: 1.05fr 0.95fr; } }
.intro__text h2 { font-size: var(--fs-h2); margin: 1.2rem 0 1.6rem; }
.intro__text p + p { margin-top: 1.1rem; }
.intro__media { position: relative; margin-bottom: 3.2rem; }
.intro__media .figure { aspect-ratio: 4 / 3; }
/* Badge haengt jetzt unterhalb der Bildkante — verdeckt das Motiv nicht mehr */
.intro__badge {
  position: absolute; top: calc(100% - 1.4rem); bottom: auto; left: -1.5rem; background: var(--surface); border: 1px solid var(--line);
  padding: 1.1rem 1.5rem; box-shadow: var(--shadow-soft); max-width: 230px; border-radius: var(--radius-card);
}
.intro__badge strong { font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; display:block; line-height: 1; color: var(--clay); }
.intro__badge span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em; color: var(--ink-mute); text-transform: uppercase; }
@media (max-width: 860px){
  /* Mobile/Tablet: Badge sauber im Fluss unter dem Bild — nie ueber den Moebeln */
  .intro__media { margin-bottom: 0; }
  .intro__badge { position: static; display: inline-block; margin-top: .9rem; }
}

/* ---------- Process ---------- */
.process__grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: clamp(2.5rem,5vw,4rem); }
@media (min-width: 720px){ .process__grid{ grid-template-columns: repeat(2,1fr);} }
@media (min-width: 1040px){ .process__grid{ grid-template-columns: repeat(4,1fr);} }
.step { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--ink); }
.step__num { font-family: var(--font-mono); font-size: .72rem; color: var(--clay); letter-spacing: .18em; }
.step h3 { font-size: 1.5rem; margin: .7rem 0 .7rem; }
.step p { font-size: .93rem; color: var(--ink-soft); }
.process__images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(2.5rem,5vw,4rem); }
.process__images .figure { aspect-ratio: 3/2; }
@media (max-width: 640px){ .process__images{ grid-template-columns: 1fr; } }

/* ---------- Leistungen: Index-Liste ---------- */
.services { background-color: var(--sand-100); background-image: var(--boho-light); background-size: 80px 80px; }
.svc-list { margin-top: clamp(2.5rem,5vw,4rem); border-top: 1px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: 4.5rem 1fr auto; column-gap: clamp(1rem,3vw,3rem); align-items: baseline;
  padding: clamp(1.4rem,2.5vw,2rem) .25rem;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), padding .35s var(--ease);
}
.svc:hover { background: var(--surface); padding-inline: clamp(.8rem,2vw,1.6rem); }
.svc__no { grid-column: 1; grid-row: 1; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em; color: var(--clay); }
.svc h3 { grid-column: 2; grid-row: 1; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 400; }
.svc p { grid-column: 2; grid-row: 2; max-width: 62ch; color: var(--ink-soft); font-size: .93rem; margin-top: .35rem; }
.svc__arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-family: var(--font-mono); font-size: 1.3rem; color: var(--ink-mute); transition: transform .4s var(--ease), color .4s var(--ease); }
.svc:hover .svc__arrow { transform: translateX(6px); color: var(--clay); }
@media (max-width: 640px){
  .svc { grid-template-columns: 3rem 1fr; }
  .svc__arrow { display: none; }
}

/* ---------- Turnkey feature ---------- */
.feature { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (min-width: 900px){ .feature{ grid-template-columns: 1fr 1fr; } .feature.is-reverse .feature__media{ order: 2; } }
.feature__media .figure { aspect-ratio: 4/3; }
.feature h2 { font-size: var(--fs-h2); margin: 1.2rem 0 1.4rem; }
.feature ul { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .9rem; }
.feature li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.feature li::before { content: ""; position: absolute; left: 0; top: .66em; width: .85rem; height: 1px; background: var(--clay); }

/* ---------- Project teaser ---------- */
.teaser { background-color: var(--ink); background-image: var(--boho-dark); background-size: 80px 80px; color: var(--sand-50); }
.teaser .eyebrow { color: var(--sand-200); }
.teaser__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (min-width: 980px){ .teaser__grid{ grid-template-columns: .85fr 1.15fr; } }
.teaser h2 { font-size: var(--fs-h2); color: #fff; margin: 1.2rem 0 1.3rem; }
.teaser h2 em { color: var(--sand-200); }
.teaser p { color: rgba(255,255,255,.75); margin-bottom: 1.8rem; }
.teaser__meta { display: flex; gap: 2.6rem; margin: 1.9rem 0; flex-wrap: wrap; }
.teaser__meta div span { display:block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-200); margin-bottom: .45rem; }
.teaser__meta div strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.teaser__cluster { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, auto); gap: var(--gap); }
.teaser__cluster .figure { aspect-ratio: 3/2; }
.teaser__cluster .figure:first-child { grid-column: 1 / 3; aspect-ratio: 16/9; }

/* ---------- About / network ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (min-width: 900px){ .about{ grid-template-columns: 1fr 1.1fr; } }
.about__media .figure { aspect-ratio: 4/3; }
.about h2 { font-size: var(--fs-h2); margin: 1.2rem 0 1.4rem; }
/* Handschriftliche Signatur (Mrs Saint Delafield) — Sub-Zeile mittig
   darunter zentriert, wie im Logo-Schriftzug */
.about__name {
  display: inline-block; text-align: center;
  font-family: var(--font-script); font-style: normal; font-weight: 400;
  font-size: clamp(2.9rem, 2rem + 4vw, 5.1rem); line-height: 1.15; letter-spacing: 0;
  color: var(--ink-soft); margin-top: 1.8rem;
}
.about__name-sub {
  display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .34em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: .2rem;
  /* Optischer Ausgleich: der lange t-Schlussschwung der Signatur haengt
     rechts ueber die Textbox hinaus — Sub-Zeile minimal nachfuehren,
     damit sie unter der Ink-Mitte der Signatur steht */
  transform: translateX(5%);
}

/* E-Mail-Adresse in klarer Grotesk (einheitlich mit Fliesstext) */
.contact__info a[href^="mailto:"] strong { font-family: var(--font-sans); font-weight: 500; font-size: 1.05rem; letter-spacing: .01em; overflow-wrap: anywhere; }
.about p + p { margin-top: 1.05rem; }

/* ---------- Über mich: Portrait, Stats, Zitate, Vorteil ---------- */
/* Spezifität > .about__media .figure (4/3), sonst wird das Hochformat quer beschnitten */
.about__media .about__portrait { aspect-ratio: 4/5; max-width: 520px; }
@media (max-width: 899px){ .about__media .about__portrait { margin-inline: auto; } }

.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px){ .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(1.4rem, 2.5vw, 1.9rem) clamp(1.2rem, 2vw, 1.6rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.stat .ic { font-family: var(--font-display); font-size: 1.5rem; color: var(--clay); line-height: 1; display: block; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, .9rem + 1.6vw, 2.4rem); line-height: 1.1; margin: .65rem 0 .3rem; overflow-wrap: break-word; hyphens: auto; }
.stat span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }

.advantage {
  margin-top: var(--gap); background-color: var(--ink); background-image: var(--boho-dark); background-size: 80px 80px; color: var(--sand-50);
  border-radius: var(--radius-card); padding: clamp(2.2rem, 5vw, 3.8rem);
  display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: center;
}
@media (min-width: 900px){ .advantage { grid-template-columns: 1.45fr auto; column-gap: 3rem; } }
.advantage .eyebrow { color: var(--sand-200); }
.advantage h3 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.7rem); color: #fff; margin: .8rem 0 .9rem; }
.advantage h3 em { color: var(--sand-200); }
.advantage p { color: rgba(255,255,255,.75); max-width: 62ch; font-size: .96rem; }
.advantage .btn { justify-self: start; }
@media (min-width: 900px){ .advantage .btn { justify-self: end; } }

/* ---------- Full-bleed atmospheric band ---------- */
.band { position: relative; min-height: 72vh; display: flex; align-items: center; color: #fff; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(90deg, rgba(18,14,10,.62), rgba(18,14,10,.12)); }
.band h2 { font-size: var(--fs-h2); color: #fff; max-width: 17ch; margin-bottom: 1.2rem; }
.band h2 em { color: var(--sand-200); }
.band p { max-width: 42ch; color: rgba(255,255,255,.88); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,4rem); }
@media (min-width: 880px){ .contact__grid{ grid-template-columns: 1fr 1fr; } }
.contact h2 { font-size: var(--fs-h2); margin: 1.2rem 0 1.4rem; }
.contact__info { display: grid; gap: 1.4rem; margin-top: 2rem; }
.contact__info a { border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; display: block; }
.contact__info span { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay); margin-bottom: .45rem; }
.contact__info strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .5rem; }
.field label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* Feste Groesse — kein freies Aufziehen/Zusammenschieben durch den Nutzer */
.field textarea { resize: none; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(167, 93, 59, .14); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }

/* Datenschutz-Zustimmung (Spezifität > .field label, sonst Mono-Caps-Vererbung) */
.field label.check, .check { display: flex; align-items: flex-start; gap: .75rem; font-family: var(--font-sans); font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); line-height: 1.55; cursor: pointer; }
.check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: .12rem; flex: 0 0 auto; accent-color: var(--clay); cursor: pointer; }
.check a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--clay-dark); }

.form__note { font-size: .76rem; color: var(--ink-mute); }

/* ---------- WhatsApp-Button (fix, pulsierend) ---------- */
.wa-btn {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .7); }
.wa-btn svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.wa-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; opacity: .4;
  animation: waPulse 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none; /* Puls-Ring darf die Klickflaeche nicht vergroessern */
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .4; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){ .wa-btn::before { animation: none; opacity: 0; } }
@media (max-width: 640px){ .wa-btn { width: 54px; height: 54px; } .wa-btn svg { width: 27px; height: 27px; } }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--ink); background-image: var(--boho-dark); background-size: 80px 80px; color: var(--sand-150); padding-block: clamp(3.5rem,6vw,5.5rem) 2rem; overflow: hidden; }
.site-footer .container { display: grid; gap: 2.5rem; }
.footer__wordmark {
  font-family: var(--font-display); font-weight: 400; line-height: .92; letter-spacing: -0.03em;
  font-size: clamp(3.2rem, 11vw, 10rem); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: clamp(1.6rem,3.5vw,3rem);
}
.footer__wordmark em { font-style: normal; color: var(--sand-200); }
.footer__top { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px){ .footer__top{ grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand p { color: rgba(255,255,255,.55); margin-top: 1rem; max-width: 34ch; font-size: .9rem; }
.site-footer h3 { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand-200); margin-bottom: 1.2rem; font-weight: 400; font-variation-settings: normal; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.site-footer ul a, .site-footer ul span { font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: rgba(255,255,255,.58); }

/* =====================================================================
   PROJEKTSEITE — Editorial Case Study
   ===================================================================== */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

.pj-label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--clay); display: inline-block; }

/* --- Reveal-Effekte (nur mit JS aktiv, respektiert reduced-motion) --- */
html.js .rv { clip-path: inset(16% 0 0 0); transition: clip-path 1s var(--ease-out); }
html.js .rv .tile { transform: translateY(26px) scale(1.05); transition: transform 1.35s var(--ease-out); }
html.js .rv.is-visible { clip-path: inset(0 0 0 0); }
html.js .rv.is-visible .tile { transform: none; }

html.js .rl .rl-line { display: block; overflow: hidden; }
html.js .rl .rl-line > span { display: block; transform: translateY(115%); transition: transform .95s var(--ease-out); }
html.js .rl .rl-line:nth-child(2) > span { transition-delay: .1s; }
html.js .rl .rl-line:nth-child(3) > span { transition-delay: .2s; }
html.js .rl.is-visible .rl-line > span { transform: none; }

@media (prefers-reduced-motion: reduce){
  html.js .rv, html.js .rv .tile { clip-path: none !important; transform: none !important; transition: none !important; }
  html.js .rl .rl-line > span { transform: none !important; transition: none !important; }
}

/* --- Hero --- */
.pj-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--header-h); color: #fff; isolation: isolate; overflow: hidden; }
.pj-hero__media { position: absolute; inset: 0; z-index: -2; }
.pj-hero__media picture { width: 100%; height: 100%; }
.pj-hero__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.pj-hero::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,14,10,.34), rgba(18,14,10,.06) 42%, rgba(18,14,10,.62)); }
.pj-hero__inner { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: clamp(1.25rem,5vw,3rem); padding-bottom: clamp(5.5rem, 10vh, 8.5rem); will-change: transform, opacity; }
.pj-hero__inner .pj-label { color: rgba(255,255,255,.92); }
.pj-hero h1 { font-size: clamp(2.9rem, 1.4rem + 6.6vw, 8.4rem); font-weight: 400; line-height: .96; letter-spacing: -0.025em; margin: 1.3rem 0 1.2rem; max-width: 13ch; text-shadow: 0 2px 34px rgba(0,0,0,.22); }
.pj-hero h1 em { color: var(--sand-200); }
.pj-hero__sub { font-size: var(--fs-lead); font-weight: 400; color: rgba(255,255,255,.9); max-width: 40ch; }
.pj-hero__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.05rem clamp(1.25rem,5vw,3rem); border-top: 1px solid rgba(255,255,255,.2); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.pj-hero__foot span { white-space: nowrap; }
@media (max-width: 700px){ .pj-hero__foot span:nth-child(2){ display: none; } }

/* --- Editorial Intro --- */
.pj-intro h2 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.4rem); line-height: 1; max-width: 17ch; margin: 1.4rem 0 0; }
.pj-intro__cols { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem,3vw,3rem); margin-top: clamp(2.5rem,5vw,4.5rem); }
.pj-intro__cols p { max-width: 52ch; }
@media (min-width: 860px){ .pj-intro__cols { grid-template-columns: 1.1fr .9fr; margin-left: auto; max-width: 940px; } }

/* --- Story / Konzept --- */
.pj-story__grid { display: grid; gap: clamp(2rem,5vw,5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px){ .pj-story__grid { grid-template-columns: 1.25fr 1fr; } }
.pj-story__text h2 { font-size: var(--fs-h2); margin: 1.2rem 0 1.4rem; }
.pj-story__text p { color: var(--ink-soft); max-width: 46ch; }
.pj-story__text p + p { margin-top: 1.05rem; }

/* --- Horizontal Scroll (Desktop: sticky, Mobile: nativer Swipe) --- */
.pj-hscroll__pin { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 2rem; }
.pj-hscroll__head { padding-inline: clamp(1.25rem,5vw,3rem); margin-bottom: clamp(1.8rem,3.5vh,3.2rem); display: flex; align-items: baseline; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.pj-hscroll__head h2 { font-size: var(--fs-h2); }
/* Swipe-Hinweis (Mobile): macht klar, dass die Reihe seitlich wischbar ist */
.hscroll-hint {
  display: none; align-items: center; gap: .6rem; align-self: center;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); white-space: nowrap;
  transition: opacity .5s var(--ease);
}
.hscroll-hint .arr { display: inline-block; animation: hintNudge 1.6s var(--ease) infinite; }
@keyframes hintNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.hscroll-hint.is-hidden { opacity: 0; }
@media (max-width: 899px){ .hscroll-hint { display: inline-flex; } }
@media (prefers-reduced-motion: reduce){ .hscroll-hint .arr { animation: none; } }
.pj-hscroll__track { display: flex; align-items: flex-start; gap: clamp(2rem, 4vw, 5rem); padding-inline: clamp(1.25rem,5vw,3rem); will-change: transform; }
.pj-hscroll__track .pj-fig { flex: 0 0 auto; }
.hw-60 { width: 60vw; } .hw-52 { width: 52vw; } .hw-38 { width: 38vw; } .hw-32 { width: 32vw; }
@media (max-width: 899px){
  .pj-hscroll { height: auto !important; }
  .pj-hscroll__pin { position: static; min-height: 0; overflow: visible; }
  .pj-hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; transform: none !important; }
  .pj-hscroll__track .pj-fig { scroll-snap-align: center; }
  .hw-60, .hw-52, .hw-38, .hw-32 { width: 78vw; }
  .pj-hscroll__track .r-45 .tile { aspect-ratio: 3/2; }
}
/* Reduced Motion: kein Pinning — Track nativ scrollbar, sonst waeren
   die hinteren Bilder in overflow:hidden unerreichbar */
@media (prefers-reduced-motion: reduce){
  .pj-hscroll { height: auto !important; }
  .pj-hscroll__pin { position: static; min-height: 0; overflow: visible; }
  .pj-hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; transform: none !important; }
  .pj-hscroll__track .pj-fig { scroll-snap-align: center; }
}

/* --- Asymmetrische Kompositionen --- */
.pj-duo { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.pj-duo__stack { display: grid; gap: var(--gap); align-content: start; }
@media (min-width: 860px){
  .pj-duo { grid-template-columns: 1.15fr .85fr; }
  .pj-duo__stack { margin-top: 9%; }
}
.pj-pair { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px){
  .pj-pair { grid-template-columns: 1fr 1fr; }
  .pj-pair--offset .pj-fig:last-child { margin-top: 8%; }
}
/* Hochformat-Paar: auch auf kleinen Screens nebeneinander, sonst werden die
   Portraits ueberhoch. Native 9/16-Ratio -> kein Beschnitt. */
.pj-pair--twin { grid-template-columns: 1fr 1fr; }
.r-916 .tile { aspect-ratio: 9 / 16; }

/* Full-Bleed */
.pj-bleed .tile { aspect-ratio: 21/10; }
@media (max-width: 700px){ .pj-bleed .tile { aspect-ratio: 4/3; } }

/* Overlap-Komposition */
.pj-overlap { display: grid; grid-template-columns: repeat(12, 1fr); }
.pj-overlap .pj-fig:first-child { grid-column: 1 / 9; grid-row: 1; }
.pj-overlap .pj-fig:last-child { grid-column: 7 / 13; grid-row: 1; margin-top: 34%; z-index: 2; box-shadow: var(--shadow-lift); }
@media (max-width: 700px){
  .pj-overlap { display: block; }
  .pj-overlap .pj-fig:last-child { width: 82%; margin: calc(-1 * var(--gap)) 0 0 auto; }
}

/* --- Sticky Storytelling (Private Spaces) --- */
.pj-sticky { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,4vw,4.5rem); }
.pj-sticky__feed { display: grid; gap: clamp(2rem,4vw,4.5rem); }
@media (min-width: 900px){
  .pj-sticky { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .pj-sticky__text { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .admin-bar .pj-sticky__text { top: calc(var(--header-h) + 2.5rem + 32px); }
  .pj-sticky__feed .pj-fig:nth-child(2n) { width: 82%; margin-left: auto; }
  .pj-sticky__feed .pj-fig:nth-child(2n+1) { width: 92%; }
}
.pj-sticky__text h2 { font-size: var(--fs-h2); margin: 1.2rem 0 1.4rem; }
.pj-sticky__text p { color: var(--ink-soft); max-width: 40ch; }
.pj-sticky__text p + p { margin-top: 1.05rem; }

/* --- Materialien --- */
.pj-materials__grid { display: grid; gap: clamp(2.5rem,5vw,5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px){ .pj-materials__grid { grid-template-columns: 1fr 1fr; } }
.pj-materials__grid h2 { font-size: var(--fs-h2); margin: 1.2rem 0; }
.pj-words { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.pj-words li { display: flex; align-items: baseline; gap: 1.4rem; padding: 1.05rem .1rem; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 400; }
.pj-words li:first-child { border-top: 1px solid var(--ink); }

.pj-words .idx { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; color: var(--clay); font-style: normal; }

/* --- Outdoor-Band --- */
.pj-outdoor { position: relative; min-height: 96svh; display: flex; align-items: center; isolation: isolate; overflow: hidden; color: #fff; }
.pj-outdoor__media { position: absolute; inset: -8% 0; z-index: -2; }
.pj-outdoor__media picture { width: 100%; height: 100%; }
.pj-outdoor__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.pj-outdoor::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,14,10,.6), rgba(18,14,10,.12)); }
.pj-outdoor h2 { font-size: clamp(2.6rem, 1.4rem + 5vw, 6.4rem); color: #fff; line-height: .98; max-width: 14ch; margin: 1.2rem 0 1.4rem; }
.pj-outdoor h2 em { color: var(--sand-200); }
.pj-outdoor p { max-width: 44ch; color: rgba(255,255,255,.9); }

/* --- Abschluss / CTA --- */
.pj-cta { text-align: center; padding-block: clamp(6rem, 8vw, 11rem); background-color: var(--bg); background-image: var(--boho-light); background-size: 80px 80px; }
.pj-cta h2 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 6.4rem); line-height: .98; max-width: 15ch; margin: 1.4rem auto 1.6rem; }
.pj-cta p { max-width: 52ch; margin-inline: auto; color: var(--ink-soft); }
.pj-cta__actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.pj-cta__note { margin-top: 2.6rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); }

/* Sektions-Rhythmus */
.pj-section { padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); }
.pj-section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

/* ---------- Figure / Lightbox-Kachel ---------- */
.pj-fig { position: relative; margin: 0; }
.pj-fig figcaption { margin-top: .85rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.tile { display: block; width: 100%; overflow: hidden; background: var(--sand-150); position: relative; cursor: zoom-in; border-radius: var(--radius-img); }
/* Full-Bleed-Bilder bleiben randlos-eckig */
.pj-bleed .tile { border-radius: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.045); }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(18,14,10,0); transition: background .4s var(--ease); }
.tile:hover::after { background: rgba(18,14,10,.08); }
.tile .zoom {
  position: absolute; right: 0; bottom: 0; width: 44px; height: 44px;
  background: var(--sand-50); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.1rem; line-height: 1;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease); z-index: 1;
}
.tile:hover .zoom { opacity: 1; transform: translateY(0); }

/* Seitenverhaeltnisse — Motive werden beschnitten (object-fit), nie verzerrt */
.r-32 .tile { aspect-ratio: 3/2; }
.r-45 .tile { aspect-ratio: 4/5; }
.r-169 .tile { aspect-ratio: 16/9; }
.r-219 .tile { aspect-ratio: 21/9; }
@media (max-width: 700px){ .r-219 .tile { aspect-ratio: 16/9; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(16,12,8,.95); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__stage { max-width: min(92vw, 1400px); max-height: 86vh; position: relative; }
.lightbox__stage img { max-width: 100%; max-height: 86vh; width: auto; height: auto; object-fit: contain; box-shadow: var(--shadow-lift); border-radius: 12px; }
.lightbox__cap { color: rgba(255,255,255,.72); font-size: .84rem; text-align: center; margin-top: .9rem; letter-spacing: .01em; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 999px; z-index: 102;
  background: rgba(255,255,255,.07); color: #fff; display: grid; place-items: center; transition: background .3s var(--ease); border: 1px solid rgba(255,255,255,.18); }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: clamp(.75rem, 3vw, 2.5rem); } .lb-next { right: clamp(.75rem, 3vw, 2.5rem); }
.lb-close { position: fixed; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); transform: none; width: 48px; height: 48px; }
.lb-counter { position: fixed; top: clamp(1.1rem,3vw,2.1rem); left: clamp(1rem,3vw,2.5rem); color: rgba(255,255,255,.7); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; z-index: 102; }
@media (max-width: 640px){ .lb-prev{ left:.5rem;} .lb-next{ right:.5rem;} .lb-btn{ width:46px; height:46px;} }

/* ---------- Reveal on scroll ----------
   Verstecken NUR wenn JS aktiv ist (html.js wird inline im <head> gesetzt) —
   ohne JavaScript bleibt jeder Inhalt sichtbar. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
/* Kacheln: nach abgeschlossenem Reveal Hover-Lift + weiche Transition
   wiederherstellen (die .reveal-Regeln wuerden beides sonst ueberschreiben) */
html.js .stat.reveal.is-visible { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
html.js .stat.reveal.is-visible:hover { transform: translateY(-4px); }
html.js .reveal[data-delay="1"]{ transition-delay: .08s; }
html.js .reveal[data-delay="2"]{ transition-delay: .16s; }
html.js .reveal[data-delay="3"]{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .figure img, .tile img { transition: none; }
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal-hero { padding: calc(var(--header-h) + clamp(3.5rem, 6vw, 6rem)) 0 clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 6rem); line-height: .98; max-width: 14ch; margin-top: 1.2rem; }
.legal-hero h1 em { color: var(--clay); }
.legal-hero .lead { margin-top: 1.4rem; max-width: 54ch; }
.legal { padding-block: clamp(3rem, 5vw, 5.5rem) var(--section-y); }
.legal__inner { max-width: 760px; }
.legal section { padding-block: clamp(1.8rem, 3vw, 2.6rem); border-bottom: 1px solid var(--line); }
.legal section:last-child { border-bottom: none; }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); margin-bottom: 1rem; }
.legal h3 { font-size: 1.12rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; margin: 1.4rem 0 .5rem; }
.legal p { color: var(--ink-soft); font-size: .96rem; }
.legal p + p { margin-top: .8rem; }
.legal ul { margin: .8rem 0 0 1.1rem; padding: 0; color: var(--ink-soft); font-size: .96rem; display: grid; gap: .45rem; }
.legal a { color: var(--clay); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); overflow-wrap: anywhere; }
.legal a:hover { border-color: var(--clay); }
.legal .legal__num { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); display: block; margin-bottom: .55rem; }
.legal-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.4rem, 2.5vw, 2rem); margin-top: 1.2rem; border-radius: var(--radius-card); }
.legal-card p { color: var(--ink); }
.legal-card .mono { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: .3rem; }
.legal-card + .legal-card { margin-top: var(--gap); }
.legal__meta { margin-top: clamp(2rem, 4vw, 3rem); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }

/* Generische Editor-Inhalte (z. B. von Plugins wie Real Cookie Banner
   automatisch angelegte Seiten) — .legal h2/p/ul/a gelten bereits ueberall
   in .legal; hier nur Rhythmus, Listen-Marker, Tabellen und Bild-Radius
   ergaenzen, ohne den Plugin-Inhalt selbst anzufassen. */
.legal .entry-content h2 { margin-top: 2.8rem; padding-top: 1.9rem; border-top: 1px solid var(--line); }
.legal .entry-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal .entry-content ul, .legal .entry-content ol { list-style-position: outside; }
.legal .entry-content ul::marker, .legal .entry-content ol::marker { color: var(--clay); }
.legal .entry-content ol { margin: .8rem 0 0 1.1rem; padding: 0; color: var(--ink-soft); font-size: .96rem; display: grid; gap: .45rem; }
.legal .entry-content strong, .legal .entry-content b { color: var(--ink); font-weight: 600; }
.legal .entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-img); margin: 1rem 0; }
.legal .entry-content table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  width: 100%; max-width: 100%; margin: 1.4rem 0;
  font-size: .8rem; border: 1px solid var(--line); border-radius: 12px;
}
/* thead/tbody als eigenes Tabellenmodell: die aeussere table darf display:block
   fuer den Scroll haben, die Spalten sollen sich aber sauber verteilen; min-width
   erzwingt horizontales Scrollen statt gequetschter/ueberhoher Zeilen */
.legal .entry-content table thead,
.legal .entry-content table tbody { display: table; width: 100%; min-width: 780px; table-layout: auto; }
.legal .entry-content table th, .legal .entry-content table td { width: auto; }
.legal .entry-content thead th {
  text-align: left; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); padding: .7rem .85rem; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.legal .entry-content tbody td { padding: .75rem .85rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; line-height: 1.45; }
.legal .entry-content tbody tr:last-child td { border-bottom: none; }
.legal .entry-content tbody tr:nth-child(even) { background: var(--sand-100); }

/* ---------- FAQ (SEO/GEO: natives details/summary, Inhalt immer im DOM) ---------- */
.faq { background-color: var(--sand-100); background-image: var(--boho-light); background-size: 80px 80px; }
.faq__list { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--ink); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; column-gap: clamp(.8rem, 2vw, 1.6rem);
  padding: clamp(1.2rem, 2.2vw, 1.7rem) .2rem;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem); line-height: 1.25;
  transition: color .3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--clay-dark); }
.faq-item summary .no { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .15em; color: var(--clay); }
.faq-item summary .tgl {
  font-family: var(--font-mono); font-size: 1.25rem; line-height: 1; color: var(--ink-mute);
  transition: transform .4s var(--ease), color .3s var(--ease); align-self: center;
}
.faq-item[open] summary .tgl { transform: rotate(45deg); color: var(--clay); }
.faq-item .faq-a { padding: 0 .2rem clamp(1.4rem, 2.5vw, 1.9rem) calc(3rem + clamp(.8rem, 2vw, 1.6rem)); }
.faq-item .faq-a p { color: var(--ink-soft); max-width: 62ch; font-size: .97rem; }
.faq-item .faq-a p + p { margin-top: .7rem; }
html.js .faq-item[open] .faq-a { animation: faqIn .45s var(--ease-out) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ html.js .faq-item[open] .faq-a { animation: none; } }
@media (max-width: 640px){
  .faq-item summary { grid-template-columns: 1fr auto; }
  .faq-item summary .no { display: none; }
  .faq-item .faq-a { padding-left: .2rem; }
}

/* ---------- Fokus-Indikatoren (2.4.7) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px;
}
.tile:focus-visible { border-radius: var(--radius-img); }
.site-footer a:focus-visible, .advantage a:focus-visible, .teaser a:focus-visible,
.hero a:focus-visible, .pj-hero a:focus-visible, .pj-outdoor a:focus-visible,
.lightbox button:focus-visible { outline-color: var(--sand-200); }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color:#fff; padding: .8rem 1.2rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Hero-Header-Kollision generell verhindern ----------
   Die Heroes sind display:flex; flex-direction:column; justify-content:flex-end
   mit padding-top:var(--header-h). Dadurch sitzt der Inhalt bei genug Hoehe
   unten, waechst der Inhalt aber ueber die Viewport-Hoehe (grosse Headline,
   kleiner/kurzer Bildschirm, Landscape), startet er dank padding-top IMMER
   unter dem fixen Header statt sich mit dem Logo zu ueberlagern.
   Eingeloggte WP-Nutzer: Header ist um die Adminbar nach unten versetzt —
   padding-top entsprechend erhoehen. */
.admin-bar .hero, .admin-bar .pj-hero, .admin-bar .project-hero {
  padding-top: calc(var(--header-h) + 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar .hero, .admin-bar .pj-hero, .admin-bar .project-hero {
    padding-top: calc(var(--header-h) + 46px);
  }
}

/* Kurze Viewport-Hoehe (Landscape-Handys): kein erzwungenes 100svh,
   kompaktere Headline, dekorative Bodenleisten ausblenden */
@media (max-height: 640px) {
  .hero, .pj-hero, .project-hero, .pj-outdoor, .band { min-height: auto; }
  .hero__inner, .pj-hero__inner, .project-hero__inner {
    padding-bottom: clamp(2rem, 6vh, 3rem);
  }
  .hero h1, .pj-hero h1, .project-hero h1 {
    font-size: clamp(2rem, 1.4rem + 3.4vw, 3.4rem);
    margin: .7rem 0 1rem;
  }
  .hero p, .pj-hero__sub { margin-bottom: 1.4rem; }
  .hero__meta, .pj-hero__foot { display: none; }
  .pj-outdoor, .band { align-items: center; padding-block: clamp(3rem, 10vh, 5rem); }
  .pj-outdoor__media { inset: 0; }
}

/* Full-Bleed-Bilder nie breiter als der sichtbare Bereich (kein Rest-Overflow) */
.pj-bleed { max-width: 100%; overflow: hidden; }
.pj-bleed .tile { max-width: 100%; }
