/* Haarwerkstatt – gemeinsames Stylesheet für alle Seiten */

/* ---------- Schriften (lokal gehostet) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-v20-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-v20-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-v21-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-v21-latin-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --text: #4f443d;
  --muted: #7a6c64;
  --line: rgba(79, 68, 61, 0.14);
  --shadow: 0 18px 50px rgba(66, 53, 44, 0.09);
  --radius: 26px;
  --content: min(1180px, calc(100vw - 40px));
  --logo: #5c0238;
  --logo-soft: rgba(92, 2, 56, 0.10);
  --logo-line: rgba(92, 2, 56, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 193, 176, 0.34), transparent 30%),
    linear-gradient(180deg, #f7f2ec 0%, #f2ece5 100%);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.02; margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--logo); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--logo); color: #fff; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 242, 236, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav { width: var(--content); margin: 0 auto; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; font-size: 0.95rem; color: var(--muted); }
.nav-links a { padding: 8px 14px; border-radius: 999px; transition: color .2s ease, background .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--logo); background: var(--logo-soft); }
.nav-links a[aria-current="page"] { color: var(--logo); }

/* ---------- Karten (Glas-Look) ---------- */
.card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- Elemente ---------- */
.eyebrow {
  display: inline-flex; width: fit-content;
  padding: 8px 14px; margin-bottom: 20px; border-radius: 999px;
  background: var(--logo-soft); color: var(--logo);
  font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button.primary { background: var(--logo); color: #fff; }
.button.primary:hover { box-shadow: 0 10px 24px rgba(92, 2, 56, 0.22); }
.button.secondary { background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line); color: var(--text); }
.button:hover { transform: translateY(-2px); }

main section { width: var(--content); margin: 34px auto 0; scroll-margin-top: 100px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-head p { max-width: 58ch; margin: 0; color: var(--muted); }
.section-head h1, .section-head h2 { font-size: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Hero ---------- */
.hero { width: var(--content); margin: 34px auto 0; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
.hero-copy {
  padding: clamp(32px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 640px; min-width: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(251, 246, 239, 0.42)),
    linear-gradient(120deg, rgba(214, 193, 176, 0.35), rgba(255, 255, 255, 0));
}
.hero-copy h1 { font-size: clamp(3rem, 6.2vw, 6.2rem); margin-bottom: 22px; letter-spacing: -0.01em; }
.hero-copy .slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; color: var(--logo); margin: 0 0 14px; max-width: 22ch; }
.hero-copy .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 42ch; color: var(--muted); margin: 0 0 28px; }
.hero-image { position: relative; min-height: 640px; }
.hero-image picture, .hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 24px; bottom: 24px; max-width: 290px;
  padding: 14px 18px; border-radius: 18px;
  border: 1px solid var(--logo-line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem; color: var(--muted);
}

/* ---------- Leistungen ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(245, 238, 231, 0.84));
}
.service-card h3 { font-size: 2rem; margin-bottom: 10px; }
.service-card p { margin: 0; color: var(--muted); }
.service-card .more { margin-top: auto; color: var(--logo); font-weight: 500; font-size: 0.95rem; display: inline-flex; gap: 6px; align-items: center; }
.service-card .more:hover span { transform: translateX(3px); }
.service-card .more span { transition: transform .2s ease; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-card { aspect-ratio: 4 / 5; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-card:hover img { transform: scale(1.04); }

/* ---------- Kontakt ---------- */
.contact-card {
  padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: start;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(245, 238, 231, 0.82));
}
.contact-card h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 10px; }
.contact-card p { color: var(--muted); margin: 0; max-width: 52ch; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.contact-actions .wide { grid-column: 1 / -1; }
.contact-button {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 74px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--logo-line);
  box-shadow: 0 10px 28px rgba(66, 53, 44, 0.06);
  transition: transform .2s ease, border-color .2s ease;
  overflow-wrap: anywhere;
}
.contact-button span { color: var(--logo); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.contact-button:hover { transform: translateY(-2px); border-color: rgba(92, 2, 56, 0.28); }
.contact-meta { padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-meta strong { display: block; font-size: 1.15rem; margin-bottom: 12px; }
.contact-meta div + div { margin-top: 10px; }
.contact-meta a { border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.contact-meta a:hover, .contact-meta a:focus-visible { color: var(--logo); border-color: currentColor; }
.contact-meta .route { color: var(--logo); font-weight: 500; }

/* ---------- Preisliste ---------- */
.price-info { margin: 0 0 24px; padding: 22px 26px; border-radius: 22px; background: var(--logo-soft); border: 1px solid var(--logo-line); }
.price-card { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.65); margin-bottom: 24px; }
.price-card-header { padding: 26px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(245, 238, 231, 0.82)); }
.price-card-header h2 { font-size: 2.4rem; }
.price-list { list-style: none; margin: 0; padding: 10px 28px 20px; }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-title { font-weight: 500; }
.price-note { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.price-value { color: var(--logo); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-end { margin: 8px 0 40px; }

/* ---------- Rechtliches ---------- */
.legal-card { padding: clamp(28px, 4vw, 52px); margin-bottom: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(245, 238, 231, 0.82)); }
.legal-card > * { max-width: 70ch; }
.legal-card h1, .legal-card h2.title { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 18px; }
.legal-card h2:not(.title) { font-size: 1.8rem; margin: 34px 0 10px; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card p { margin: 0 0 12px; }
.legal-card ul { margin: 0 0 12px; padding-left: 20px; }
.legal-card li { margin: 4px 0; }
.legal-card strong { color: var(--text); font-weight: 600; }
.legal-card address { font-style: normal; color: var(--muted); margin: 0 0 12px; }
.legal-card a { color: var(--logo); border-bottom: 1px solid var(--logo-line); }

/* ---------- Footer ---------- */
footer {
  width: var(--content); margin: 40px auto 26px; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.94rem;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover, footer a:focus-visible { color: var(--logo); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero, .contact-card, .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { min-height: 0; }
  .hero-image { min-height: 540px; }
}

@media (max-width: 760px) {
  .site-header { position: static; }
  .nav { width: 100%; min-height: auto; padding: 14px 20px 16px; flex-direction: column; justify-content: center; gap: 12px; }
  .brand img { height: 50px; }
  .nav-links { justify-content: center; gap: 6px; font-size: 0.92rem; }
  .nav-links a { padding: 8px 14px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(79, 68, 61, 0.10); }
  .hero { margin-top: 20px; }
  .hero-copy { padding: 28px; }
  .hero-image { min-height: 420px; }
  .hero-badge { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 12px 14px; font-size: 0.9rem; }
  .service-card { padding: 24px; }
  .contact-card { padding: 24px 18px; }
  .contact-meta { padding: 20px; font-size: 0.95rem; }
  .contact-meta a[href^="mailto"] { display: inline-block; }
  .section-head { align-items: start; flex-direction: column; }
  .gallery-grid { gap: 12px; }
  .contact-actions { grid-template-columns: 1fr; }
  .price-list { padding: 6px 22px 14px; }
  .price-card-header { padding: 22px; }
  footer { flex-direction: column; }
}
