/* =========================================================
   Änderungsschneiderei Aydin Acat – Karlsruhe
   Corporate Identity: Blau #1F5F8B · Anthrazit #2E2E2E ·
   Fläche #F2F5F7 · Gold-Akzent #E0A500
   ========================================================= */

:root {
  --blue: #1F5F8B;
  --blue-dark: #184c70;
  --blue-tint: #eaf1f6;
  --ink: #2E2E2E;
  --surface: #F2F5F7;
  --gold: #E0A500;
  --gold-dark: #c48f00;
  --white: #ffffff;
  --muted: #5b6772;
  --border: #dfe6ec;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(31, 95, 139, .08);
  --shadow: 0 10px 30px rgba(20, 40, 60, .10);
  --shadow-lg: 0 20px 50px rgba(20, 40, 60, .18);

  --maxw: 1140px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll, body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration-color: rgba(31,95,139,.35); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.mt-l { margin-top: 2rem; }
.mt-xl { margin-top: 3.5rem; }
.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 1000;
  background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #23262b; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-call { background: var(--blue); color: #fff; }
.btn-call:hover { background: var(--blue-dark); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.nav-list {
  list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-block; padding: .55rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: background-color .15s, color .15s;
}
.nav-list a:hover { background: var(--blue-tint); color: var(--blue); }
.header-call { flex: 0 0 auto; padding: .6rem 1.1rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  background: var(--blue-tint); border: 0; border-radius: 10px; cursor: pointer;
  position: relative;
}
.burger, .burger::before, .burger::after {
  content: ""; position: absolute; left: 50%; width: 22px; height: 2.5px;
  background: var(--blue); border-radius: 2px; transform: translateX(-50%);
  transition: transform .2s, opacity .2s;
}
.burger { top: 50%; transform: translate(-50%, -50%); }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
body.nav-open .burger { background: transparent; }
body.nav-open .burger::before { top: 0; transform: translateX(-50%) rotate(45deg); }
body.nav-open .burger::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 90% -10%, var(--blue-tint), transparent 60%),
    linear-gradient(180deg, #fbfdfe, var(--white));
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--blue); margin: 0 0 .8rem;
}
.eyebrow.center { display: block; }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); margin-bottom: .6rem; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.28rem); color: var(--muted); max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .98rem; }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars.big { font-size: 1.6rem; }
.hero-trust-text strong { font-size: 1.1rem; }
.open-status { font-weight: 700; padding: .2rem .7rem; border-radius: 999px; font-size: .86rem; }
.open-status.is-open { background: #e4f4e8; color: #1c7a3a; }
.open-status.is-closed { background: #fdecec; color: #b23636; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; max-height: 520px; object-fit: cover; object-position: center 22%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(31,95,139,.92); color: #fff; font-size: .82rem; font-weight: 600;
  padding: .5rem .9rem; border-radius: 999px; backdrop-filter: blur(2px);
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); }
.section-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
.section-intro { color: var(--muted); max-width: 62ch; margin-inline: auto; }
.section-intro.center { margin-bottom: 2.5rem; }
.section-title.center + .section-intro { margin-top: .4rem; }

/* ---------- Leistungen (Cards) ---------- */
.cards {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem;
}
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd9e2; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  background: var(--blue-tint); color: var(--blue);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-accent { border-color: var(--gold); box-shadow: 0 6px 20px rgba(224,165,0,.18); }
.card-accent .card-icon { background: #fbf1d6; color: var(--gold-dark); }

/* ---------- Ablauf (Steps) ---------- */
.steps {
  list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem;
}
.step {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.4rem 1.4rem; text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: .8rem;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Vorteile ---------- */
.benefits {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem 1.6rem;
}
.benefits li { display: flex; gap: .9rem; align-items: flex-start; }
.benefit-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.section-alt .benefit-ico { background: var(--white); }

/* ---------- Bewertungen ---------- */
.reviews {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem);
}
.reviews-score { text-align: center; background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.5rem; }
.reviews-value { display: block; font-size: 3.6rem; font-weight: 800; line-height: 1; }
.reviews-score .stars.big { display: block; margin: .4rem 0; }
.reviews-count { font-size: .95rem; opacity: .9; }
.reviews-text .section-title { color: #fff; }
.reviews-text p { color: rgba(255,255,255,.9); }
.reviews-text .btn-primary { margin-top: .5rem; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 2.5rem;
}
.gallery-item {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-sm); background: #ccc;
}
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(20,40,60,.85));
  color: #fff; font-size: .9rem; padding: 1.5rem .9rem .8rem; font-weight: 600;
}

/* ---------- Öffnungszeiten & Anfahrt ---------- */
.anfahrt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { text-align: right; color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--blue); font-weight: 800; }
.hours tr.today { background: var(--blue-tint); }
.nap { font-style: normal; line-height: 1.7; }
.hint { color: var(--muted); font-size: .95rem; }

.map-wrap { position: relative; min-height: 400px; height: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; }
.map-consent-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.6); }
.map-consent-box { position: relative; background: rgba(255,255,255,.96); border-radius: var(--radius); padding: 1.5rem; max-width: 340px; text-align: center; box-shadow: var(--shadow); margin: 1rem; }
.map-consent-box p { font-size: .92rem; color: var(--muted); }
.map-note { margin: .8rem 0 0; font-size: .85rem; }
.map-embed { position: absolute; inset: 0; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Kontakt ---------- */
.section-contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; align-items: start; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .96rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fbfdfe; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,139,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field-check { display: flex; gap: .6rem; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--blue); }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { text-align: center; color: var(--muted); font-size: .9rem; margin: .8rem 0 0; }

.contact-side { background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-side h3 { color: #fff; }
.contact-side p { color: rgba(255,255,255,.9); }
.contact-side .nap { color: rgba(255,255,255,.95); margin-top: 1.2rem; }
.contact-side .nap strong { color: #fff; }
.contact-side .btn-primary { margin-bottom: 1rem; }
.contact-hours { margin-top: 1rem; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #23303b; color: #cdd7df; padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-logo { background: #fff; border-radius: 10px; padding: .5rem .7rem; height: auto; margin-bottom: 1rem; }
.site-footer p { color: #aebac4; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer a { color: #dfe8ef; }
.site-footer .nap a { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; }
.footer-bottom p { margin: 0; font-size: .86rem; color: #94a3ad; }

/* ---------- Schwebender Anruf-Button ---------- */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: #23262b; font-weight: 800; text-decoration: none;
  padding: .85rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: background-color .18s, transform .12s;
}
.call-fab:hover { background: var(--gold-dark); }
.call-fab:active { transform: translateY(1px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,25,35,.92);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.2rem; width: 48px; height: 48px;
  background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer; transition: background-color .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 560px; margin-inline: auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1rem 1.2rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 260px; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin-bottom: 1.2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; color: var(--blue); }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal p, .legal li { color: #40474e; }
.legal address { font-style: normal; line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }
.legal .placeholder {
  background: #fff6da; border: 1px dashed var(--gold-dark);
  padding: .05rem .45rem; border-radius: 4px; font-weight: 600; color: #7a5c00;
}
.legal-back { margin-left: auto; font-weight: 600; text-decoration: none; color: var(--blue); white-space: nowrap; }
.legal-back:hover { text-decoration: underline; }
.legal-note {
  background: var(--surface); border-left: 4px solid var(--blue);
  padding: 1rem 1.2rem; border-radius: 8px; font-size: .92rem; color: var(--muted); margin-top: 2.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: static; margin-left: 0; }
  .nav-list {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: .5rem var(--gutter) 1rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  body.nav-open .nav-list { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list a { display: block; padding: .8rem .4rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-list li:last-child a { border-bottom: 0; }
  .header-call { order: -1; margin-left: auto; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { max-height: 340px; object-position: center 20%; }
  .hero .lead { max-width: none; }

  .reviews { grid-template-columns: 1fr; text-align: center; }
  .anfahrt-grid, .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .header-call span { display: none; }
  .header-call { padding: .6rem .7rem; }
  .logo img { height: 40px; }
  .call-fab-text { display: none; }
  .call-fab { padding: .9rem; }
  .gallery-item img { height: 220px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
}
