/* Pop-up "Praxisurlaub" auf der Startseite */
.urlaub-popup {
    position: fixed;
    inset: 0;
    z-index: 1000; /* über der Seite, unter dem Cookie-Hinweis (1040) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(1, 35, 67, 0.55); /* --darkblue, abgedunkelt */
}
.urlaub-popup[hidden] {
    display: none;
}
.urlaub-popup__box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    border: 6px solid var(--green);
    box-shadow: 0 12px 40px rgba(1, 35, 67, 0.35);
    text-align: center;
}
.urlaub-popup__bild {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42vh; /* auf niedrigen Bildschirmen nicht zu hoch */
    object-fit: contain;
    background: #fff;
    border-radius: 8px 8px 0 0;
}
.urlaub-popup__inhalt {
    padding: 4px 32px 28px;
}
.urlaub-popup h2 {
    margin: 0 0 12px;
    font-size: 36px;
    color: var(--darkblue);
}
.urlaub-popup p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5em;
    color: var(--darkblue);
}
.urlaub-popup__schliessen {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 26px;
    line-height: 40px;
    cursor: pointer;
}
.urlaub-popup__schliessen:hover,
.urlaub-popup__schliessen:focus-visible {
    background: var(--darkgreen);
    outline: none;
}
/* Tablet und Computer: größer */
@media (min-width: 768px) {
    .urlaub-popup__box { max-width: 720px; border-width: 8px; }
    .urlaub-popup__inhalt { padding: 4px 48px 30px; }
    .urlaub-popup h2 { font-size: 44px; }
    .urlaub-popup p { font-size: 17px; }
    .urlaub-popup__schliessen { width: 46px; height: 46px; line-height: 46px; font-size: 30px; }
}
@media (min-width: 1200px) {
    .urlaub-popup__box { max-width: 820px; }
}
@media (min-width: 1600px) {
    .urlaub-popup__box { max-width: 980px; }
    .urlaub-popup h2 { font-size: 52px; }
    .urlaub-popup p { font-size: 18px; }
}
/* Vertretung: abgesetzter Kasten */
.urlaub-popup__vertretung {
    margin: 18px auto 0;
    max-width: 420px;
    padding: 14px 20px 16px;
    background: var(--green05);
    border-left: 5px solid var(--green);
    border-radius: 8px;
}
.urlaub-popup .urlaub-popup__vertretung p {
    font-size: 16px;
}
.urlaub-popup .urlaub-popup__vertretung-titel {
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--darkgreen);
}
.urlaub-popup__vertretung a {
    color: var(--darkgreen);
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}
.urlaub-popup__vertretung a:hover {
    text-decoration: underline;
}
@media (max-width: 480px) {
    .urlaub-popup__inhalt { padding: 4px 18px 22px; }
    .urlaub-popup h2 { font-size: 30px; }
    .urlaub-popup p { font-size: 16px; }
}

/* ---- Vorlage Winterurlaub ---- */
.urlaub-popup--winter {
    background: rgba(29, 49, 80, 0.6); /* Nachthimmel aus dem Bild */
}
/* Bee 07.11.2026: dicker roter Rand, rote Geschenkschleife über der Ecke links oben */
.urlaub-popup--winter .urlaub-popup__box {
    border: 10px solid var(--rot);
    box-shadow: 0 12px 40px rgba(1, 35, 67, 0.45);
}
.urlaub-popup--winter .urlaub-popup__box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    z-index: 3;
    pointer-events: none;
    background: url(../fileadmin/user_upload/Popup/schleife.svg?v=1) no-repeat 0 0 / 200px 200px;
}
@media (max-width: 480px) {
    .urlaub-popup--winter .urlaub-popup__box::before { width: 130px; height: 130px; background-size: 130px 130px; }
}
/* Schließen-Knopf im Rot des Randes, weißes X; Tastatur-Markierung als weißer Ring statt blau */
.urlaub-popup--winter .urlaub-popup__schliessen,
.urlaub-popup--winter .urlaub-popup__schliessen:focus-visible {
    background: var(--rot);
    color: #fff;
}
.urlaub-popup--winter .urlaub-popup__schliessen:hover {
    background: var(--darkrot);
}
.urlaub-popup--winter .urlaub-popup__schliessen:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -6px;
}
.urlaub-popup--winter .urlaub-popup__vertretung {
    background: #eaf2fa; /* eisiges Hellblau */
    border-left-color: var(--darkblue);
}
.urlaub-popup--winter .urlaub-popup__vertretung-titel,
.urlaub-popup--winter .urlaub-popup__vertretung a {
    color: var(--darkblue);
}
.urlaub-popup .urlaub-popup__gruss {
    margin-top: 16px;
    font-family: 'Caveat Brush';
    font-size: 26px;
    line-height: 1.2em;
    color: var(--rot);
}
.urlaub-popup--winter .urlaub-popup__gruss {
    color: var(--darkblue);
}

/* Winterbild: Rahmen genau so groß wie das Bild, Schnee fällt nur darin */
.urlaub-popup__bildrahmen {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 14px auto 0;
}
.urlaub-popup__bildrahmen .urlaub-popup__bild {
    width: auto;
    max-width: 100%;
    max-height: 42vh;
    border-radius: 0;
}
/* leise fallende Schneeflocken, nur innerhalb der Bildform */
.urlaub-popup__schnee {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: url(../fileadmin/user_upload/Popup/praxisurlaub-winter-maske.png?v=1);
    mask-image: url(../fileadmin/user_upload/Popup/praxisurlaub-winter-maske.png?v=1);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.urlaub-popup__schnee span {
    position: absolute;
    top: -30px;
    color: #fff;
    text-shadow: 0 0 3px rgba(29, 49, 80, 0.35);
    animation: urlaub-schnee 9s linear infinite;
    opacity: 0.9;
}
.urlaub-popup__schnee span:nth-child(1)  { left: 4%;  font-size: 14px; animation-delay: 0s; }
.urlaub-popup__schnee span:nth-child(2)  { left: 11%; font-size: 20px; animation-delay: -4s; animation-duration: 11s; }
.urlaub-popup__schnee span:nth-child(3)  { left: 18%; font-size: 12px; animation-delay: -7s; }
.urlaub-popup__schnee span:nth-child(4)  { left: 26%; font-size: 17px; animation-delay: -2s; animation-duration: 12s; }
.urlaub-popup__schnee span:nth-child(5)  { left: 33%; font-size: 13px; animation-delay: -5s; }
.urlaub-popup__schnee span:nth-child(6)  { left: 41%; font-size: 22px; animation-delay: -8s; animation-duration: 13s; }
.urlaub-popup__schnee span:nth-child(7)  { left: 49%; font-size: 14px; animation-delay: -1s; }
.urlaub-popup__schnee span:nth-child(8)  { left: 57%; font-size: 18px; animation-delay: -6s; animation-duration: 10s; }
.urlaub-popup__schnee span:nth-child(9)  { left: 64%; font-size: 12px; animation-delay: -3s; }
.urlaub-popup__schnee span:nth-child(10) { left: 71%; font-size: 20px; animation-delay: -9s; animation-duration: 12s; }
.urlaub-popup__schnee span:nth-child(11) { left: 78%; font-size: 15px; animation-delay: -2.5s; }
.urlaub-popup__schnee span:nth-child(12) { left: 85%; font-size: 13px; animation-delay: -6.5s; animation-duration: 11s; }
.urlaub-popup__schnee span:nth-child(13) { left: 91%; font-size: 18px; animation-delay: -4.5s; }
.urlaub-popup__schnee span:nth-child(14) { left: 96%; font-size: 12px; animation-delay: -8.5s; animation-duration: 10s; }
@keyframes urlaub-schnee {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(12px, 260px) rotate(180deg); }
    100% { transform: translate(-6px, 480px) rotate(360deg); opacity: 0; }
}
.urlaub-popup__schliessen {
    z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
    .urlaub-popup__schnee { display: none; }
}
@media (max-width: 480px) {
    .urlaub-popup .urlaub-popup__gruss { font-size: 22px; }
}
