/* Knödler + Hurler – Stylesheet
   Keine externen Schriften oder Ressourcen: alles wird vom eigenen Server geladen. */

:root {
  --navy: #1d2542;
  --navy-soft: #2b3558;
  --ink: #14161c;
  --red: #c8202f;
  --red-dark: #a51a27;
  --steel: #eef0f4;
  --line: #cfd4de;
  --text: #1b1f2b;
  --muted: #4a5266;
  --white: #fff;

  --font-head: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed",
    "Franklin Gothic Medium", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--navy-soft); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }

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

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 10;
  background: var(--white); color: var(--navy); padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 0.5rem; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

/* ---------- Kopfbereich ---------- */

.band {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding-bottom: 3.25rem;
}

/* Unterkante des Kopfbereichs: Profil eines Schlüsselbarts */
.band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 16'%3E%3Cpath fill='%23ffffff' d='M0 16V6h14l8 8h8l8-8h14l6 5h6l8-8h18l8 9h8l8-6h14l8 8h8l8-8h8V16Z'/%3E%3C/svg%3E");
  background-size: 160px 16px;
  background-repeat: repeat-x;
}

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem 0.75rem;
}

.logo { display: block; line-height: 0; }
.logo img { width: 150px; height: auto; }

.callgroup { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }

.call {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  color: var(--white); text-decoration: none; line-height: 1.2;
}
.call small { font-size: 0.92rem; opacity: 0.85; }
.call strong { font-family: var(--font-head); font-size: 1.45rem; letter-spacing: 0.01em; white-space: nowrap; }
.call:hover { color: var(--white); }
.call:hover strong { text-decoration: underline; text-underline-offset: 0.15em; }
.call--emergency { background: var(--red); padding: 0.3rem 0.75rem; }
.call--emergency small { opacity: 1; }

.mainnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.15rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.4rem;
}
.mainnav a {
  display: inline-block; padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.88); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.5); }
.mainnav a[aria-current="page"] { color: var(--white); font-weight: 700; border-bottom-color: var(--red); }

.band :focus-visible { outline-color: var(--white); }

.pagehead { padding-top: clamp(2rem, 5vw, 3.25rem); }

.band h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.band .lead { max-width: 38rem; margin: 1rem 0 0; font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); }

.hero {
  display: grid; gap: 2rem 3rem; align-items: center;
  grid-template-columns: 1fr;
  padding-top: clamp(2rem, 5vw, 3.25rem);
}
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 4.6rem); }
.hero__photo { margin: 0; justify-self: start; }
.hero__photo img { width: 300px; border: 6px solid var(--white); }
.hero__photo figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

@media (min-width: 52rem) {
  .hero { grid-template-columns: 1fr auto; }
  .hero__photo { justify-self: end; }
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn--line:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--white); }

/* ---------- Inhalt ---------- */

main { display: block; }

.section { padding-block: clamp(2.25rem, 6vw, 4rem); }
.section--steel { background: var(--steel); }

h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; }
h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
h3 { margin: 0 0 0.6rem; font-size: 1.4rem; }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }

.cols { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .cols { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.cols--photo { align-items: start; }
@media (min-width: 52rem) { .cols--photo { grid-template-columns: 1fr auto; } }
.cols--photo img { width: 300px; border: 1px solid var(--line); }

/* Leistungen */

.services { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .services { grid-template-columns: 1fr 1fr; } }

.service-group { border-top: 4px solid var(--navy); padding-top: 0.9rem; }
.service-group ul { margin: 0; padding: 0; list-style: none; }
.service-group li { padding: 0.35rem 0 0.35rem 1.1rem; position: relative; }
.service-group li::before {
  content: ""; position: absolute; left: 0; top: 1.05em; width: 0.5rem; height: 0.5rem; background: var(--red);
}

.teaser-list { margin: 0 0 1.5rem; padding: 0; list-style: none; columns: 2 14rem; column-gap: 2.5rem; }
.teaser-list li { padding: 0.3rem 0 0.3rem 1.1rem; position: relative; break-inside: avoid; }
.teaser-list li::before {
  content: ""; position: absolute; left: 0; top: 1em; width: 0.5rem; height: 0.5rem; background: var(--red);
}

.products { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.products img { height: 96px; width: auto; border: 1px solid var(--line); background: var(--white); }

/* Notdienst */

.alert { background: var(--red); color: var(--white); padding-block: 1.6rem; }
.alert .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.alert p { margin: 0; font-size: 1.1rem; max-width: 36rem; }
.alert a { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.5rem); text-decoration: none; }
.alert a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.15em; }
.alert :focus-visible { outline-color: var(--white); }

/* Tabelle Öffnungszeiten */

.hours { border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours caption { text-align: left; padding-bottom: 0.5rem; font-weight: 700; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 700; width: 45%; }
.hours .closed { color: var(--muted); }

/* Adresse / Kontakt */

address { font-style: normal; }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem; align-items: baseline; }
.contact-list .label { color: var(--muted); }
.contact-list a.big { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); text-decoration: none; }
.contact-list a.big:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 0.15em; }

/* Karte mit Zwei-Klick-Lösung */

.mapbox { border: 2px solid var(--navy); background: var(--steel); margin-top: 1.5rem; }
.mapbox__intro { padding: 1.5rem; max-width: 46rem; }
.mapbox__intro p { margin: 0 0 1rem; }
.mapbox iframe { display: block; width: 100%; height: min(70vh, 26rem); border: 0; }
.mapbox__bar { padding: 0.75rem 1.5rem; background: var(--white); border-top: 1px solid var(--line); }
.linklist { margin: 1.25rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- Fußbereich ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.85); padding-block: 2.25rem; font-size: 0.97rem; }
.site-footer .wrap { display: grid; gap: 1.75rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr auto; } }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #ffb3ba; }
.site-footer :focus-visible { outline-color: var(--white); }
.site-footer strong { color: var(--white); font-family: var(--font-head); font-size: 1.25rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.3rem; }

/* ---------- Anpassungen ---------- */

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .topbar { gap: 0.6rem 0.75rem; align-items: flex-start; }
  .logo img { width: 104px; }
  .call strong { font-size: 1rem; }
  .call small { font-size: 0.72rem; }
  .call { gap: 0.4rem; }
  .call--emergency { padding: 0.25rem 0.5rem; }
  .callgroup { margin-left: auto; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; }
  .mainnav ul { gap: 0 1rem; font-size: 0.97rem; }
  .btn { width: 100%; text-align: center; }
}

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

@media print {
  .band, .alert, .site-footer { background: none !important; color: #000 !important; }
  .band::after, .mainnav, .skip-link, .actions, .mapbox { display: none !important; }
  .band h1, .band .lead, .call { color: #000 !important; }
  body { font-size: 11pt; }
}
