/* Änderungsschneiderei Illing: Maßband-Streifen, Nahtrahmen, Zuschnittzettel. Abstände nur aus 4, 8, 16, 24, 32, 48, 64, 96. */
@view-transition { navigation: auto; }

:root {
  --bg: #f8f3ea;
  --soft: #ede4d3;
  --surface: #fffdf8;
  --heading: #15213d;
  --text: #2c3447;
  --muted: #566073;
  --accent: #b5223d;
  --accent-dark: #961b32;
  --tape: #f1d27a;
  --line: #d6cab3;
  --ink: #15213d;
  --on-dark: #f8f3ea;
  --on-dark-muted: #c9d0df;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --r: 8px;
  --shadow: 0 8px 32px rgba(21, 33, 61, 0.14);
  --h: 72px;
  --pad: var(--s4);
  --section: var(--s7);

  --head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) { :root { --pad: var(--s5); --section: var(--s8); } }
@media (min-width: 1200px) { :root { --pad: var(--s6); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  hyphens: auto;
  overflow-wrap: break-word;
}
@media (max-width: 767px) { body { padding-bottom: var(--s8); } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; font-family: var(--head); color: var(--heading); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: 0; }
p { margin: 0; max-width: 60ch; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.dark :focus-visible, .callbar :focus-visible, .site-footer :focus-visible { outline-color: var(--tape); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--h); background: var(--bg); color: var(--heading); box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; gap: var(--s2); height: 100%; }
.brand { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; margin-right: auto; text-decoration: none; color: var(--heading); line-height: 1.1; }
.brand .b1 { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.brand .b2 { font-family: var(--head); font-size: 1.625rem; font-weight: 700; }

.hcall {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; min-width: 44px; padding: 0 var(--s2);
  background: var(--accent); color: #ffffff; border-radius: var(--r);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s ease-out;
}
.hcall:hover { background: var(--accent-dark); }
.hcall span { display: none; }
.hcall svg, .nav-toggle svg { width: 24px; height: 24px; flex: none; }

.nav-toggle {
  display: none; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s2);
  background: none; border: 0; border-radius: var(--r);
  color: var(--heading); font: inherit; font-weight: 600; cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  padding: var(--s2) var(--pad) var(--s4);
  background: var(--bg); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s linear 0.2s;
}
.nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav a { display: flex; align-items: center; min-height: 56px; font-family: var(--head); font-size: 1.5rem; font-weight: 700; color: var(--heading); text-decoration: none; border-top: 1px dashed var(--line); }
.nav a:first-child { border-top: 0; }
.nav a[aria-current="true"] { color: var(--accent); }
html:not(.js) .nav { display: none; }

@media (min-width: 768px) {
  .bar { gap: var(--s5); }
  .nav { position: static; margin-left: auto; flex-direction: row; gap: var(--s5); padding: 0; background: none; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  html:not(.js) .nav { display: flex; }
  .nav a { min-height: 44px; border: 0; font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--muted); transition: color 0.18s ease-out; }
  .nav a:hover { color: var(--heading); }
  .nav a[aria-current="true"] { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .hcall { padding: 0 var(--s3); }
  .hcall span { display: inline; }
  .nav-toggle, .js .nav-toggle { display: none; }
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 var(--s5);
  border-radius: var(--r); border: 0;
  background: var(--accent); color: #ffffff;
  font: inherit; font-weight: 700; text-decoration: none;
  transition: background-color 0.18s ease-out, transform 0.18s ease-out;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--bg); color: var(--heading); }
.btn-light:hover { background: #ffffff; }
.textlink { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: opacity 0.18s ease-out; }
.textlink:hover { opacity: 0.8; }

/* Fotos: überall im Nahtrahmen, gleiche Ecken, gleicher Schatten */
.naht { padding: var(--s2); border: 2px dashed var(--accent); border-radius: calc(var(--r) * 2); margin: 0; }
.naht img { width: 100%; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }

/* Titelseite: Maßband oben, Text links, Foto im Nahtrahmen */
.hero { scroll-margin-top: var(--h); padding-bottom: var(--section); }
.tape {
  height: 32px;
  background-color: var(--tape);
  background-image:
    repeating-linear-gradient(90deg, rgba(21, 33, 61, 0.7) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(21, 33, 61, 0.85) 0 2px, transparent 2px 80px);
  background-size: 100% 8px, 100% 16px;
  background-position: 0 0, 0 0;
  background-repeat: repeat-x;
  box-shadow: inset 0 -1px 0 rgba(21, 33, 61, 0.2);
}
.hero-grid { display: grid; gap: var(--s6); padding-top: var(--s6); }
.eyebrow { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.hero h1 { font-size: clamp(2.25rem, 1.2rem + 3.8vw, 4.25rem); max-width: 13em; }
.lead { margin-top: var(--s3); font-size: 1.1875rem; max-width: 36ch; }
.hero-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.hero-actions .btn { width: 100%; }
.massreihe { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s2); max-width: 44ch; }
.massreihe li { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s3); padding-bottom: var(--s2); border-bottom: 1px dashed var(--line); font-weight: 600; color: var(--heading); }
.massreihe span { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero-photo img { aspect-ratio: 3 / 2; object-position: 50% 50%; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 6fr 5fr; gap: var(--s7); align-items: center; padding-top: var(--s7); }
  .hero-actions .btn { width: auto; }
  .hero-photo img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
}
@media (min-width: 768px) and (max-width: 1023px) { .hero-photo img { aspect-ratio: 16 / 9; } }

/* Abschnitte */
.section { padding-block: var(--section); scroll-margin-top: var(--h); }
.section-soft { background: var(--soft); }
.section-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); max-width: 12em; }

.angebot { display: grid; gap: var(--s6); align-items: start; }
.angebot .naht img { aspect-ratio: 4 / 3; }
.angebot .intro { margin-top: var(--s3); }
.liste { list-style: none; margin: var(--s5) 0 0; padding: 0; counter-reset: stueck; max-width: 56ch; }
.liste li { counter-increment: stueck; display: grid; grid-template-columns: 3rem 1fr; gap: var(--s3); padding-block: var(--s3); border-top: 1px dashed var(--line); }
.liste li:last-child { border-bottom: 1px dashed var(--line); }
.liste li::before { content: counter(stueck, decimal-leading-zero); font-family: var(--head); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--accent); }
.liste h3 { font-size: 1.375rem; margin-bottom: var(--s1); }
.liste p { color: var(--text); }
@media (min-width: 1024px) {
  .angebot { grid-template-columns: 5fr 6fr; gap: var(--s7); }
  .angebot .naht { position: sticky; top: calc(var(--h) + var(--s5)); }
  .angebot .naht img { aspect-ratio: 4 / 5; object-position: 45% 50%; }
}

/* Zuschnittzettel: Öffnungszeiten */
.zeiten { display: grid; gap: var(--s6); align-items: center; }
.zettel { background: var(--surface); border: 2px dashed var(--accent); border-radius: calc(var(--r) * 2); padding: var(--s4); box-shadow: var(--shadow); max-width: 560px; }
.zettel h3 { font-size: 1.125rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.zettel dl { margin: 0; }
.zettel .row { display: grid; gap: var(--s1); padding-block: var(--s3); border-top: 1px dashed var(--line); align-items: baseline; }
@media (min-width: 480px) { .zettel .row { grid-template-columns: 9rem 1fr; gap: var(--s3); } }
.zettel .row:first-of-type { border-top: 0; }
.zettel dt { font-family: var(--head); font-weight: 700; font-size: 1.375rem; color: var(--heading); }
.zettel dd { margin: 0; font-weight: 600; font-size: 1.1875rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.zettel dd span { display: block; }
.zeit-note { margin-top: var(--s4); color: var(--text); }
.zeit-note + .zeit-note { margin-top: var(--s2); }
.zeit-note a { font-weight: 600; text-underline-offset: 4px; }
.zeiten .naht img { aspect-ratio: 3 / 2; }
@media (min-width: 1024px) {
  .zeiten { grid-template-columns: 6fr 5fr; gap: var(--s7); }
  .zettel { padding: var(--s5); }
}

/* Anfahrt */
.anfahrt { display: grid; gap: var(--s5); align-items: center; }
.linie { display: flex; align-items: center; gap: var(--s4); }
.linie .nr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--heading); color: var(--bg); font-family: var(--head); font-weight: 700; font-size: 3rem; line-height: 1; outline: 2px dashed var(--accent); outline-offset: 8px; }
@media (min-width: 1024px) { .linie { justify-content: center; } .linie .nr { width: 128px; height: 128px; font-size: 4rem; } }
.wege { list-style: none; margin: var(--s4) 0 0; padding: 0; max-width: 48ch; }
.wege li { padding-block: var(--s2); border-top: 1px dashed var(--line); }
.wege li:last-child { border-bottom: 1px dashed var(--line); }
.wege strong { display: inline-block; min-width: 7rem; color: var(--heading); }
.anfahrt .btn { margin-top: var(--s5); }
@media (min-width: 1024px) { .anfahrt { grid-template-columns: 5fr 6fr; gap: var(--s7); } }

/* Kontakt */
.dark { background: var(--ink); color: var(--on-dark); padding-block: var(--section); scroll-margin-top: var(--h); }
.dark h2 { color: #ffffff; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); max-width: 14em; }
.dark .sub { margin-top: var(--s3); font-size: 1.1875rem; max-width: 40ch; }
.bignum {
  display: inline-block; margin-top: var(--s5);
  font-family: var(--head); font-weight: 700; color: var(--tape); line-height: 1.3; padding-block: var(--s1);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 3px; text-underline-offset: 8px;
  transition: opacity 0.18s ease-out;
}
.bignum:hover { opacity: 0.85; }
.contact { margin-top: var(--s6); display: grid; gap: var(--s4); }
.contact address { font-style: normal; font-size: 1.125rem; }
.contact address a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.mobil { margin-top: var(--s2); color: var(--on-dark-muted); }
@media (min-width: 768px) { .contact { grid-template-columns: auto 1fr; gap: var(--s7); align-items: end; } }

/* Fuß */
.site-footer { background: #0e172c; color: var(--on-dark); padding-block: var(--s6); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; align-items: center; }
.site-footer .name { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: #ffffff; }
.site-footer .links { display: flex; gap: var(--s4); }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }

/* Feste Anrufleiste auf dem Handy */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--s3) var(--pad) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -8px 32px rgba(21, 33, 61, 0.14); }
.callbar .btn { width: 100%; }
.js .callbar { transform: translateY(100%); transition: transform 0.25s ease-out; }
.js .callbar.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .callbar { transition: none; } }
@media (min-width: 768px) { .callbar { display: none; } }

/* Rechtliche Seiten */
.legal { padding-block: var(--s7) var(--s8); }
.legal h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); margin-bottom: var(--s6); }
.legal h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s2); }
.legal p, .legal li { max-width: 65ch; }
.legal ul { padding-left: var(--s4); margin: var(--s3) 0 0; }
.legal li + li { margin-top: var(--s2); }
.legal a { text-underline-offset: 4px; }
.todo { background: #f5dd8e; color: var(--heading); padding: 0 var(--s1); border-radius: 4px; }

/* Bewegung: einmal einblenden, nur mit Skript und nur ohne Bewegungsreduzierung */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
