/* Schuhmacherei Cordes, Darmstädter Str. 7, Köln
   Schriften: Libre Caslon Text (wie die Goldschrift im Schaufenster) und
   Libre Franklin (nach der Franklin Gothic), beide SIL Open Font License, selbst gehostet.
   Farben aus dem Laden: Weiß und Pinselschwarz vom Schild über der Tür,
   Grün der Rafflenbeul-Maschinen, Rot der Preisliste im Schaufenster. */

@font-face { font-family: "Libre Caslon Text"; src: url("fonts/libre-caslon-text-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("fonts/libre-caslon-text-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("fonts/libre-caslon-text-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --schwarz: #1F201B;
  --gruen: #575E3C;
  --gruen-dunkel: #3F4529;
  --gruen-hell: #B5BA93;
  --rot: #B23A22;
  --grund: #FFFFFF;
  --flaeche: #F1F2EC;
  --linie: #DEDFD6;
  --weiss: #FFFFFF;
  --hell: #F3F4EF;
  --hell-gedaempft: #C6C9B8;
  --text-muted: #5C5D55;

  --font-display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --section-y: 96px;
  --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--schwarz);
  background: var(--grund);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-y) 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-120%);
  background: var(--schwarz);
  color: var(--hell);
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { transform: none; }

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

.section-title { font-size: 2.1rem; margin-bottom: 16px; }
.section-intro { color: var(--text-muted); max-width: 58ch; }
.fliesstext { color: var(--text-muted); margin-bottom: 16px; max-width: 62ch; }

.text-link {
  color: var(--gruen);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gruen-hell);
  padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--gruen); }

/* Kopf */
header {
  position: sticky;
  top: 0;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--schwarz);
  line-height: 1;
}
.logo small {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gruen);
  margin-bottom: 5px;
}
.logo span {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--schwarz);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:not(.nav-cta):hover,
.nav-links a.aktiv { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--gruen); }
.nav-links a.aktiv { color: var(--gruen); }

.nav-cta {
  background: var(--schwarz);
  color: var(--hell) !important;
  padding: 9px 18px;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gruen-dunkel); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--schwarz);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--gruen); color: var(--weiss); }
.btn-primary:hover { background: var(--gruen-dunkel); }
.btn-hell { background: var(--hell); color: var(--schwarz); }
.btn-hell:hover { background: var(--gruen-hell); }

/* Start: oberer Teil */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
  padding: 72px 0 88px;
}
.hero h1 { font-size: 3.1rem; margin-bottom: 22px; max-width: 13em; }
.hero .sub { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }
.hero-media { position: relative; }
.hero-media .vergleich { margin-top: 0; aspect-ratio: 4 / 5; }

.tuerschild {
  display: inline-block;
  margin: 32px 0 30px;
  padding: 16px 22px 14px;
  border: 1.5px solid var(--schwarz);
  font-size: 0.98rem;
}
.tuerschild-titel { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.tuerschild dl { display: grid; grid-template-columns: auto auto; gap: 2px 28px; }
.tuerschild dl div { display: contents; }
.tuerschild dd { text-align: right; font-variant-numeric: tabular-nums; }
.tuerschild .geschlossen dt, .tuerschild .geschlossen dd { color: var(--text-muted); }
.tuerschild .heute dt, .tuerschild .heute dd { color: var(--gruen); font-weight: 700; }

.hero-kontakt { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* Werkstatt über die volle Breite */
.werkstatt-streifen { padding: 0; }
.werkstatt-streifen .bilder { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.15fr; }
.werkstatt-streifen img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.werkstatt-streifen figcaption {
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 0 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Preisliste wie der Aushang im Schaufenster */
.aushang {
  background: var(--weiss);
  border: 1px solid var(--linie);
  padding: 34px 30px 26px;
}
.aushang h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rot);
  text-align: center;
  margin-bottom: 26px;
}
.aushang table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.aushang th, .aushang td { padding: 7px 0; text-align: left; vertical-align: baseline; }
.aushang thead th { font-size: 0.82rem; font-weight: 400; color: var(--text-muted); padding-bottom: 10px; }
.aushang tbody th { font-weight: 700; padding-right: 16px; padding-left: 1.2em; text-indent: -1.2em; hyphens: auto; }
.aushang tbody th::before { content: "•"; display: inline-block; width: 1.2em; text-indent: 0; }
.aushang tbody th .begriff { text-indent: 0; }
.aushang td { font-weight: 700; text-align: right; white-space: nowrap; padding-left: 18px; }
.aushang thead th:not(:first-child) { text-align: right; }
.aushang .gruppe th { padding-top: 22px; font-weight: 400; font-size: 0.82rem; color: var(--text-muted); }
.aushang .gruppe th::before { content: none; }
.aushang-fuss { margin-top: 20px; text-align: center; font-weight: 700; font-size: 0.95rem; }
.begriff { display: block; font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

/* Zitat */
.zitat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.4;
  text-indent: -0.42em;
  margin-top: 30px;
  max-width: 26em;
}
.zitat cite {
  display: block;
  text-indent: 0;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gruen);
}

/* Bewertungen */
.bewertung-gross { margin-top: 36px; }
.bewertung-gross p {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.4;
  max-width: 30em;
  text-indent: -0.42em;
}
.bewertungen-klein {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  max-width: 900px;
}
.bewertungen-klein blockquote { border-top: 1px solid var(--schwarz); padding-top: 16px; }
.bewertungen-klein p { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.55; }
.bewertung-gross cite, .bewertungen-klein cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.nach-liste { margin-top: 30px; }

/* Bilder mit Unterschrift */
.bild-figur img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bild-figur img.hochformat { aspect-ratio: 4 / 5; object-position: center top; }
.bild-figur img.frei { aspect-ratio: auto; }
.bild-figur figcaption { margin-top: 10px; font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); }

/* Vorher / Nachher */
.vergleich {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-top: 40px;
  user-select: none;
}
.vergleich .nachher,
.vergleich .vorher {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vergleich .vorher { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.vergleich .griff {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: var(--hell);
  transform: translateX(-50%);
  pointer-events: none;
}
.vergleich .griff::after {
  content: "‹ ›";
  font-weight: 700;
  letter-spacing: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--hell);
  color: var(--schwarz);
  font-size: 0.75rem;
  padding: 8px 10px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.vergleich input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}
.vergleich .etikett {
  position: absolute;
  top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(31, 32, 27, 0.8);
  color: var(--hell);
  padding: 5px 11px;
  border-radius: 2px;
  pointer-events: none;
}
.vergleich .etikett.links { left: 14px; }
.vergleich .etikett.rechts { right: 14px; }
.bild-unterzeile { margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); }

/* Reparatur in Bildern */
.schritte-bilder {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.schritte-bilder img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.schritte-bilder p { margin-top: 10px; font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); }
.schritte-bilder .schritt-nr { font-family: var(--font-display); font-weight: 700; color: var(--gruen); margin-right: 4px; }

/* Werkstatt auf „Über uns“ */
.werkstatt-mosaik {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 12px;
  margin-top: 32px;
}
.werkstatt-mosaik img { width: 100%; height: 100%; object-fit: cover; }
.werkstatt-mosaik .m-a { grid-column: 1 / 3; grid-row: span 3; }
.werkstatt-mosaik .m-b { grid-column: 3; grid-row: span 2; }
.werkstatt-mosaik .m-c { grid-column: 4; grid-row: span 2; }
.werkstatt-mosaik .m-d { grid-column: 3 / 5; grid-row: span 1; object-position: center 35%; }
.werkstatt-mosaik .m-e { grid-column: 1 / 2; grid-row: span 2; }
.werkstatt-mosaik .m-f { grid-column: 2 / 5; grid-row: span 2; object-position: center 60%; }

/* Häufige Fragen */
.faq { max-width: 760px; margin-top: 36px; }
.faq details:first-child { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gruen);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-muted); max-width: 62ch; }
.nach-faq { margin-top: 36px; max-width: 62ch; }

/* Seitenkopf der Unterseiten */
.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--linie); }
.page-head h1 { font-size: 2.7rem; }
.page-head p { color: var(--text-muted); margin-top: 12px; max-width: 60ch; font-size: 1.1rem; }

/* Raster */
.zwei-spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.zwei-spalten > * { min-width: 0; }
.preise-raster { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); }
.abschnitt-hell { background: var(--flaeche); }

/* Öffnungszeiten und Kontakt */
.zeiten-tabelle { width: 100%; border-collapse: collapse; margin-top: 16px; font-variant-numeric: tabular-nums; }
.zeiten-tabelle td { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.zeiten-tabelle td:last-child { text-align: right; font-weight: 600; }
.geschlossen { color: var(--text-muted); font-weight: 400 !important; }
.heute { color: var(--gruen); }
.zeiten-tabelle tr.heute td:first-child { font-weight: 600; }

.kontakt-liste { list-style: none; margin-top: 16px; }
.kontakt-liste li { margin-bottom: 20px; }
.kontakt-liste a { color: var(--gruen); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.kontakt-liste a:hover { text-decoration: underline; }
.kontakt-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2px; }

.bild-breit { width: 100%; max-height: 480px; object-fit: cover; object-position: center 30%; margin-top: 32px; }
.karte-bild { margin-top: 40px; }
.karte-bild img { width: 100%; aspect-ratio: 1050 / 560; object-fit: cover; border-radius: var(--radius); }
.karte-bild figcaption { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 0.9rem; }
.karte-bild .quelle { color: var(--text-muted); font-size: 0.8rem; }
.karte-bild .quelle a { color: inherit; }


/* Rechtstexte */
.rechtstext { max-width: 720px; }
.rechtstext h2 { margin: 36px 0 12px; font-size: 1.35rem; }
.rechtstext p, .rechtstext li { margin-bottom: 12px; color: var(--text-muted); }
.rechtstext ul { padding-left: 22px; }
.rechtstext .stand { margin-top: 32px; font-size: 0.85rem; }

/* Fuß */
footer.site-footer {
  background: var(--schwarz);
  color: var(--hell-gedaempft);
  padding: 44px 0 40px;
  font-size: 0.92rem;
}
.footer-zeile { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.footer-marke { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--hell); margin-bottom: 6px; }
.footer-rechtliches { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; }
footer.site-footer a { color: var(--hell); text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }

.mobile-call-bar { display: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 520px; }
}

@media (max-width: 768px) {
  :root { --section-y: 64px; }
  .hero { padding: 36px 0 56px; }
  .hero h1 { font-size: 2.3rem; }
  .page-head { padding: 44px 0 28px; }
  .page-head h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.75rem; }
  .zwei-spalten { grid-template-columns: 1fr; gap: 40px; }
  .werkstatt-streifen .bilder { grid-template-columns: 1fr 1fr; }
  .bewertung-gross p { font-size: 1.35rem; }
  .bewertungen-klein { grid-template-columns: 1fr; gap: 28px; }
  .zitat { font-size: 1.3rem; }
  .aushang { padding: 26px 18px 20px; }
  .aushang h2 { font-size: 1.9rem; }
  .aushang td { padding-left: 10px; }
  .logo span { font-size: 1.6rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--grund);
    padding: 16px 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 99;
  }
  .nav-open .nav-links { transform: translateX(0); visibility: visible; transition: transform 0.3s ease; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--linie); }
  .nav-links a { display: block; padding: 18px 0; font-size: 1.15rem; }
  .nav-links .nav-cta { margin-top: 20px; text-align: center; }
  .nav-links li:last-child { border-bottom: 0; }

  .schritte-bilder { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; }
  .schritte-bilder li { flex: 0 0 70vw; scroll-snap-align: start; }
  .werkstatt-mosaik { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .werkstatt-mosaik .m-a, .werkstatt-mosaik .m-d, .werkstatt-mosaik .m-f { grid-column: 1 / 3; }
  .werkstatt-mosaik .m-a { grid-row: span 3; }
  .werkstatt-mosaik .m-b, .werkstatt-mosaik .m-c, .werkstatt-mosaik .m-e { grid-column: auto; grid-row: span 2; }
  .werkstatt-mosaik .m-d { grid-row: span 1; }
  .werkstatt-mosaik .m-f { grid-row: span 2; }

  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--schwarz);
    z-index: 98;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .mobile-call-bar a { flex: 1; text-align: center; justify-content: center; padding: 12px; font-size: 0.95rem; }
  body { padding-bottom: 74px; }
}
