/* ============================================================
   MICHAEL FLIESENLEGER – styles.css
   Organized: Variables → Reset → Layout → Components → Animations → Responsive
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --bg:       #0A0F1C;
  --surface:  rgba(255,255,255,0.06);
  --surface2: rgba(255,255,255,0.09);
  --text:     rgba(255,255,255,0.92);
  --muted:    rgba(255,255,255,0.68);
  --gold:     #C9A35B;
  --gold-dim: rgba(201,163,91,0.18);
  --gold-glow:rgba(201,163,91,0.28);
  --border:   rgba(255,255,255,0.14);
  --border-strong: rgba(255,255,255,0.20);
  --error:    #e05c5c;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Layout */
  --nav-h: 72px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --container: min(1180px, 90vw);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-base: 0.35s var(--ease);
  --t-slow: 0.55s var(--ease);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg); /* base dark — canvas sits above this */
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.625rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

p   { color: var(--muted); line-height: 1.75; }
em  { font-style: italic; color: var(--gold); }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5.5rem, 9vw, 7.5rem);
  position: relative;
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  max-width: 600px;
  margin-inline: auto;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.3em 0.9em;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* Links */
.link-gold {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--t-fast);
}
.link-gold:hover { opacity: 0.75; }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68em 1.6em;
  border-radius: var(--radius-s);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: #0a0804;
  font-weight: 600;
  border: 1px solid var(--gold);
}
.btn--gold:hover {
  background: #dbb86a;
  border-color: #dbb86a;
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-1px);
}
.btn--gold:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 14px var(--gold-dim);
}

.btn--full {
  align-self: center;
  min-width: 200px;
  max-width: 100%;
  justify-content: center;
  padding: 0.68em 1.8em;
}

/* Arrow icon – constrain size + slide-right on hover */
.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.26s var(--ease);
}
.btn:hover svg,
.btn:focus-visible svg {
  transform: translateX(5px);
}

/* Idle glow pulse on the gold submit button */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,163,91,0); }
  50%       { box-shadow: 0 0 22px 4px rgba(201,163,91,0.32); }
}
.btn--full.btn--gold {
  animation: goldPulse 2.8s ease-in-out infinite;
}
.btn--full.btn--gold:hover {
  animation: none; /* hover glow takes over */
}

/* ============================================================
   6. IMAGE PLACEHOLDERS (remove when adding real images)
   ============================================================ */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--ph, #141820);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.72rem;
  line-height: 1.5;
  font-family: var(--font-sans);
  border: 1px dashed rgba(255,255,255,0.1);
  user-select: none;
}

/* ============================================================
   7. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding-block: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base),
              backdrop-filter var(--t-base);
}

.navbar.scrolled {
  background: rgba(10,15,28,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.navbar__logo:hover { opacity: 0.8; }

.navbar__hex {
  width: 28px;
  height: 28px;
  background: var(--gold);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  flex-shrink: 0;
}

.navbar__brand {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
}

/* Nav links */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.navbar__link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.4em 0.7em;
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar__link:hover,
.navbar__link.active {
  color: #fff;
  background: var(--surface);
}
.navbar__link.active { color: var(--gold); }

/* CTA button in nav */
.navbar__cta {
  padding: 0.55em 1.3em;
  font-size: 0.82rem;
}

/* Burger button (mobile) */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 950;
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.navbar__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__burger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Subtle vignette for depth — no directional bias */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(10,15,28,0.32) 100%),
    linear-gradient(to bottom, rgba(10,15,28,0.12) 0%, transparent 18%, transparent 82%, rgba(10,15,28,0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Centered hero content column */
.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

/* Title — subtle upward reveal */
.hero__title {
  margin-bottom: 1.4rem;
  color: #fff;
  animation: heroTitleReveal 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.12s;
}

@keyframes heroTitleReveal {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
}

/* Trust row – centered pill badges */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.trust-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52em 1.1em 0.52em 0.85em;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.trust-item:hover {
  border-color: rgba(201,163,91,0.42);
  background: rgba(201,163,91,0.06);
}

.trust-item strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.trust-item span {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.hero__ctas .btn {
  min-height: 44px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ============================================================
   9. LEISTUNGEN (Services)
   ============================================================ */
.leistungen { background: transparent; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--t-base), transform var(--t-base),
              background var(--t-base), box-shadow var(--t-base);
  cursor: default;
}

.service-card:hover {
  border-color: rgba(201,163,91,0.38);
  background: var(--surface2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,163,91,0.10);
}

.service-card__icon {
  width: 46px;
  height: 46px;
  background: var(--gold-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform var(--t-base);
}
.service-card:hover .service-card__icon {
  transform: rotate(6deg);
}
.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  color: var(--text);
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   10. PORTFOLIO
   ============================================================ */
.portfolio { background: transparent; }

/* Filter buttons */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.45em 1.2em;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast),
              background var(--t-fast);
}
.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* Before / After slider */
.before-after {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 3rem;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  cursor: col-resize;
  border: 1px solid var(--border);
  user-select: none;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}

/* After side is clipped to left half; JS updates this */
.ba-after {
  width: 50%;
  overflow: hidden;
}
.ba-after .img-placeholder {
  width: calc(860px * 0.95); /* same width as container */
  max-width: 860px;
  min-width: 100%;
}

.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 5;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 0.3em 0.8em;
  border-radius: 100px;
  pointer-events: none;
}
.ba-label--before { left: 1rem; }
.ba-label--after  { right: 1rem; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 6;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}

.ba-handle::before {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.ba-handle svg {
  position: relative;
  z-index: 1;
  width: 22px;
  color: #111;
  stroke-width: 2.5;
}

/* Portfolio grid — 4-column, uniform card sizes */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.p-item {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  transition: transform 0.38s var(--ease),
              box-shadow 0.38s var(--ease),
              border-color 0.38s var(--ease);
}

.p-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(201,163,91,0.16), 0 4px 18px rgba(0,0,0,0.38);
  border-color: rgba(201,163,91,0.42);
}

.p-item__img {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}

.p-item:hover .p-item__img {
  transform: scale(1.04);
}

.p-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,14,0.95) 0%, rgba(5,8,14,0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* bottom padding leaves clear space for the "Projekt ansehen" pill */
  padding: 0.85rem 0.85rem 3.1rem;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity var(--t-base);
}

.p-item:hover .p-item__overlay {
  opacity: 1;
}

/* "Projekt ansehen" pill — injected by JS, shown on hover */
.p-item__view-hint {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(10,15,28,0.75);
  border: 1px solid rgba(201,163,91,0.50);
  color: rgba(255,255,255,0.93);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  padding: 0.34em 1em;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  backdrop-filter: blur(6px);
  z-index: 6;
  white-space: nowrap;
}
.p-item:hover .p-item__view-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.p-item__cat {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.p-item__title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.25;
  color: #fff;
}

/* Button hidden — whole card is clickable; "Projekt ansehen" pill is the CTA */
.p-item__btn {
  display: none;
}

/* Hidden portfolio items (filtered out) */
.p-item.hidden,
.ba-wrapper.hidden,
.inspiration-header.hidden {
  display: none;
}

/* Before/After wrapper — full-width siblings above the grid */
.ba-wrapper {
  margin-bottom: 1.25rem;
}

.ba-wrapper__label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Inspiration section header (spans full grid width) */
.inspiration-header {
  grid-column: 1 / -1;
  padding: 1.8rem 0 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.inspiration-header .section-label {
  display: block;
  margin-bottom: 0.5rem;
}

.inspiration-header p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 600px;
}

/* Wide modifier reset — all cards are equal size in 4-col grid */
.p-item--wide {
  grid-column: span 1;
}

/* Badge on inspiration cards (always visible, top-right corner) */
.p-item__insp-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 4;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.62);
  padding: 0.25em 0.65em;
  border-radius: 100px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* Real image inside modal */
.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   11. ABLAUF (Process)
   ============================================================ */
.ablauf {
  background: linear-gradient(180deg, transparent 0%, rgba(201,163,91,0.03) 50%, transparent 100%);
}

.process-wrap {
  position: relative;
  margin-top: 1rem;
}

/* The animated connecting line */
.process-line-track {
  position: absolute;
  top: 28px; /* Align with center of number badges */
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  z-index: 0;
}

.process-line {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--gold), rgba(201,163,91,0.3));
  transition: width 1.4s var(--ease);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--t-base), box-shadow var(--t-base);
}

.process-step:hover .process-step__num {
  background: var(--gold-dim);
  box-shadow: 0 0 18px var(--gold-glow);
}

.process-step__body h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.process-step__body p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================================
   12. PREISE (Pricing)
   ============================================================ */
/* .preise — no section-level overrides needed */

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 2rem 1.6rem;
  position: relative;
  transition: border-color var(--t-base), transform var(--t-base);
}

.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.price-card--featured {
  border-color: rgba(201,163,91,0.4);
  background: rgba(201,163,91,0.06);
}
.price-card--featured:hover {
  border-color: var(--gold);
}

.price-card__badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0a0804;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.9em;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.price-card__range {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.price-unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.price-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.price-card__list li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.price-card__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.preise-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================
   13. BEWERTUNGEN (Reviews)
   ============================================================ */
.bewertungen {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 50%, transparent);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--t-base);
}
.review-card:hover {
  border-color: var(--border-strong);
}

.review-card__stars {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.review-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  flex: 1;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.review-card footer strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
}

.review-card footer span {
  font-size: 0.78rem;
  color: var(--muted);
}

.reviews-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ============================================================
   14. FAQ
   ============================================================ */
.faq {
  background: transparent;
}

.faq-inner {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t-base);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: color var(--t-fast);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item[open] .faq-item__q { color: var(--gold); }

/* Caret arrow */
.faq-caret {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-base);
}

.faq-caret::before,
.faq-caret::after {
  content: '';
  position: absolute;
  background: var(--muted);
  border-radius: 2px;
  transition: background var(--t-fast);
}
.faq-caret::before { width: 8px; height: 1.5px; }
.faq-caret::after  { width: 1.5px; height: 8px; }

.faq-item[open] .faq-caret {
  transform: rotate(45deg);
  background: var(--gold-dim);
  border-color: var(--gold);
}
.faq-item[open] .faq-caret::before,
.faq-item[open] .faq-caret::after {
  background: var(--gold);
}

.faq-item__a {
  overflow: hidden;
}

.faq-item__a p {
  padding: 0 1.4rem 1.4rem;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ============================================================
   15. KONTAKT (Contact)
   ============================================================ */
.kontakt {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,163,91,0.06) 0%, transparent 70%);
}

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.kontakt-info { padding-top: 0.5rem; }

.kontakt-info .section-label { display: block; margin-bottom: 0.5rem; }

.kontakt-info h2 { margin-bottom: 0.75rem; }

.kontakt-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2.2rem;
  line-height: 1.65;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.kontakt-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--t-fast);
}
.kontakt-link:hover { color: var(--gold); }
.kontakt-link--static { pointer-events: none; }
.kontakt-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.7;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.75em 1em;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,163,91,0.04);
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' stroke='rgba(255,255,255,0.4)' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 18px;
  padding-right: 2.5em;
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* File input */
.file-input {
  padding: 0.6em 0.9em;
  cursor: pointer;
  font-size: 0.85rem;
}
.file-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* GDPR checkbox row */
.form-group--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 1rem;
}

.form-group--check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  margin-top: 2px;
  cursor: pointer;
}

.form-group--check label {
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.6;
}

/* Form field error state */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-hex {
  width: 24px;
  height: 24px;
  background: var(--gold);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  flex-shrink: 0;
  opacity: 0.85;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.footer-brand span {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: center;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--text); }

.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--gold); }

.footer-copy {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
}
.footer-copy p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

/* ============================================================
   17. MODAL (Lightbox)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,8,14,0.88);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: #0d1119;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  animation: modalIn 0.32s var(--ease) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* Close animation — added by JS before hiding */
.modal-content--out {
  animation: modalOut 0.22s var(--ease) both !important;
}
@keyframes modalOut {
  from { opacity: 1; transform: scale(1)    translateY(0);   }
  to   { opacity: 0; transform: scale(0.95) translateY(8px); }
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--t-fast);
}
.modal-close:hover { background: rgba(255,255,255,0.16); }
.modal-close svg { width: 16px; color: var(--text); }

/* Prev / Next navigation arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(10,15,28,0.65);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--t-fast), border-color var(--t-fast), transform 0.22s var(--ease);
  backdrop-filter: blur(8px);
}
.modal-nav:hover {
  background: rgba(201,163,91,0.18);
  border-color: rgba(201,163,91,0.48);
  transform: translateY(-50%) scale(1.08);
}
.modal-nav svg { width: 18px; color: #fff; }
.modal-nav--prev { left:  0.85rem; }
.modal-nav--next { right: 0.85rem; }
.modal-nav[hidden] { display: none; }

/* Image wrapper */
.modal-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.modal-img-ph {
  height: 100%;
  min-height: 380px;
}

/* Image transitions when navigating between items */
.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes imgSlideRight {
  from { opacity: 0; transform: translateX(28px) scale(1.02); }
  to   { opacity: 1; transform: translateX(0)    scale(1);    }
}
@keyframes imgSlideLeft {
  from { opacity: 0; transform: translateX(-28px) scale(1.02); }
  to   { opacity: 1; transform: translateX(0)     scale(1);   }
}
.img-slide-right { animation: imgSlideRight 0.28s var(--ease) both; }
.img-slide-left  { animation: imgSlideLeft  0.28s var(--ease) both; }

.modal-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}

.modal-cat {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-info h3 {
  font-size: 1.5rem;
  color: var(--text);
}

.modal-info p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.modal-tag {
  padding: 0.25em 0.7em;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--muted);
}

.modal-cta { margin-top: auto; align-self: flex-start; }

/* ============================================================
   18. TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  background: #111820;
  border: 1px solid rgba(201,163,91,0.5);
  border-radius: var(--radius-m);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  max-width: 380px;
  animation: toastIn 0.4s var(--ease);
}

.toast[hidden] { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toast svg {
  width: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.toast span {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

/* ============================================================
   19. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers (applied by JS) – 75 ms steps */
.reveal-up[data-delay="1"] { transition-delay: 0.075s; }
.reveal-up[data-delay="2"] { transition-delay: 0.150s; }
.reveal-up[data-delay="3"] { transition-delay: 0.225s; }
.reveal-up[data-delay="4"] { transition-delay: 0.300s; }
.reveal-up[data-delay="5"] { transition-delay: 0.375s; }

/* ============================================================
   20. RESPONSIVE
   ============================================================ */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }

  .process-list {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
  .process-line-track { display: none; }

  .price-grid { grid-template-columns: repeat(2, 1fr); }

  .reviews-grid { grid-template-columns: repeat(2, 1fr); }

  .kontakt-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-legal { justify-content: flex-start; }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Show burger, hide menu by default */
  .navbar__burger { display: flex; }

  .navbar__menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(7,10,15,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 2rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }

  .navbar__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navbar__link {
    display: block;
    padding: 0.9em 1em;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .navbar__cta { margin-top: 1rem; text-align: center; }

  /* Hero */
  .hero__photo-placeholder { max-width: 320px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* Process */
  .process-list { grid-template-columns: 1fr; }
  .process-step { flex-direction: row; text-align: left; }

  /* Pricing */
  .price-grid { grid-template-columns: 1fr; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-links { justify-content: flex-start; }
  .footer-legal { justify-content: flex-start; }

  /* Modal */
  .modal-content { grid-template-columns: 1fr; }
  .modal-img-wrap { display: none; }

  /* Toast */
  .toast { right: 1rem; left: 1rem; bottom: 1rem; max-width: none; }
}

/* --- Small mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   21. REVIEWS SUMMARY BAR
   ============================================================ */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.reviews-summary__score {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.reviews-summary__num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.reviews-summary__stars {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  line-height: 1;
}

.reviews-summary__label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.reviews-summary__bar {
  width: 160px;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.reviews-summary__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--gold), #e8c97c);
  border-radius: 100px;
  transition: width 1.2s var(--ease) 0.3s;
}

.reviews-summary--visible .reviews-summary__fill {
  width: 100%;
}

/* ============================================================
   22. DRAG-AND-DROP UPLOAD ZONE
   ============================================================ */
.drop-zone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-s);
  padding: 1.6rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  overflow: hidden;
}
.drop-zone:hover,
.drop-zone--over {
  border-color: var(--gold);
  background: rgba(201,163,91,0.04);
}
.drop-zone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop-zone__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.drop-zone__prompt svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 0.2rem;
}
.drop-zone__prompt strong { color: var(--gold); }
.drop-zone__prompt small  { font-size: 0.72rem; opacity: 0.55; }

.drop-zone__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  justify-content: center;
}
.drop-zone__preview {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ============================================================
   23. STARFIELD CANVAS — fixed, behind all content site-wide
   ============================================================ */
#starCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  display: block;
}

/* ============================================================
   24. MOSAIC INTRO
   ============================================================ */

/* Prevent scroll while intro is active */
body.no-scroll { overflow: hidden; }

/* Full-screen overlay */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: linear-gradient(135deg, #070A0F 0%, #0d1220 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
  will-change: opacity;
}

/* Fade-out state */
#intro.intro-out {
  opacity: 0;
  pointer-events: none;
}

/* Rotated mosaic grid – overflows edges for fullscreen coverage */
.intro-mosaic {
  position: absolute;
  inset: -10%;
  display: grid;
  transform: rotate(-2.5deg) scale(1.1);
  /* grid-template-columns / rows set by JS */
}

/* Individual tile */
.intro-tile {
  border: 1px solid rgba(255,255,255,0.055);
  background: rgba(255,255,255,0.028);
  will-change: transform, opacity;
  animation: tileIn 0.5s var(--ease) both;
}

/* Gold-tinted accent tiles (~12% of grid) */
.intro-tile.gold {
  background: rgba(201,163,91,0.10);
  border-color: rgba(201,163,91,0.20);
}

/* Outro: tiles animate out */
#intro.intro-out .intro-tile {
  animation: tileOut 0.38s var(--ease) both;
}

/* Brand wordmark centred over mosaic */
.intro-brand {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.8vw, 1.9rem);
  letter-spacing: 0.28em;
  color: var(--gold);
  text-align: center;
  opacity: 0;
  animation: brandFadeIn 0.5s ease 0.55s both;
}

#intro.intro-out .intro-brand {
  animation: brandFadeOut 0.28s ease both;
}

/* Keyframes */
@keyframes tileIn {
  from { opacity: 0; transform: scale(0.62); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes tileOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.94); }
}

@keyframes brandFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes brandFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* ============================================================
   24. PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  /* Keep opacity reveals but disable transform */
  .reveal-up {
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }

  /* Disable canvas animation (handled in JS) */
  #starCanvas { display: none; }

  /* Skip intro entirely */
  #intro { display: none !important; }
  body.no-scroll { overflow: auto !important; }
}
