/* ==========================================================================
   Ferhad Modeatelier — Design Tokens & Base
   ========================================================================== */
:root {
  --color-bg: #171615;
  --color-bg-alt: #201e1c;
  --color-surface: #2a2724;
  --color-surface-2: #322e2a;
  --color-text: #f5f1ea;
  --color-text-muted: #c9c2b6;
  --color-text-faint: #948c7e;
  --color-wood: #8a5a34;
  --color-wood-dim: #6b4527;
  --color-brass: #b08d57;
  --color-brass-bright: #d3ac74;
  --color-ok: #7a8c7a;
  --color-border: rgba(245, 241, 234, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --radius: 4px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  /* Site is intentionally an editorial dark atelier look in both themes;
     only the surrounding chrome (scrollbars etc.) follows the OS scheme. */
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--color-text-muted); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 0.9em;
}

.section { padding: clamp(64px, 9vw, 128px) 0; scroll-margin-top: var(--header-h); }
.section--alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { font-size: 1.05rem; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-brass);
  color: #171615;
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--color-brass-bright);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  --btn-fg: var(--color-bg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-brass);
  color: #1a1712;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 1px;
  background: #1a1712;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
  opacity: 0.55;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-brass-bright); transform: translateY(-2px); }
.btn-primary:hover::after, .btn-primary:focus-visible::after { transform: scaleX(1); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--color-brass);
  color: var(--color-brass-bright);
}

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 500;
  display: flex;
  align-items: center;
  background: rgba(23, 22, 21, 0.72);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(23, 22, 21, 0.92);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 620px;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--color-text); border-color: var(--color-brass); }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--color-bg); flex-direction: column; padding: 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .main-nav ul { flex-direction: column; align-items: flex-start; max-width: none; gap: 4px; }
  .main-nav a { display: block; padding: 14px 6px; font-size: 1.05rem; width: 100%; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-sm { padding: 10px 14px; font-size: 0.82rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-pin {
  position: relative;
  height: 240vh;
  background: var(--color-bg);
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 46%) 1fr;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 5;
  padding: calc(var(--header-h) + 24px) clamp(20px, 5vw, 64px) 40px clamp(20px, 5vw, 64px);
}
.hero-copy .eyebrow { color: var(--color-brass-bright); }
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  color: var(--color-text);
  max-width: 12ch;
}
.hero-copy .lede {
  font-size: 1.1rem;
  max-width: 42ch;
  color: var(--color-text-muted);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

.hero-visual-stage {
  position: relative;
  height: 100%;
  perspective: 1700px;
  perspective-origin: 60% 50%;
}
.hero-visual-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: 62% 50%;
}
.hero-visual-3d img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero-visual-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, rgba(23, 22, 21, 0.72) 20%, rgba(23, 22, 21, 0) 52%);
}
.hero-visual-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 78% 30%, rgba(255, 232, 190, 0.16), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.9;
}
.hero-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 245, 222, 0.28) 48%, transparent 56%);
  transform: translateX(-120%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-sheen.run { animation: sheen-sweep 1.6s var(--ease) 0.35s 1 both; }
@keyframes sheen-sweep {
  to { transform: translateX(60%); }
}

.hero-chalkline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-chalkline path {
  fill: none;
  stroke: #f7f3ea;
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(247, 243, 234, 0.55));
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
}

.hero-scrollcue {
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  z-index: 6;
}
.hero-scrollcue .stem {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--color-brass), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scrollcue .stem::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--color-brass-bright);
  animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop { to { top: 100%; } }
.hero-pin.is-done .hero-scrollcue { opacity: 0; transition: opacity 0.3s var(--ease); }

@media (max-width: 900px) {
  .hero-pin { height: 170vh; }
  .hero-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero-visual-stage { min-height: 46vh; }
  .hero-copy { padding-top: calc(var(--header-h) + 14px); }
  .hero-visual-scrim { background: linear-gradient(180deg, var(--color-bg) 0%, rgba(23,22,21,0.35) 16%, rgba(23,22,21,0) 46%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pin { height: auto; }
  .hero-sticky { position: relative; top: auto; height: auto; min-height: 0; padding-block: 40px; }
  .hero-visual-3d { transform: none !important; }
  .hero-chalkline path { stroke-dashoffset: 0; }
  .hero-sheen { display: none; }
}

/* ==========================================================================
   Leistungsnavigator
   ========================================================================== */
.services-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.services-row {
  display: grid;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.services-row--4 { grid-template-columns: repeat(4, 1fr); }
.services-row--2 {
  grid-template-columns: repeat(2, 1fr);
  /* Box selbst nur so breit wie 2 Karten + 1 Gap (nicht 4 Spalten breit),
     dadurch kein Hintergrund in den "leeren" Aussparungen der 4er-Reihe. */
  width: calc(50% - 0.5px);
  margin-inline: auto;
}
@media (max-width: 900px) {
  .services-row--4 { grid-template-columns: repeat(2, 1fr); }
  .services-row--2 { grid-template-columns: repeat(2, 1fr); width: 100%; }
}
@media (max-width: 560px) {
  .services-row--4, .services-row--2 { grid-template-columns: 1fr; width: 100%; }
}
.service-card {
  background: var(--color-bg);
  padding: 32px 28px;
  transition: background 0.25s var(--ease);
}
.service-card:hover { background: var(--color-surface); }
.service-card .icon { color: var(--color-brass); margin-bottom: 18px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.service-card p { font-size: 0.94rem; margin-bottom: 0; }

/* ==========================================================================
   Atelier-Einblicke (Vorher/Nachher-Ersatz)
   ========================================================================== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.insight-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}
.insight-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.insight-card:hover img { transform: scale(1.05); }
.insight-card .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  font-size: 0.85rem;
  color: var(--color-text);
}
@media (max-width: 760px) { .insights-grid { grid-template-columns: 1fr 1fr; } .insights-grid > :first-child { grid-column: span 2; } }

/* ==========================================================================
   Über Ferhad — Timeline
   ========================================================================== */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--color-border); }
.timeline li { position: relative; padding: 0 0 30px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -5px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-brass);
  box-shadow: 0 0 0 4px var(--color-bg);
}
.timeline .year { display: block; font-size: 0.8rem; color: var(--color-brass-bright); letter-spacing: 0.06em; margin-bottom: 2px; }
.timeline h4 { margin: 0 0 4px; font-size: 1.05rem; }
.timeline p { margin: 0; font-size: 0.94rem; }
@media (max-width: 800px) { .about-layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   Preise
   ========================================================================== */
.price-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.price-tab {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
}
.price-tab[aria-selected="true"] { background: var(--color-brass); color: #1a1712; border-color: var(--color-brass); font-weight: 600; }
.price-panel { display: none; }
.price-panel.is-active { display: block; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--color-border); }
.price-table td { padding: 14px 4px; font-size: 0.96rem; }
.price-table td:last-child { text-align: right; color: var(--color-brass-bright); font-weight: 600; white-space: nowrap; }
.price-note { margin-top: 20px; font-size: 0.85rem; color: var(--color-text-faint); }

/* ==========================================================================
   Ablauf
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.process-step { position: relative; padding-top: 46px; }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-brass);
  position: absolute; top: 0; left: 0;
}
.process-step h4 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: 0.88rem; margin: 0; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Bewertungen
   ========================================================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; }
.review-card svg { color: var(--color-brass); margin-bottom: 14px; }
.review-card p { color: var(--color-text); font-size: 1.02rem; font-style: italic; }
.review-card cite { font-style: normal; font-size: 0.85rem; color: var(--color-text-faint); }
.review-note { margin-top: 20px; font-size: 0.85rem; color: var(--color-text-faint); }

/* ==========================================================================
   Termin-Formular
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-brass); }
.field textarea { resize: vertical; min-height: 100px; }
.file-field { border: 1px dashed var(--color-border); border-radius: var(--radius); padding: 16px; font-size: 0.85rem; color: var(--color-text-faint); }
.form-note { font-size: 0.8rem; color: var(--color-text-faint); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 0.9rem; }
.form-status[data-state="ok"] { color: var(--color-ok); }

.calendly-box {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--color-text-faint);
  font-size: 0.88rem;
}

.info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.info-card ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; color: var(--color-text-muted); }
.info-card li { display: flex; justify-content: space-between; padding: 4px 0; }
.map-embed { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 0.85rem; color: var(--color-text-faint); }

@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { transition: transform 0.25s var(--ease); color: var(--color-brass); font-size: 1.3rem; flex-shrink: 0; margin-left: 16px; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 22px; max-width: 65ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-brass); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--color-text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--color-text); }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 50%; }
.social-row a:hover { border-color: var(--color-brass); color: var(--color-brass-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--color-text-faint); padding-top: 24px; border-top: 1px solid var(--color-border); }
.footer-bottom a { color: var(--color-text-faint); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-page { padding-top: calc(var(--header-h) + 48px); }
.legal-notice {
  background: rgba(176, 141, 87, 0.14);
  border: 1px solid var(--color-brass);
  color: var(--color-brass-bright);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 36px;
}
.legal-page h1 { font-size: 2rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal-page article { max-width: 760px; }
.legal-page article p, .legal-page article li { color: var(--color-text-muted); }

/* Utility */
.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; }
