/* =====================================================================
   infoblatt.css – Infoblatt zum Ausdrucken (infoblatt.php)

   Baut auf style.css auf (Schrift, Farben, Karte). Eine A4-Seite,
   fast nur Schwarz und Grau: Farbe kostet Toner und geht beim
   Kopieren verloren. Am Bildschirm liegt das Blatt auf grauem Grund,
   oben die Leiste mit „Drucken“; beim Druck verschwindet sie.
   ================================================================== */

body.infoblatt { background: #eef0f3; font-size: 9.6pt; line-height: 1.35; }
.ib-leiste { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; padding: 1rem var(--rand); }
.ib-blatt { width: 210mm; min-height: 297mm; margin: 0 auto 2rem; padding: 12mm 15mm 11mm; background: #fff; box-shadow: 0 8px 30px -12px rgb(0 0 0 / .3);
  display: flex; flex-direction: column; gap: 4mm; color: #1b2027; }
@media screen and (max-width: 820px) { .ib-blatt { width: auto; min-height: 0; margin: 0 8px 1.5rem; padding: 6mm; } }

.ib-blatt h1 { font-size: 17pt; line-height: 1.15; margin: 0 0 1mm; text-wrap: balance; }
/* einziger Farbtupfer: Überschriften im Blau der Webseite, druckt schwarz-weiß als dunkles Grau */
.ib-blatt h2 { font-size: 11.5pt; margin: 0 0 1.5mm; padding-bottom: 1mm; border-bottom: 1px solid #c9ced6; letter-spacing: -.01em; color: #122673; }
.ib-blatt h2 ~ h2 { margin-top: 3.5mm; }
.ib-blatt h3 { font-size: 8pt; letter-spacing: .07em; text-transform: uppercase; color: #5a6472; margin: 2.5mm 0 .5mm; }
.ib-blatt p { margin: 0 0 1.5mm; }
.ib-blatt ul, .ib-blatt ol { margin: 0; padding-left: 4.5mm; }
.ib-blatt li { margin: 0 0 .6mm; }
.ib-blatt li span, .ib-leise { color: #5a6472; }

.ib-kopf { position: relative; display: flex; align-items: center; gap: 7mm; padding-bottom: 4mm; border-bottom: 1.5px solid #1b2027; }
.ib-kopf::after { content: ""; position: absolute; left: 0; bottom: -1.5px; width: 46mm; height: 1.4mm; background: #e07b12; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.ib-kopf img { width: 46mm; height: auto; flex: none; }
.ib-kopf p { margin: 0; color: #5a6472; font-size: 11pt; }

.ib-kontakt { display: grid; grid-template-columns: 1fr auto; gap: 6mm; align-items: center; border: 1.2px solid #1b2027; border-radius: 3mm; padding: 4mm 5mm; }
.ib-kontakt dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2mm 6mm; }
.ib-kontakt dt { font-size: 7.5pt; letter-spacing: .07em; text-transform: uppercase; color: #5a6472; font-weight: 700; }
.ib-kontakt dd { margin: 0; font-weight: 600; }
.ib-kontakt .ib-tel dd { font-size: 17pt; font-weight: 800; letter-spacing: -.01em; }
.ib-kontakt .ib-breit { grid-column: 1 / -1; }
.ib-qr { display: flex; flex-direction: column; align-items: center; text-align: center; width: 34mm; }
.ib-qr img { width: 26mm; height: 26mm; }
.ib-qr p { font-size: 7.5pt; margin: 1mm 0 0; line-height: 1.25; }
.ib-qr b { display: block; }

.ib-gebiet { display: grid; grid-template-columns: minmax(0, 1fr) 76mm; gap: 7mm; align-items: start; }
.ib-gebiet .ib-leise + h2 { margin-top: 3.5mm; }
.ib-blatt .karte { padding: 0; border: 0; box-shadow: none; }
.ib-blatt .karte-info { display: none; }
.ib-blatt .karte figcaption { font-size: 6.5pt; margin: .5mm 0 0; }
/* Karte in Grautönen: versorgt dunkler (ohne Tageslage), demnächst hell, Rest fast weiß */
.ib-blatt .k-gemeinde { stroke: #fff; }
.ib-blatt .k-gemeinde.k-frei, .ib-blatt .k-gemeinde.k-eingeschraenkt { fill: #9aa1ab; }
.ib-blatt .k-gemeinde.k-bald { fill: #cfd3d9; }
.ib-blatt .k-gemeinde.k-aus { fill: #f1f2f4; }
.ib-blatt .k-ort circle { fill: #1b2027; }
.ib-blatt .k-ort text, .ib-blatt .k-ort.k-haupt text { fill: #1b2027; font-size: 16px; font-weight: 600; stroke-width: 4px; }
.ib-blatt .k-ort.k-haupt text { font-weight: 800; }
/* bei der größeren Schrift stößt Weißenberg an Vierkirchen: Name links vom Punkt */
.ib-blatt .k-ort[data-ort="Weißenberg"] text { text-anchor: end; transform: translateX(-14px); }

/* ein Fluss in zwei Spalten, damit beide etwa gleich lang werden */
.ib-leistungen > div { column-count: 2; column-gap: 7mm; }
.ib-leistungen h2, .ib-leistungen h3 { break-after: avoid; }
.ib-leistungen li { break-inside: avoid; }
.ib-nein { list-style: none; padding-left: 0 !important; }
.ib-nein li { position: relative; padding-left: 4.5mm; }
.ib-nein li::before, .ib-nein li::after { content: ""; position: absolute; left: .6mm; top: 2mm; width: 2.6mm; height: 1.2px; background: #1b2027; transform: rotate(45deg); }
.ib-nein li::after { transform: rotate(-45deg); }
/* Ablauf: drei Schritte mit Ziffer im Kreis */
.ib-blatt .ib-ablauf { list-style: none; padding: 0; counter-reset: schritt; }
.ib-ablauf li { counter-increment: schritt; position: relative; padding-left: 8mm; min-height: 5.6mm; margin-bottom: 1.2mm; }
.ib-ablauf li::before { content: counter(schritt); position: absolute; left: 0; top: -.2mm; width: 5.2mm; height: 5.2mm; border: 1.2px solid #122673; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 8.5pt; color: #122673; box-sizing: border-box; }
.ib-ablauf li b { margin-right: .25em; }

.ib-fuss { margin-top: auto; padding-top: 2.5mm; border-top: 1px solid #c9ced6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1mm 6mm; font-size: 7.5pt; color: #5a6472; }

@media screen and (max-width: 640px) {
  .ib-kontakt, .ib-gebiet, .ib-kontakt dl { grid-template-columns: 1fr; }
  .ib-leistungen > div { column-count: 1; }
  .ib-kopf { flex-direction: column; align-items: flex-start; }
}

@page { size: A4; margin: 0; }
@media print {
  body.infoblatt { background: #fff; }
  .ib-leiste { display: none; }
  .ib-blatt { width: 210mm; height: 297mm; min-height: 0; margin: 0; box-shadow: none; overflow: hidden; }
  .ib-blatt .karte svg, .ib-qr img { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
