/* =============================================================
   Thorsten Wachten — Hauptstylesheet
   Basis: Referenz-Design (backup/Ramona_Webseite_Thorsten)
   Stand: 2026-04-01
   Keine externen Ressourcen — DSGVO-konform
   ============================================================= */

/* -------------------------------------------------------------
   1. CUSTOM PROPERTIES
   ------------------------------------------------------------- */

:root {
  /* Primärfarben */
  --black:       #080807;
  --warm-white:  #faf9f6;
  --off-white:   #f4f2ee;
  --cool-gray:   #f1f3f0;

  /* Akzentfarben */
  --gold:        #7a5f31;
  --gold-light:  #b8955a;
  --gold-accent: #c4a265;

  /* Neutrale */
  --mid-gray:    #6b6860;
  --light-gray:  #e8e5e0;
  --dark-mid:    #1a1917;

  /* Erweiterte Neutrale */
  --white:       #ffffff;
  --text-secondary: #4a4845;
  --near-black:  #0a0a0a;

  /* Status-Farben */
  --status-green:       #4ade80;
  --status-green-dark:  #22c55e;
  --status-red:         #f87171;
  --status-red-dark:    #ef4444;
  --status-red-muted:   #cc4444;
  --status-yellow:      #eab308;
  --status-yellow-dark: #a16207;

  /* Error-Farben */
  --error-bg:     #fef2f2;
  --error-text:   #991b1b;
  --error-border: #fecaca;
  --error-toast:  #dc2626;

  /* Erweiterter Text */
  --text-body-dark: #3a3834;

  /* Bild-Platzhalter */
  --img-placeholder: #1a1a1a;

  /* Hero-Hintergruende (Gradients) */
  --hero-bg-warm-dark:  #1a1610;
  --hero-bg-black-warm: #0d0c0a;
  --hero-bg-black-cool: #0a0f14;
  --hero-photo-dark-1:  #111418;
  --hero-photo-mid:     #1c2228;
  --hero-photo-dark-2:  #151a1f;
  --referenz-bg-dark-1: #1a1c20;
  --referenz-bg-dark-2: #10121a;

  /* Typografie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Typografie-Scale (fluid) */
  --text-h1:      clamp(2.5rem, 5vw, 4rem);
  --text-h2:      clamp(1.75rem, 3.5vw, 2.5rem);
  --text-h3:      clamp(1.25rem, 2vw, 1.6rem);
  --text-body:    1rem;
  --text-small:   0.875rem;
  --text-caption: 0.75rem;

  /* Abstände */
  --section-pad:  clamp(80px, 10vw, 140px);
  --container-pad: clamp(24px, 6vw, 80px);

  /* Animationen */
  --ease-snap:    cubic-bezier(0.77, 0, 0.18, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);

  --duration-fast:  150ms;
  --duration-base:  300ms;
  --duration-slow:  600ms;
  --duration-xslow: 900ms;

  /* Custom Cursor */
  --cursor-dot-size:  10px;
  --cursor-ring-size: 36px;
  --cursor-color:     var(--gold);

  /* Marquee */
  --marquee-duration: 40s;

  /* Breakpoints als Referenz (keine echten CSS-Variablen fuer Media Queries) */
  /* --bp-sm: 480px | --bp-md: 768px | --bp-lg: 1024px | --bp-xl: 1280px | --bp-2xl: 1600px */
}


/* -------------------------------------------------------------
   2. WEBFONTS (@font-face)
   ------------------------------------------------------------- */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-normal.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-italic.woff2') format('woff2');
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}


/* -------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* text-size-adjust entfernt — Firefox warnt, iOS Safari 15+ braucht es nicht */
  background-color: var(--warm-white);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

/* Kein border-radius auf Bildern — architektonischer Look */
img {
  border-radius: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Scroll-Margin bei Sticky Header */
[id] {
  scroll-margin-top: 80px;
}


/* -------------------------------------------------------------
   4. SKIP-LINK (Barrierefreiheit)
   ------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  transition: top var(--duration-base) ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--warm-white);
  outline-offset: 2px;
}


/* -------------------------------------------------------------
   5. FOKUS-STYLES (global)
   ------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Nur sichtbar bei Tastaturbedienung, nicht bei Mausklick */
:focus:not(:focus-visible) {
  outline: none;
}


/* -------------------------------------------------------------
   6. NAVIGATION
   ------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 0 var(--container-pad);
  background: rgba(8, 8, 7, 0.35);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--duration-base) ease, border-color var(--duration-base) ease;
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.6);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 72px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Desktop-Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-white);
  transition: color var(--duration-fast) ease;
}

.nav.scrolled .nav-links a {
  color: rgba(0,0,0,0.45);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--warm-white);
}

.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a[aria-current="page"] {
  color: var(--black);
}

/* CTA-Button in Navigation */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--warm-white) !important;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  transition: background var(--duration-fast) ease;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--warm-white) !important;
}

/* Hamburger-Button (Mobile) — 3 Spans, X-Morph bei geöffnetem Menü */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

/* Im scrolled-Zustand dunkel */
.nav.scrolled .hamburger span {
  background: var(--black);
}

/* X-Morph wenn Menü offen (aria-expanded=true) */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay-Menü */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) ease;
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--warm-white);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) ease;
}

.nav-mobile-overlay a:hover {
  color: var(--gold);
}

.nav-mobile-tel {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--mid-gray) !important;
  letter-spacing: 0.1em;
  margin-top: 1rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}


/* -------------------------------------------------------------
   7. CUSTOM CURSOR (Desktop only)
   ------------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto;
  }
}

.cursor {
  position: fixed;
  width: var(--cursor-dot-size);
  height: var(--cursor-dot-size);
  background: var(--cursor-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: transform var(--duration-fast) ease,
              opacity 0.2s ease;

}

.cursor-ring {
  position: fixed;
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  border: 1px solid var(--cursor-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease,
              opacity 0.2s ease;
  opacity: 0.6;

}

/* Ring skaliert bei Hover auf Links/Buttons */
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring,
body:has([role="button"]:hover) .cursor-ring {
  transform: translate(-50%, -50%) scale(1.8);
  opacity: 0.3;
}

/* Klick-Feedback */
body:has(a:active) .cursor,
body:has(button:active) .cursor {
  transform: translate(-50%, -50%) scale(0.7);
}


/* -------------------------------------------------------------
   8. BUTTONS
   ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Primär-Button */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transition: background 0.2s, transform 0.2s;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--black);
  transform: translateY(-1px);
}

/* Sekundär-Button (Referenz: schwarz/transparent auf hellem Hintergrund) */
.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--warm-white);
}

/* Hell-Variante / Outline (auf dunklem Hintergrund) — Referenz: btn-outline */
.btn-light,
.btn-outline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s, color 0.2s;
}

.btn-light:hover,
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: transparent;
}

/* Touch-Targets: mindestens 44×44px */
.btn {
  min-height: 44px;
}

/* -------------------------------------------------------------
   10. SECTION-COMMONS (Shared — section padding, labels, titles, reveal)
   ------------------------------------------------------------- */

section { padding: var(--section-pad) clamp(24px, 6vw, 80px); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; font-weight: 300; }
.section-intro {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 60px;
}

/* -------------------------------------------------------------
   15. FOOTER (Sektion 7)
   ------------------------------------------------------------- */

.site-footer {
  background: var(--black);
  padding: clamp(48px, 7vw, 80px) var(--container-pad) clamp(32px, 4vw, 48px);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Footer-Logo */
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-logo strong {
  font-weight: 600;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  color: rgba(250, 249, 246, 0.45);
  line-height: 1.5;
}

/* Footer-Navigation */
.footer-nav-label,
.footer-contact-label {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.3);
  margin-bottom: 1.25rem;
}

.footer-nav-list li + li,
.footer-contact-list li + li {
  margin-top: 0.65rem;
}

.footer-nav-list a,
.footer-contact-list a {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  /* WCAG: rgba(250, 249, 246, 0.55) auf --black = ~6.2:1 — PASS */
  color: rgba(250, 249, 246, 0.55);
  transition: color var(--duration-fast) ease;
}

.footer-nav-list a:hover,
.footer-contact-list a:hover {
  color: var(--warm-white);
}

/* Footer-Trennlinie */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(250, 249, 246, 0.08);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* Footer-Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 300;
  color: rgba(250, 249, 246, 0.3);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 300;
  color: rgba(250, 249, 246, 0.3);
  transition: color var(--duration-fast) ease;
}

.footer-legal-links a:hover {
  color: rgba(250, 249, 246, 0.7);
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -------------------------------------------------------------
   15c. FOOTER-ERGAENZUNGEN (Kontaktblock + Logo span)
   ------------------------------------------------------------- */

.footer-logo span {
  color: var(--gold);
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.footer-contact-block a,
.footer-contact-block span {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  color: rgba(250, 249, 246, 0.5);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-contact-block a::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  transition: width var(--duration-fast) ease;
}

.footer-contact-block a:hover {
  color: var(--warm-white);
}

.footer-contact-block a:hover::before {
  width: 28px;
}

/* Leerer Block (alle Felder ungefuellt): kein Leer-Abstand */
.footer-contact-block:empty {
  display: none;
}

/* -------------------------------------------------------------
   16. FLOATING CTA (Desktop, ab 300px Scroll)
   ------------------------------------------------------------- */

.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  background: var(--gold);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  text-align: right;
  box-shadow: 0 4px 24px rgba(8, 8, 7, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--duration-base) ease,
              transform var(--duration-base) ease;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.floating-cta-text {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--warm-white);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.floating-cta-phone {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 300;
  color: rgba(250, 249, 246, 0.75);
  letter-spacing: 0.08em;
}

.floating-cta:hover {
  background: var(--gold-light);
}

.floating-cta:hover .floating-cta-text,
.floating-cta:hover .floating-cta-phone {
  color: var(--black);
}

/* Nur auf Desktop */
@media (max-width: 1024px) {
  .floating-cta {
    display: none;
  }
}

/* prefers-reduced-motion: direkt sichtbar, kein Delay */
@media (prefers-reduced-motion: reduce) {
  .floating-cta {
    transition: none;
    transform: none;
  }
}


/* -------------------------------------------------------------
   17. SCROLL-REVEAL (.reveal)
   ------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gestaffelt */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------------------------------------------------
   19. HILFKLASSEN / UTILITIES
   ------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Touch-Targets: mindestens 44×44px */
a,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Ausnahmen fuer Touch-Target-Regel */
.nav-logo {
  display: flex;
  min-height: unset;
}
.nav-links a:not(.btn),
.footer-logo,
.footer-nav-list a,
.footer-contact-list a,
.footer-legal-links a {
  display: inline;
  min-height: unset;
}
.featured-carousel__dot {
  display: block;
  min-height: unset;
}


/* -------------------------------------------------------------
   PORTFOLIO-GRID + PORTFOLIO-ITEM (Startseite Teaser — SHARED)
   ------------------------------------------------------------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 6px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--dark-mid);
  cursor: pointer;
}
.portfolio-item:nth-child(1) { grid-column: 1/8;  grid-row: 1/7; }
.portfolio-item:nth-child(2) { grid-column: 8/13; grid-row: 1/5; }
.portfolio-item:nth-child(3) { grid-column: 8/11; grid-row: 5/9; }
.portfolio-item:nth-child(4) { grid-column: 11/13; grid-row: 5/9; }
.portfolio-item:nth-child(5) { grid-column: 1/5;  grid-row: 7/12; }
.portfolio-item:nth-child(6) { grid-column: 5/9;  grid-row: 7/11; }
.portfolio-item:nth-child(7) { grid-column: 9/13; grid-row: 9/13; }
.portfolio-item:nth-child(8) { grid-column: 5/9;  grid-row: 11/13; }
.portfolio-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.portfolio-item:nth-child(1) img { object-position: center top; }
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(8,8,7,0.85) 0%, transparent 100%);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transform: translateY(4px);
  transition: transform 0.3s, color 0.3s;
}
.portfolio-item:hover .portfolio-label { transform: translateY(0); color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  .portfolio-grid { display: flex; flex-direction: column; }
  .portfolio-item { aspect-ratio: 4/3; }
}


/* -------------------------------------------------------------
   ACCESSIBILITY UTILITIES
   ------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ═══════════════════════════════════════════════════════════════
   PAGE-HERO — Unterseiten-Einstieg (Leistungen, Kontakt, etc.)
   ═══════════════════════════════════════════════════════════════ */

.page-hero {
  background: var(--black);
  padding: 140px clamp(24px, 6vw, 80px) 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(184, 149, 90, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.page-hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: block;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.page-hero-sub {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  max-width: 640px;
  line-height: 1.75;
  margin-top: 28px;
}




/* -------------------------------------------------------------
   CSP: Inline-Style-Migration (ehemals style= Attribute)
   ------------------------------------------------------------- */

/* 404-Seite */
.pg-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.pg-404__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1rem;
}

.pg-404__text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--mid-gray);
  margin-bottom: 2rem;
}

/* Header: Mobile-Nav-Liste */
.nav-mobile-list {
  list-style: none;
  text-align: center;
}
