/* =====================================================================
   seiten.css - Ergaenzungen zu index.css
   ---------------------------------------------------------------------
   1. "Jetzt geoeffnet / geschlossen"-Zeile (Startseite)
   2. Besucherzaehler zum Anfassen (alle Seiten)
   3. Stile, die frueher direkt in den einzelnen Seiten standen
      (Informationen, Kontakt, Notfall, Datenschutz, Impressum).
      Sie stehen jetzt hier, damit die Sicherheits-Regel
      "nur Code aus eigenen Dateien" (Content-Security-Policy) gilt.
   ===================================================================== */

/* Nur fuer Vorlese-Programme (unsichtbar) */
.nur-vorlesen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- 1. "Jetzt geoeffnet / geschlossen" ----------
   Ein schmaler Balken ueber die ganze Breite.
   Der Inhalt steht zentriert nebeneinander: Status, dann der Text.
   Auf dem Handy rutscht der Text bei Platzmangel zentriert in die naechste Zeile.
   Gruen = geoeffnet, Rot (Akzentfarbe) = geschlossen. */
.status-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 22px;
    margin: 0 0 20px;
    padding: 8px 18px;
    background-color: var(--white);
    border: 1px solid var(--line);
    border-left: 6px solid var(--accent-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    text-align: center;
}

.status-box.offen {
    border-left-color: #1e7b34;
}

.status-box p {
    margin: 0;
}

.status-titel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 700;
    color: var(--accent-color);
}

.status-box.offen .status-titel {
    color: #1e7b34;
}

/* farbiger Punkt vor "Jetzt geoeffnet / geschlossen" */
.status-wort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-wort::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: currentColor;
}

/* gelbes Schild "VORSCHAU" (nur bei index.php?status=offen oder ?status=zu) */
.status-vorschau {
    padding: 1px 9px;
    border-radius: 999px;
    background-color: #fff1b8;
    color: #5c4700;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------- 2. Besucherzaehler ---------- */
.zaehler-platz {
    display: flex;
    justify-content: center;
    margin: 0 auto 24px;
}

.zaehler {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Wurde der Zaehler verschoben, klebt er an seiner neuen Stelle im Fenster */
.zaehler.frei {
    position: fixed;
    z-index: 55;
    margin: 0;
}

.zaehler-knopf {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px 9px 18px;
    /* Regenbogen-Rand aus dem Logo */
    border: 3px solid transparent;
    border-radius: 999px;
    background: linear-gradient(var(--white), var(--white)) padding-box,
    var(--rainbow) border-box;
    box-shadow: var(--shadow);
    font: inherit;
    color: var(--text-color);
    cursor: grab;
    touch-action: none;             /* Finger verschiebt den Zaehler, nicht die Seite */
    -webkit-user-select: none;
    user-select: none;
}

.zaehler.zieht .zaehler-knopf {
    cursor: grabbing;
    box-shadow: 0 4px 8px rgba(20, 51, 111, 0.12), 0 18px 40px rgba(20, 51, 111, 0.25);
}

.zaehler-titel {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--light-text);
}

.zaehler-ziffern {
    display: inline-flex;
    gap: 3px;
}

/* Ein Ziffern-Plaettchen (wie bei einem alten Kilometerzaehler) */
.ziffer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45em;
    height: 1.9em;
    border-radius: 6px;
    background-color: var(--primary-dark);
    color: var(--white);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.ziffer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.zaehler-knopf.huepft {
    animation: zaehler-hupf 0.6s ease;
}

@keyframes zaehler-hupf {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-18px) rotate(-3deg); }
    55%  { transform: translateY(0) rotate(2deg); }
    75%  { transform: translateY(-6px); }
    100% { transform: none; }
}

.zaehler-tipp,
.zaehler-punkte {
    margin: 0;
    font-size: 0.8rem;
    color: var(--light-text);
    text-align: center;
}

.zaehler-punkte:empty {
    display: none;
}

.zaehler.frei .zaehler-tipp {
    display: none;
}

.zaehler.frei .zaehler-punkte {
    background-color: var(--white);
    border-radius: 999px;
    padding: 2px 10px;
    box-shadow: var(--shadow);
}

/* Pfeil-Knopf: legt den Zaehler zurueck an seinen Platz */
.zaehler-zurueck {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font: 700 1.1rem/1 var(--font);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(20, 51, 111, 0.35);
}

.zaehler-zurueck[hidden] {
    display: none;
}

.zaehler-zurueck:hover {
    background-color: var(--primary-dark);
}

/* ---------- Seifenblasen ----------
   .blase      = der Ort der Blase (wird von zaehler.js bewegt)
   .blase-haut = das Aussehen: durchsichtig, mit schillerndem Rand und Glanzlicht */
.blasen-ebene {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;           /* Seite darunter bleibt bedienbar */
    overflow: hidden;
}

.blase {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    touch-action: none;
    will-change: transform;
}

.blase-haut {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* fast durchsichtige Seifenhaut: innen klar, zum Rand hin leicht blaeulich */
    background:
            radial-gradient(circle at 50% 50%,
            rgba(255, 255, 255, 0) 0 52%,
            rgba(190, 225, 255, 0.16) 70%,
            rgba(150, 190, 255, 0.34) 88%,
            rgba(120, 150, 230, 0.5) 100%);
    box-shadow:
            inset 0 0 10px rgba(255, 255, 255, 0.75),
            inset 6px 8px 14px rgba(255, 255, 255, 0.35),
            inset -7px -9px 16px rgba(110, 150, 255, 0.28),
            0 1px 5px rgba(60, 90, 160, 0.22);
    animation: blase-entsteht 0.45s ease-out both;
}

/* schillernder Regenbogen-Rand (dreht sich langsam) */
.blase-haut::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 20deg,
    rgba(255, 90, 170, 0.9), rgba(255, 215, 80, 0.9), rgba(110, 235, 150, 0.9),
    rgba(80, 200, 255, 0.9), rgba(170, 120, 255, 0.9), rgba(255, 90, 170, 0.9));
    -webkit-mask: radial-gradient(closest-side, transparent 0 74%, #000 84%, #000 96%, transparent 100%);
    mask: radial-gradient(closest-side, transparent 0 74%, #000 84%, #000 96%, transparent 100%);
    opacity: 0.8;
    animation: blase-schillert 6s linear infinite;
}

/* Glanzlichter: grosses oben links, kleines unten rechts */
.blase-haut::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
            radial-gradient(ellipse 22% 14% at 30% 24%, rgba(255, 255, 255, 0.98) 0 55%, rgba(255, 255, 255, 0) 100%),
            radial-gradient(ellipse 9% 6% at 42% 15%, rgba(255, 255, 255, 0.85) 0 50%, rgba(255, 255, 255, 0) 100%),
            radial-gradient(ellipse 16% 9% at 70% 80%, rgba(255, 255, 255, 0.6) 0 40%, rgba(255, 255, 255, 0) 100%);
}

@keyframes blase-entsteht {
    from { transform: scale(0.2); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes blase-schillert {
    to { transform: rotate(360deg); }
}

/* Zerplatzen: kurz groesser werden und verschwinden */
.blase.geplatzt .blase-haut {
    animation: blase-platzt 0.25s ease-out forwards;
}

@keyframes blase-platzt {
    0%   { transform: scale(1); opacity: 1; }
    60%  { transform: scale(1.35); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media print {
    .zaehler-platz,
    .blasen-ebene {
        display: none !important;
    }
}

/* =====================================================================
   3. Stile der einzelnen Seiten
   "body.seite-NAME" = gilt nur auf der Seite NAME.php
   ===================================================================== */

/* ---------- Informationen ---------- */
body.seite-informationen .info-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

body.seite-informationen .info-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--light-bg);
    border-radius: 5px;
    transition: var(--transition);
}

.download-item:hover {
    background-color: var(--secondary-color);
}

a.download-item {
    text-decoration: none;
    color: inherit;
}

a.download-item:hover h4 {
    text-decoration: underline;
}

.download-source {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 4px;
}

.download-hint {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 10px;
}

.download-icon {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.download-text {
    flex: 1;
}

.download-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.download-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

.insurance-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.insurance-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: left;
}

.insurance-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
}

.insurance-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

/* ---------- Kontakt ---------- */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
}

.contact-details,
.contact-form-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.contact-details h3,
.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

body.seite-kontakt .contact-item {
    margin-bottom: 20px;
}

body.seite-kontakt .contact-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

body.seite-kontakt .contact-value {
    font-size: 1.1rem;
}

.contact-mail-title {
    margin-top: 30px;
}

.mail-hinweis {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 10px;
}

.staff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.staff-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.staff-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.staff-card p {
    margin: 5px 0;
    overflow-wrap: anywhere;
}

.staff-card .staff-mail {
    font-size: 0.95rem;
    line-height: 1.4;
}

.staff-card .staff-mail a {
    color: var(--primary-color);
}

.staff-card .staff-mail a:hover {
    text-decoration: underline;
}

.staff-card .role {
    font-style: italic;
    color: var(--light-text);
}

/* ---------- Notfall ---------- */
.emergency-info {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.emergency-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.emergency-number {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: white;
    color: var(--accent-color);
    border-radius: 5px;
}

.emergency-number a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.emergency-number-klein {
    font-size: 1.5rem;
}

.emergency-info p {
    color: var(--white);
}

.procedure-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.procedure-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.hospital-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    margin-top: 35px;
}

.hospital-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ---------- Datenschutz ---------- */
.datenschutz-section {
    background-color: var(--white);
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: none;
    margin: 0;
    min-width: 0;
}

.datenschutz-section h1,
.datenschutz-section h2 {
    color: var(--primary-color);
    margin-bottom: 28px;
    font-size: 2rem;
}

.datenschutz-section h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.datenschutz-section p,
.datenschutz-section ul {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--text-color);
}

.datenschutz-section ul {
    padding-left: 20px;
}

.datenschutz-section h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* ---------- Impressum ---------- */
.impressum-section {
    background-color: var(--white);
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: none;
    margin: 0 0 40px;
}

.impressum-section h1,
.impressum-section h2 {
    color: var(--primary-color);
    margin-bottom: 28px;
    font-size: 2rem;
}

.impressum-section h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.impressum-section p,
.impressum-section address {
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-style: normal;
    color: var(--text-color);
}

.impressum-section address {
    font-family: inherit;
}

/* ---------- Oeffnungszeiten: Ferienliste ---------- */
.ferien-arzt {
    margin-bottom: 4px;
}

.ferien-block-ende {
    margin-bottom: 15px;
}

/* ---------- Seite nicht gefunden (404) ---------- */
.nicht-gefunden ul {
    columns: 2;
    column-gap: 36px;
}