/* =========================================================================
   SCHLÜSSELDIENST MÜNCHEN — EDITORIAL LAYER
   Bavarian traditional (Wirtshaus-Tafel / amtliches Schild / Weiß-Blau).
   Enqueued AFTER style.css. Overrides the modern rounded+gradient+shadow base
   into a FLAT, FRAMED, squared look. Radius 0–3px, solid borders, hairline
   rules, the blue/white Raute band. No gradients on panels/buttons, no pills.
   ========================================================================= */

/* --- Local convenience tokens (built on existing theme vars) ------------- */
:root {
  --ed-frame: 2px solid var(--blue);
  --ed-hair: 1px solid var(--line-strong);
  --ed-raute-size: 16px;
}

/* =========================================================================
   .raute — reusable thin blue/white diamond band (Bavarian Raute)
   ========================================================================= */
.raute {
  height: 12px;
  border-radius: 0;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, var(--blue) 25%, transparent 25%, transparent 75%, var(--blue) 75%),
    linear-gradient(45deg, var(--blue) 25%, transparent 25%, transparent 75%, var(--blue) 75%);
  background-size: var(--ed-raute-size) var(--ed-raute-size);
  background-position: 0 0, calc(var(--ed-raute-size) / 2) calc(var(--ed-raute-size) / 2);
}

/* =========================================================================
   .schild — amtliches Schild / Wirtshaustafel masthead band
   ========================================================================= */
.schild {
  max-width: var(--container);
  margin: 2.4rem auto;
  padding: 0;
  background: var(--tint);
  border: var(--ed-frame);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

/* Raute framing — usable either as nested .raute elements OR via pseudo. */
.schild > .raute:first-child { margin: 0; }
.schild > .raute:last-child { margin: 0; }

/* Pseudo-element fallback when no .raute markup is supplied. */
.schild--ruled::before,
.schild--ruled::after {
  content: "";
  display: block;
  height: 12px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, var(--blue) 25%, transparent 25%, transparent 75%, var(--blue) 75%),
    linear-gradient(45deg, var(--blue) 25%, transparent 25%, transparent 75%, var(--blue) 75%);
  background-size: var(--ed-raute-size) var(--ed-raute-size);
  background-position: 0 0, calc(var(--ed-raute-size) / 2) calc(var(--ed-raute-size) / 2);
}

.schild__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 1.6rem auto 0.5rem;
  padding: 0 1.2rem;
  letter-spacing: 0.005em;
}

.schild__tag {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin: 0 auto 1.3rem;
  padding: 0 1.2rem;
}

.schild__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto 1.6rem;
  padding: 0.9rem 1.6rem 0;
  border-top: var(--ed-hair);
  font-family: var(--sans);
}

.schild__status {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.schild__line a,
.schild__line a:hover {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}

/* =========================================================================
   .lead — front-page lead feature grid
   ========================================================================= */
.lead {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.lead__main { min-width: 0; }

.lead__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.7em;
}

.lead__body {
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--text);
  text-align: justify;
  hyphens: auto;
}

.lead__body p { margin: 0 0 1.05em; }

@media (min-width: 900px) {
  .lead__body {
    column-count: 2;
    column-gap: 36px;
    column-rule: 1px solid var(--line);
  }
}

/* Drop initial — large Playfair blue cap on the first paragraph. */
.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.72;
  float: left;
  margin: 0.06em 0.09em 0 0;
  color: var(--blue);
}

.lead__aside { min-width: 0; }

/* =========================================================================
   .visitenkarte — framed Soforthilfe / contact box
   ========================================================================= */
.visitenkarte {
  background: #fff;
  border: var(--ed-frame);
  border-radius: 0;
  box-shadow: none;
  padding: 6px;
}

/* Inset hairline frame. */
.visitenkarte > * {
  position: relative;
}
.visitenkarte {
  outline: 1px solid var(--line-strong);
  outline-offset: -6px;
}

.visitenkarte__inner,
.visitenkarte {
  /* padding lives on inner content via wrapper or direct children */
}

.visitenkarte__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 1.1rem 1.2rem 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue);
}

.visitenkarte .btn--accent {
  display: flex;
  width: calc(100% - 2.4rem);
  justify-content: center;
  margin: 1rem 1.2rem;
  border-radius: 2px;
  box-shadow: none;
  background: var(--blue);
  border-color: var(--blue);
}
.visitenkarte .btn--accent:hover {
  transform: none;
  box-shadow: none;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.visitenkarte .checklist {
  margin: 1rem 1.2rem;
}

.visitenkarte__link {
  display: inline-block;
  margin: 0.2rem 1.2rem 1.2rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
}
.visitenkarte__link:hover {
  color: var(--blue-deep);
  border-bottom-color: var(--blue-deep);
  text-decoration: none;
}

/* =========================================================================
   .tafel — services as a printed register / Tafel
   ========================================================================= */
.tafel {
  border-top: 2px solid var(--blue);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .tafel { grid-template-columns: 1fr 1fr; }
  /* vertical hairline between the two columns */
  .tafel .tafel__item:nth-child(odd) { border-right: 1px solid var(--line); }
}

.tafel__item {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--line-strong);
  background: #fff;
}

.tafel__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.tafel__desc {
  font-family: var(--sans);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.tafel__link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-decoration: none;
}
.tafel__link:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================================
   .quartiere — district index register
   ========================================================================= */
.quartiere {
  border-top: 2px solid var(--blue);
  column-count: 2;
  column-gap: 36px;
  padding-top: 1.3rem;
}

@media (min-width: 800px) {
  .quartiere { column-count: 4; }
}

.quartiere a {
  display: block;
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.quartiere a:hover { color: var(--blue); text-decoration: none; }

/* small rotated blue diamond (Raute) marker */
.quartiere a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--blue);
  transform: rotate(45deg);
}

.quartiere__note {
  margin: 1.1rem 0 0;
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
}

/* =========================================================================
   .pullquote — large centered serif statement, framed by blue rules
   ========================================================================= */
.pullquote {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--blue-deep);
  border-top: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
}

/* =========================================================================
   .schild--banner — full-width closing CTA band
   ========================================================================= */
.schild--banner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  background: var(--tint);
  border: var(--ed-frame);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

/* Double-rule fallback (used when no .raute markup is present). */
.schild--banner.schild--ruled::before,
.schild--banner.schild--ruled::after {
  content: "";
  display: block;
  height: 12px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, var(--blue) 25%, transparent 25%, transparent 75%, var(--blue) 75%),
    linear-gradient(45deg, var(--blue) 25%, transparent 25%, transparent 75%, var(--blue) 75%);
  background-size: var(--ed-raute-size) var(--ed-raute-size);
  background-position: 0 0, calc(var(--ed-raute-size) / 2) calc(var(--ed-raute-size) / 2);
}

.schild--banner h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 1.8rem auto 0.4rem;
  padding: 0 1.2rem;
}

.schild--banner p {
  font-family: var(--sans);
  color: var(--text);
  margin: 0 auto 1.4rem;
  padding: 0 1.2rem;
  max-width: 680px;
}

.schild--banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.9rem;
  padding: 0 1.2rem;
}

.schild--banner__actions .btn {
  border-radius: 2px;
  box-shadow: none;
}
.schild--banner__actions .btn--accent {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: none;
}
.schild--banner__actions .btn--accent:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: none;
  box-shadow: none;
}
.schild--banner__actions a:not(.btn) {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
}
.schild--banner__actions a:not(.btn):hover {
  color: var(--blue-deep);
  border-bottom-color: var(--blue-deep);
}

/* =========================================================================
   Generic flat overrides for buttons used inside editorial components
   (squared, no pill, no big shadow) — scoped to editorial regions.
   ========================================================================= */
.schild .btn,
.lead .btn,
.pullquote .btn {
  border-radius: 2px;
  box-shadow: none;
}

/* =========================================================================
   RESPONSIVE — mobile (≤768px)
   ========================================================================= */
@media (max-width: 768px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lead__body {
    column-count: 1;
    column-rule: none;
  }

  .tafel { grid-template-columns: 1fr; }
  .tafel .tafel__item:nth-child(odd) { border-right: none; }

  .quartiere { column-count: 2; }

  .schild { margin: 1.4rem auto; }
  .schild__name { font-size: clamp(1.6rem, 8vw, 2.2rem); margin-top: 1.1rem; }
  .schild__tag { letter-spacing: 0.16em; }
  .schild__line {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.8rem 1rem 0;
  }

  .schild--banner h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .schild--banner__actions { flex-direction: column; }
  .schild--banner__actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================================
   ============  SITE-WIDE / INNER-PAGE OVERRIDES  =========================
   De-modernise the shared components used on the inner pages (services +
   districts) so they match the flat, framed, squared Bavarian homepage.
   STRICT: no gradients (the .raute band is the only allowed gradient),
   no border-radius > 3px, no pills, no soft drop-shadows. All colours reuse
   the existing theme tokens. Nothing above is removed or duplicated.
   ========================================================================= */

/* --- (a) HERO — flat framed band, no gradient, no radial glow ------------ */
.hero {
  overflow: hidden;
  color: #e8f0fb;
  background: var(--blue-deep);          /* flat deep-navy band */
  border-top: var(--ed-frame);
  border-bottom: var(--ed-frame);
  border-radius: 0;
}
/* kill the gradient sheen + radial glow pseudo-elements; keep a quiet raute */
.hero::before {
  opacity: 0.5;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%) 0 0 / var(--ed-raute-size) var(--ed-raute-size),
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%) calc(var(--ed-raute-size) / 2) calc(var(--ed-raute-size) / 2) / var(--ed-raute-size) var(--ed-raute-size);
}
.hero::after { content: none; display: none; }   /* remove radial glow */

.hero__inner { border-radius: 0; }
.hero__kicker {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 0;                       /* squared, no pill */
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 800;
  text-shadow: none;                      /* drop the soft glow */
}
.hero__lead { color: #cfe0f3; }

/* hero buttons: squared, no big shadow */
.hero .btn { border-radius: 2px; box-shadow: none; }
.hero .btn--accent { background: #fff; color: var(--blue-deep); border-color: #fff; box-shadow: none; }
.hero .btn--accent:hover { background: var(--tint); border-color: var(--tint); transform: none; box-shadow: none; }
.hero .btn--ghost:hover { transform: none; box-shadow: none; }

/* hero on a tint variant where used: ink text inside the frame */
.hero--tint { background: var(--tint); color: var(--text); border-color: var(--blue); }
.hero--tint .hero__kicker { color: var(--blue); border-color: var(--blue); background: transparent; }
.hero--tint .hero__title { color: var(--ink); }
.hero--tint .hero__lead { color: var(--text); }

/* --- breadcrumbs — squared, hairline ------------------------------------ */
.breadcrumbs { border-radius: 0; }

/* --- (b) CARD — flat squared tile, hairline border, no shadow/lift ------- */
.card {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: none;
  transition: border-color 0.18s ease;
}
.card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--blue);              /* lift replaced by border accent */
}
.section--dark .card { border-radius: 2px; box-shadow: none; }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 2px;                     /* flat squared blue tile */
  background: var(--blue);                /* no gradient */
  box-shadow: none;
}
.card__link::after { transition: none; }
.card:hover .card__link::after { transform: none; }

/* --- (d) BUTTONS — squared, no pill, no large shadow -------------------- */
.btn { border-radius: 2px; }
.btn--accent { box-shadow: none; }
.btn--accent:hover { transform: none; box-shadow: none; }
.btn--ghost:hover { transform: none; box-shadow: none; }
.btn--dark:hover { transform: none; box-shadow: none; }

/* --- STEPS — flat squared, hairline, flat number tile ------------------- */
.step {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: none;
}
.section--dark .step { border-radius: 2px; box-shadow: none; }
.step::before {
  border-radius: 2px;                     /* squared number tile, no circle */
  background: var(--blue);                /* no gradient */
  box-shadow: none;
}

/* --- BADGES / CHIPS — squared, hairline, no shadow ---------------------- */
.badge {
  border-radius: 2px;                     /* no pill */
  box-shadow: none;
}
.chip {
  border-radius: 2px;                     /* no pill */
  box-shadow: none;
  border: 1px solid var(--line-strong);
}

/* --- STATS — flat squared, hairline ------------------------------------ */
.stat {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: none;
}
.section--dark .stat { border-radius: 2px; box-shadow: none; }

/* --- TABLES (prices / table / hours) — squared, hairline --------------- */
.prices, .table, .hours {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.prices th, .table th { background: var(--blue-deep); }   /* flat, already solid */

/* --- FAQ — flat squared, hairline, squared marker --------------------- */
.faq__item {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: none;
}
.faq__item[open] {
  border-color: var(--blue);
  box-shadow: none;
}
.faq__item summary::after { border-radius: 2px; }         /* squared marker pad */

/* --- NOTICE — squared, hairline ---------------------------------------- */
.notice {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue);
  border-radius: 0;
  box-shadow: none;
}
.notice--warn { border-left-color: var(--warn); }

/* --- QUOTE — squared, hairline ----------------------------------------- */
.quote {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
}

/* --- FORM — squared, hairline, squared fields -------------------------- */
.form {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
}
.form input[type="text"], .form input[type="tel"], .form input[type="email"],
.form select, .form textarea { border-radius: 2px; }
.form-result { border-radius: 0; }

/* --- (c) SECTION--DARK — flat navy band, raute rule, no gradient ------- */
.section--dark {
  overflow: hidden;
  background: var(--navy);                /* flat navy, no gradient */
  color: #cfe0f3;
  border-top: 4px solid var(--blue);      /* blue rule */
}
.section--dark::before {
  background:
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%) 0 0 / var(--ed-raute-size) var(--ed-raute-size),
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%) calc(var(--ed-raute-size) / 2) calc(var(--ed-raute-size) / 2) / var(--ed-raute-size) var(--ed-raute-size);
}

/* --- (c) CTA-BANNER — flat navy band, blue/white raute top rule -------- */
.cta-banner {
  overflow: hidden;
  background: var(--navy);                /* flat navy, no gradient */
  color: #eaf2fc;
  border-top: 4px solid var(--blue);
}
/* blue/white Raute band sitting on the top edge of the banner */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%) 0 0 / var(--ed-raute-size) var(--ed-raute-size),
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%) calc(var(--ed-raute-size) / 2) calc(var(--ed-raute-size) / 2) / var(--ed-raute-size) var(--ed-raute-size);
}
.cta-banner .btn { border-radius: 2px; box-shadow: none; }
.cta-banner .btn--accent { background: #fff; color: var(--blue-deep); border-color: #fff; }
.cta-banner .btn--accent:hover { background: var(--tint); border-color: var(--tint); transform: none; box-shadow: none; }
.cta-banner .btn--ghost:hover { transform: none; box-shadow: none; }

/* --- misc shared bits — squared ---------------------------------------- */
.form-result--ok, .form-result--error { border-radius: 0; }
