/* Globale Lösung: Automatischer Offset für ALLE Anker-Sprünge (#xxx) */
/* Berücksichtigt Admin-Bar (wenn vorhanden) und deinen fixed Header */

/* 1. CSS-Variablen definieren (kannst du anpassen) */
:root {
    --header-height: 300px;     /* deine Header-Höhe – passe an dein Theme an */
    --admin-bar-height: 0px;   /* wird per JS überschrieben, wenn Admin-Bar da ist */
    --anchor-offset: calc(var(--header-height) + var(--admin-bar-height)); /* + Puffer */
}

/* 2. Admin-Bar-Höhe dynamisch setzen (nur wenn eingeloggt) */
body.admin-bar {
    --admin-bar-height: 32px; /* Standard Admin-Bar (desktop) */
}
@media screen and (max-width: 782px) {
    body.admin-bar {
        --admin-bar-height: 46px; /* Admin-Bar mobil */
    }
}

/* Offset für Anker-Sprünge hinter fixed Header/Admin-Bar – perfekt in beide Richtungen */
html {
    scroll-padding-top: 200px; /* Abstand oben am Viewport – für alle Sprünge */
}

/* ========== Kalender ========== */
:root {
    --blocked-full: repeating-linear-gradient(135deg, #ffdddd 0px,#ffdddd 10px,#ffffff 10px,#ffffff 20px);
    --blocked-left-toColor: repeating-linear-gradient(135deg, #ffdddd 0px,#ffdddd 10px,#ffffff 10px,#ffffff 20px) top left / 46% 100% no-repeat;
    --blocked-left-toStripe: repeating-linear-gradient(135deg, #ffdddd 0px,#ffdddd 10px,#ffffff 10px,#ffffff 20px) top left / 50% 100% no-repeat;
    --blocked-right-fromColor: repeating-linear-gradient(135deg, #ffdddd 0px,#ffdddd 10px,#ffffff 10px,#ffffff 20px) top right / 46% 100% no-repeat;
    --blocked-right-fromStripe: repeating-linear-gradient(135deg, #ffdddd 0px,#ffdddd 10px,#ffffff 10px,#ffffff 20px) top right / 50% 100% no-repeat;
    --unavailable-full: repeating-linear-gradient(45deg,#f8f8f8 0px,#f8f8f8 10px,#e8e8e8 10px, #e8e8e8 20px);
    --unavailable-left-toColor: repeating-linear-gradient(45deg, whitesmoke 0px, whitesmoke 10px, #e8e8e8 10px, #e8e8e8 20px) top left / 46% 100% no-repeat;
    --unavailable-left-toStripe: repeating-linear-gradient(45deg, whitesmoke 0px, whitesmoke 10px, #e8e8e8 10px, #e8e8e8 20px) top left / 50% 100% no-repeat;
    --unavailable-right-fromColor: repeating-linear-gradient(45deg, whitesmoke 0px, whitesmoke 10px, #e8e8e8 10px, #e8e8e8 20px) top right / 46% 100% no-repeat;
    --unavailable-right-fromStripe: repeating-linear-gradient(45deg, whitesmoke 0px, whitesmoke 10px, #e8e8e8 10px, #e8e8e8 20px) top right / 50% 100% no-repeat;
}

/* Basic status colors */
.available-full { background: lightgreen !important; }
.past-start-available { background: linear-gradient(to right, lightgray 46%, lightgreen 54%) !important; }
.vorlauf-start-available { background: linear-gradient(to right, lightgray 46%, lightgreen 54%) !important; }
.pending-start-available { background: linear-gradient(to right, gold 46%, lightgreen 54%) !important; }
.happy-start-available { background: linear-gradient(to right, greenyellow 40%, lightgreen 60%) !important; }
.unavailable-start-available { background: var(--unavailable-left-toColor),linear-gradient(to right, transparent 46%, lightgreen 56%) !important}
.booked-start-available { background: linear-gradient(to right, lightsalmon 46%, lightgreen 54%) !important; }
.available-start-available { background: linear-gradient(to right, lightgreen 46%, lightgreen 54%) !important; }
.blocked-start-available { background: var(--blocked-left-toColor),linear-gradient(to right, transparent 46%, lightgreen 56%) !important; }

.unavailable-full {background: var(--unavailable-full);}
.past-start-unavailable { background: linear-gradient(to right, lightgray 46%, transparent 54%),var(--unavailable-right-fromColor);}
.vorlauf-start-unavailable { background: linear-gradient(to right, lightgray 46%, transparent 54%),var(--unavailable-right-fromColor);}
.happy-start-unavailable { background: linear-gradient(to right, greenyellow 46%, transparent 54%),var(--unavailable-right-fromColor);}
.available-start-unavailable {background: linear-gradient(to right,lightgreen 46%, transparent 54%),var(--unavailable-right-fromColor);}
.booked-start-unavailable { background: linear-gradient(to right, lightsalmon 46%, transparent 54%),var(--unavailable-right-fromColor);}
.unavailable-start-unavailable { background: var(--unavailable-left-toStripe),var(--unavailable-right-fromStripe);}
.blocked-start-unavailable { background: var(--blocked-left-toStripe),var(--unavailable-right-fromStripe);}

.happy-full { background: greenyellow !important; }
.past-start-happy { background: linear-gradient(to right, lightgray 46%, greenyellow 54%) !important; }
.vorlauf-start-happy { background: linear-gradient(to right, lightgray 46%, greenyellow 54%) !important; }
.pending-start-happy { background: linear-gradient(to right, gold 46%, greenyellow 54%) !important; }
.unavailable-start-happy { background: var(--unavailable-left-toColor), linear-gradient(to right, transparent 46%, greenyellow 56%) !important; }
.available-start-happy { background: linear-gradient(to left, greenyellow 40%, lightgreen 60%) !important; }
.booked-start-happy { background: linear-gradient(to right, lightsalmon 46%, greenyellow 54%) !important; }
.happy-start-happy { background: linear-gradient(to right, greenyellow 46%, greenyellow 54%) !important; }
.blocked-start-happy { background: var(--blocked-left-toColor),linear-gradient(to right, transparent 46%, greenyellow 56%) !important; }

.booked-full { background: lightsalmon !important; }

.past-start-booked { background: linear-gradient(to right, lightgray 46%, lightsalmon 54%) !important; }
.vorlauf-start-booked { background: linear-gradient(to right, lightgray 46%, lightsalmon 54%) !important; }
.pending-start-booked { background: linear-gradient(to right, gold 40%, lightsalmon 54%) !important; }
.unavailable-start-booked { background: var(--unavailable-left-toColor),linear-gradient(to right, transparent 46%, lightsalmon 56%) !important; }
.available-start-booked { background: linear-gradient(to right,lightgreen 46%, lightsalmon 54%) !important; }
.happy-start-booked { background: linear-gradient(to right, greenyellow 46%, lightsalmon 54%) !important; }
.booked-start-booked { background: linear-gradient(to right, lightsalmon 40%,white 50%, lightsalmon 60%) !important; }
.blocked-start-booked { background: var(--blocked-left-toColor),linear-gradient(to right, transparent 46%, lightsalmon 56%) !important; }

.pending-full { background: gold !important; }


.past-start-pending { background: linear-gradient(to right, lightgray 46%, gold 54%) !important; }
.vorlauf-start-pending { background: linear-gradient(to right, lightgray 46%, gold 54%) !important; }
.booked-start-pending { background: linear-gradient(to right, lightsalmon 46%, gold 54%) !important; }
.unavailable-start-pending { background: var(--unavailable-left-toColor),linear-gradient(to right, transparent 46%, gold 56%) !important; }
.available-start-pending { background: linear-gradient(to right, lightgreen 46%, gold 54%) !important; }
.happy-start-pending { background: linear-gradient(to right, greenyellow 46%, gold 54%) !important; }
.pending-start-pending { background: linear-gradient(to right, gold 40%,white 50%, gold 60%) !important; }
.blocked-start-pending { background: var(--blocked-left-toColor),linear-gradient(to right,transparent 46%, gold 56%) !important; }

.blocked-full {background: var(--blocked-full);}
.past-start-blocked { background: linear-gradient(to right, lightgray 46%, transparent 54%)left no-repeat,var(--blocked-right-fromColor); }
.vorlauf-start-blocked { background: linear-gradient(to right, lightgray 46%, transparent 54%)left no-repeat,var(--blocked-right-fromColor); }
.booked-start-blocked { background: linear-gradient(to right, lightsalmon 46%, transparent 54%)left no-repeat,var(--blocked-right-fromColor); }
.unavailable-start-blocked { background: var(--unavailable-left-toStripe),var(--blocked-right-fromStripe); }
.available-start-blocked { background: linear-gradient(to right, lightgreen 46%, transparent 54%)left no-repeat,var(--blocked-right-fromColor); }
.happy-start-blocked { background: linear-gradient(to right, greenyellow 46%, transparent 54%)left no-repeat,var(--blocked-right-fromColor); }
.pending-start-blocked { background: linear-gradient(to right, gold 46%, transparent 54%)left no-repeat,var(--blocked-right-fromColor); }
.blocked-start-blocked { background: var(--blocked-left-toColor),var(--blocked-right-fromStripe); }

.vorlauf-full { background: lightgray !important;}
.past-start-vorlauf { background: linear-gradient(to right, #d3d3d3a6 35%, lightgray 65%) !important; }
.booked-start-vorlauf { background: linear-gradient(to right, lightsalmon 46%, lightgray 54%) !important; }
.unavailable-start-vorlauf { background: var(--unavailable-left-toColor),linear-gradient(to right, transparent 46%, lightgray 54%) !important; }
.available-start-vorlauf { background: linear-gradient(to right, lightgreen 46%, lightgray 54%) !important; }
.happy-start-vorlauf { background: linear-gradient(to right, greenyellow 46%, lightgray 54%) !important; }
.pending-start-vorlauf { background: linear-gradient(to right, gold 46%, lightgray 54%) !important; }
.blocked-start-vorlauf { background: var(--blocked-left-toColor),linear-gradient(to right,transparent 46%, lightgray 54%) !important; }


.selected { background: orange !important; }
.my-booking { box-shadow: 0 0 6px #090909d9; }
.preview-shift{
    opacity: 0.6 !important;
    
}

/* Past-Versionen (für Vergangenheit) */
.past-full { background: lightgray !important;opacity: 0.6 !important;filter: grayscale(70%) !important;border-style: none !important;}
.pending-start-past { background: linear-gradient(to right, gold 46%, lightgray 54%) !important; }
.booked-start-past { background: linear-gradient(to right, lightsalmon 46%, lightgray 54%) !important; }
.blocked-start-past { background: var(--blocked-left-toColor),linear-gradient(to right,whitesmoke 50%, lightgray 54%) !important; }
.unavailable-start-past { background: repeating-linear-gradient(45deg, whitesmoke 0px, whitesmoke 10px, #e8e8e8 10px, #e8e8e8 20px) top left / 50% 100% no-repeat,linear-gradient(to right, whitesmoke 55%, lightgray 54%) !important; }

.pending-start-past.past,
.booked-start-past.past,
.blocked-start-past.past,
.unavailable-start-past.past,
.available-full.past,
.past-start-available.past,
.vorlauf-start-available.past,
.pending-start-available.past,
.happy-start-available.past,
.unavailable-start-available.past,
.booked-start-available.past,
.available-start-available.past,
.blocked-start-available.past,
.unavailable-full.past,
.past-start-unavailable.past,
.vorlauf-start-unavailable.past,
.pending-start-unavailable.past,
.happy-start-unavailable.past,
.available-start-unavailable.past,
.booked-start-unavailable.past,
.unavailable-start-unavailable.past,
.blocked-start-unavailable.past,
.happy-full.past,
.past-start-happy.past,
.vorlauf-start-happy.past,
.pending-start-happy.past,
.unavailable-start-happy.past,
.available-start-happy.past,
.booked-start-happy.past,
.happy-start-happy.past,
.blocked-start-happy.past,
.booked-full.past,
.past-start-booked.past,
.vorlauf-start-booked.past,
.pending-start-booked.past,
.unavailable-start-booked.past,
.available-start-booked.past,
.happy-start-booked.past,
.booked-start-booked.past,
.blocked-start-booked.past,
.pending-full.past,
.past-start-pending.past,
.vorlauf-start-pending.past,
.booked-start-pending.past,
.unavailable-start-pending.past,
.available-start-pending.past,
.happy-start-pending.past,
.pending-start-pending.past,
.blocked-start-pending.past,
.blocked-full.past,
.past-start-blocked.past,
.vorlauf-start-blocked.past,
.booked-start-blocked.past,
.unavailable-start-blocked.past,
.available-start-blocked.past,
.happy-start-blocked.past,
.pending-start-blocked.past,
.blocked-start-blocked.past{
    opacity: 0.6 !important;
    filter: grayscale(70%) !important;
}


/* ==========  ========== */


/* Layout styles */
.myboxtitel { 
    font-size: x-large; 
    padding: 10px; 
    background: #4eadf4;
    border: 1px solid black; 
    border-radius: 10px;
}

.mybox { 
    margin: 15px 0; 
}

.reihe { 
    display: grid; 
    grid-template-columns: repeat(12, 1fr); 
    gap: 1px; 
    max-width: 100%; 
    padding: 5px;
    box-sizing: border-box;
}

@media (max-width: 768px) { 
    .reihe { grid-template-columns: repeat(8, 1fr); }
    .zelle { font-size: 0.75em; padding: 2px; min-width: 20px; }
}

.zelle { 
    border: 1px solid #4D4D4D; 
    padding: 3px; 
    text-align: center; 
    cursor: pointer; 
    min-width: 20px; 
    box-sizing: border-box; 
    white-space: nowrap; 
    font-size: 0.85em;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.zelle.selected::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 165, 0, 0.6); /* halbdurchsichtige Orange-Schicht */
    z-index: 20;
}

/* Form styles */

button, button[type="submit"] {
	background:lightblue;
	color:white;
	padding:5px 20px;
	border:1px solid black;
	border-radius:8px;
	margin-top: 15px;
	font-size:20px;
	cursor:pointer;
	text-transform: none;
}

/* Admin: Rote Buttons (z.B. Löschen) – erweitert WordPress .button Klasse */
.admin-color .button.red,
.button.button-small.red,
.button.red {
    color: #fff !important;
    background: #d63638 !important;      /* WP-Standard-Rot (wie "Delete") */
    border-color: #b32d2e !important;
    border-radius:8px;
    box-shadow: 0 1px 0 #b32d2e !important;
    text-shadow: 0 -1px 1px #b32d2e, 1px 0 1px #b32d2e, 0 1px 1px #b32d2e, -1px 0 1px #b32d2e !important;
}
button-small.gray{background: #lightgray !important;}

.admin-color .button.red:hover,
.button.button-small.red:hover,
.button.red:hover {
    background: #b32d2e !important;
    border-color: #9e2829 !important;
    color: #fff !important;
    border-radius:8px;
}

.admin-color .button.red:focus,
.button.button-small.red:focus,
.button.red:focus {
    border-color: #8c2022 !important;
    box-shadow: 0 0 0 1px #8c2022 !important;
}

input[type="number"]{
	font-size:1.4em !important;
	border:1px solid black;
}

.booking-form input, .booking-form textarea { 
    width: 100%; 
    margin-bottom: 10px; 
    padding: 8px; 
    box-sizing: border-box; 
}

#booking-success { 
    display: none; 
    color: green; 
    padding: 10px; 
    background: #d4edda; 
    border: 1px solid #c3e6cb; 
    margin: 10px 0; 
}

.refresh-btn { 
    background: #0073aa; 
    color: white; 
    padding: 5px 10px; 
    border: none; 
    cursor: pointer; 
    margin: 10px 0; 
}

#sb-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    z-index: 99999;
}

#sb-overlay-bg {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.05) !important;
}

#sb-overlay-box {
    position: relative;
    width: 350px;
    max-width: 90%;
    margin: 100px auto;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 5px 25px rgba(0,0,0,0.35);
}

.sb-resource-info {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.sb-resource-img img {
    max-width: 260px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.sb-resource-desc {
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 600px;
}

/* ========== FORMULAR-OVERLAY – super einfach, ohne Transition ========== */
#booking-form-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#booking-form-overlay.active {
    display: flex;   /* kein !important, keine opacity, kein transition */
}

#booking-form-overlay .booking-form {
    display: block;
}

#booking-form-modal {
    background: white;
    max-width: 520px;
    width: 100%;
    border-radius: 16px;
    padding: 50px 30px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
}

#booking-form-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #c00;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

/* ———————————————————————— MAIN KALENDER LEGENDE – 100% sauber ———————————————————————— */
.esherpa-main-calendar-legend {
    text-align: left;
    margin: 70px auto 40px;
    font-size: 16px;
    color: #333;
    line-height: 2.4;
}

.esherpa-legend-item {
    display: inline-block;
    margin: 0 16px;
    min-width: 150px;
    vertical-align: middle;
}

.esherpa-legend-color {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    border: 1px solid #4D4D4D;
}

/* ================ GUTHABEN-LEISTE – LINKS BETRAG, RECHTS BUTTON ================ */
.esherpa-balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.balance-amount {
    text-align: left;
}

.balance-amount strong {
    font-size: 16px;
    opacity: 0.95;
}

.big-balance {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: -1px;
    display: block;
    margin-top: 4px;
}

.balance-actions {
    text-align: right;
}

.balance-topup-btn {
    background: #00d1b2 !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 17px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,209,178,0.4) !important;
    transition: all 0.3s ease !important;
}

.balance-topup-btn:hover {
    background: #00e6c3 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,209,178,0.5) !important;
}

/* Mobile – untereinander */
@media (max-width: 600px) {
    .esherpa-balance-bar {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    .balance-actions {
        margin-top: 20px;
    }
    .big-balance {
        font-size: 28px;
    }
}

.esherpa-online-users {
    background: #f8fff8;
    border: 1px solid #b2d8b2;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-family: system-ui, sans-serif;
}
.esherpa-online-users h3,
.esherpa-online-users h4 {
    margin-top: 0;
    color: #27ae60;
}
.esherpa-online-users ul {
    margin: 10px 0;
    padding-left: 20px;
}
.esherpa-online-users small {
    color: #666;
    font-size: 13px;
}

.esherpa-resource-overview-wrapper {
        max-width: 1200px;
        margin: 0px;
        padding: 0 0px;
        width: 100%;
        box-sizing: border-box;
    }
    .esherpa-resource-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 20px;
    }
    .esherpa-resource-card {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        transition: all 0.4s ease;
        display: flex;
        flex-direction: column;
    }
    .esherpa-resource-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(34,113,177,0.2);
    }
    .card-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    .card-image.placeholder {
        height: 200px;
        background: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 18px;
    }
    .card-content {
        padding: 24px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    .card-content h3 a {
        color: #2271b1;
        text-decoration: none;
        font-size: 24px;
        margin: 0 0 12px;
    }
    .card-content h3 a:hover { color: #00b26f; }
    .description { color: #555; line-height: 1.6; margin-bottom: 12px; }
    .price { font-weight: bold; color: #2271b1; margin: 12px 0; }
    .mini-calendar { margin: 20px 0; text-align: center; }
    .legend {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
        color: #666;
        justify-content: center;
        margin: 20px 0 10px;
    }
    .legend span { display: flex; align-items: center; gap: 6px; }
    .legend i {
        display: inline-block;
        width: 16px;
        height: 16px;
        border-radius: 50%;
    }
    .card-button {
        margin-top: auto;
        text-align: center;
        padding-top: 20px;
    }
    .esherpa-button {
        background: #2271b1;
        color: white;
        padding: 15px 15px;
        border-radius: 8px;
        border:none;
        margin-left: 10px;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px !important;
        display: inline-block;
        transition: all 0.3s;
    }
    .esherpa-button:hover {
        background: #00b26f;
        color:white !important;
        transform: scale(1.05);
    }

.esherpa-button.green { background: #00b26f; }
.esherpa-button.red { background: #d63638; }
.esherpa-button.orange { background: #e67e22; }
.esherpa-button.gray { background: lightgray; }
.esherpa-button.gold { background: gold; }

.esherpa-mini-button { 
	background:#2271b1;
	color:white !important;
	padding:5px 10px;
	font-size:12px !important; 
	border:none;
	border-radius:5px; 
	box-shadow:none;
	cursor:pointer;
}
.esherpa-mini-button:hover {
		background:lightgray !important;
        color:white !important;
        transform: scale(1.1) !important;
}
.esherpa-mini-button.green { background:#00b26f;}
.esherpa-mini-button.gray { background:lightgray;}
.esherpa-mini-button.red { background:#d63638;}
.esherpa-mini-button.gray.active { background:lightblue;}
.esherpa-mini-button.gray.active:hover { background:lightblue !important;}

.esherpa-small-button{ 
background:#2271b1;
color:white; 
padding:15px 20px; 
font-size:20px !important; 
border:none; 
border-radius:10px; 
font-weight:bold; 
box-shadow:none; 
cursor:pointer; 
}

.esherpa-small-button.green { background:#00b26f;}
.esherpa-small-button.gray { background:lightgray;}
.esherpa-small-button.red { background:#d63638;}

    
    @media (max-width: 768px) {
        .esherpa-resource-grid { grid-template-columns: 1fr;gap:5px; }
        .esherpa-resource-overview-wrapper { padding: 0 15px;margin: 0px; }
    }


/* ============================================================= */
/* MY-RESOURCES – FINAL & MINIMAL (nur was du wirklich brauchst) */
/* ============================================================= */

/* eSherpa Notices – Success, Error, Info (wie Admin-Design)    */

h4.wp-block-heading {color: orange !important;}

.esherpa-notice {
    max-width: 90%;
    margin: 30px auto;
    padding: 20px 30px;
    border-radius: 16px;
    font-size: 17px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.esherpa-notice::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 6px;
    background: currentColor;
    opacity: 0.3;
}

/* SUCCESS – Grün */
.esherpa-notice.success {
    background: #e8f5e9;
    color: #155724;
}

/* ERROR – Rot */
.esherpa-notice.error {
    background: #ffebee;
    border-left-color: #d32f2f;
    color: #721c24;
}

/* INFO – Blau */
.esherpa-notice.info {
    background: #e3f2fd;
    border-left-color: #2271b1;
    color: #0c5460;
}


/* Wrapper */
.esherpa-my-resource-wrapper {
    
    margin: 40px auto;
   
    border-radius: 20px;
   
    overflow: hidden;
}

.esherpa-my-resource-header {
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 16px;
}

.esherpa-resource-switcher { text-align:center; margin:30px 0; }
.esherpa-resource-btn { 
	display:inline-block; 
	padding:8px 16px; 
	margin:4px; 
	background:#f0f0f0; 
	border-radius:10px; 
	text-decoration:none; 
	color:#333; 
	font-weight:bold; 
	transition:all .3s; 
}
.esherpa-resource-btn.active, .esherpa-resource-btn:hover { background:#2271b1; color:white; }


.esherpa-my-resource-header h2 { font-size: 26px; color:white;}
.esherpa-my-resource-header p { margin: 10px 0 0; font-size: 18px; opacity: 0.9; }

.esherpa-my-resource-content { padding: 30px; }

/* Farbige Sektionen */
.esherpa-section.green   { background:#e8f5e9; }
.esherpa-section.blue    { background:#e3f2fd; }
.esherpa-section.orange  { background:#fff3e0; }
.esherpa-section.purple  { background:#f3e5f5; }

.esherpa-section {
    margin-bottom: 60px;
    padding: 30px;
    border-radius: 16px;
}

.esherpa-section h3 {
    margin-top: 0;
    font-size: 26px;
    text-align: center;
}
@media (max-width: 768px) {
	.esherpa-section {
	    margin-bottom: 20px;
	    padding: 10px;
	    border-radius: 12px;
	}
	.esherpa-my-resource-content { padding: 5px; }
}

/* Öffnungszeiten Grid */
.opening-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.opening-day-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.day-name {
    font-size: 20px;
    font-weight: 600;
    color: #2271b1;
}

/* EINZIGER SCHIEBER – clean, ohne Label */
.clean-toggle {
    margin-left: auto;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 36px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #00b26f;
}

input:checked + .slider:before {
    transform: translateX(28px);
}

.slider.round { border-radius: 36px; }
.slider.round:before { border-radius: 50%; }

/* Zeitfenster */
.time-slots {
    margin-top: 20px;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.time-select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 18px;
    background: white;
    min-width: 120px;
}

.opening-day-card.enabled .time-select {
    border-color: #00b26f;
    background: #f0fff4;
}

.arrow {
    font-size: 24px;
    color: #00b26f;
    font-weight: bold;
}

/* Speichern Button */
.esherpa-save-button{
    text-align: center;
    margin: 40px 0;
}

.esherpa-save-button button {
    background: #2271b1;
    color: white;
    padding: 25px 40px;
    font-size: 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 12px 40px rgba(34,113,177,0.5);
    transition: all 0.3s;
}

.esherpa-save-button button:hover {
    background: #135e96;
    transform: translateY(-3px);
}



/* Hinweis */
.full-day-hint {
    text-align: center;
    padding: 16px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 16px;
}

/* Login-Hinweis */
.esherpa-notice.login-required {
    max-width: 600px;
    margin: 60px auto;
    padding: 50px;
    background: linear-gradient(135deg, #f0f8ff, #e3f2fd);
    border: 2px solid #2271b1;
    border-radius: 20px;
    text-align: center;
}

.esherpa-login-button {
    background: #2271b1;
    color: white;
    padding: 18px 50px;
    font-size: 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(34,113,177,0.4);
    transition: all .3s;
}

.esherpa-login-button:hover {
    background: #135e96;
    transform: translateY(-3px);
}
/* Zeitfenster nur anzeigen, wenn .enabled */
.opening-day-card .time-slots {
    display: none;
}
.opening-day-card.enabled .time-slots {
    display: block;
}

/* Hinweis nur bei full-day */
.opening-day-card .full-day-hint {
    display: block;
}
.opening-day-card.enabled .full-day-hint {
    display: none;
}

//KALENDERSLIDER
/* ——— DATE RANGE SLIDER ——— */
.esherpa-date-range-slider {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px 0;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
}

.range-info {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
}

.range-info strong {
    color: #2271b1;
}

#date-from, #date-to {
    color: #00b26f;
    font-weight: bold;
}

.slider-container {
    position: relative;
    height: 70px;
    margin: 0 20px;
}

.track-bg {
    position: absolute;
    top: 33px;
    left: 0;
    right: 0;
    height: 6px;
    background: #e0e0e0;
    border-radius: 6px;
}

.track-fill {
    position: absolute;
    top: 33px;
    height: 6px;
    background: #00b26f;
    border-radius: 6px;
    left: 0%;
    right: 71%;
}

.thumb {
    position: absolute;
    top: 18px;
    width: 50px;
    height: 50px;
    background: #00b26f;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 20px rgba(0,178,111,0.4);
    z-index: 10;
}
#s1, #s2 {
    position: absolute;
    width: 100%;
    height: 70px;   
    top: 0;
    left: 0;
    background: transparent;
    -webkit-appearance: none;
    outline: none;
    pointer-events: none;
    margin: 0;
}
#s1::-webkit-slider-thumb,
#s2::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all !important;
    width: 70px;           /* ← riesig für Finger */
    height: 70px;
    background: transparent !important;
    cursor: ew-resize;
}
#range-start,
#range-end {
    position: absolute;
    width: 100%;
    height: 90px;   
    top: 0;
    left: 0;
    background: transparent;
    -webkit-appearance: none;
    outline: none;
    pointer-events: none;
    margin: 0;
    z-index:999;
}

#range-start::-webkit-slider-thumb,
#range-end::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all !important;
    width: 70px;           /* ← riesig für Finger */
    height: 70px;
    background: transparent !important;
    cursor: ew-resize;
}

#range-start::-moz-range-thumb,
#range-end::-moz-range-thumb {
    pointer-events: all !important;
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    cursor: ew-resize;
}

#apply-range {
    margin-top: 35px;
    padding: 14px 50px;
    font-size: 19px;
}

//Overview klappen

.esherpa-resource-card {
    border: 1px solid #ddd solid;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.esherpa-resource-card.active .resource-header {
    background: #2271b1 !important;
    color: white !important;
}

.esherpa-resource-card.active .toggle-arrow {
    color: white;
    transform: rotate(0deg) !important;
}

.resource-header {
    padding:0 10px;
    background: #f0f8ff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}
.resource-header.ausblenden {
background: rgba(230,230,230,0.3);
}
.resource-header.ausblenden h3{
color: lightgray !important;
}
/* Zusammengeklappt */
.esherpa-resource-card.collapsed .resource-content,
.esherpa-resource-card.collapsed .full-calendar-container {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    opacity: 0;
}

.toggle-arrow {
    font-size: 24px;
    transition: transform 0.3s;
}

.esherpa-resource-card.collapsed .toggle-arrow {
    transform: rotate(-90deg);
}

.resource-content {
    padding: 25px;
    transition: all 0.4s ease;
}

.esherpa-resource-card.collapsed .resource-content {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
}

.full-calendar-container {
    background: #f8fdff;
    padding: 30px;
    border-top: 1px solid #ddd;
    display: none;
}

.full-calendar-container.active {
    display: block;
    animation: fadeIn 0.6s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.esherpa-image-gallery .gallery-item { cursor: move; transition: opacity 0.3s; }
.esherpa-image-gallery .gallery-item.dragging { opacity: 0.5; }
.esherpa-image-gallery .delete-image-btn:hover { background:#c62828; }

.esherpa-status-approved { color:#27ae60; font-weight:bold; }
.esherpa-status-pending { color:#e67e22; font-weight:bold; }
.esherpa-status-rejected { color:#d63638; font-weight:bold; }
.esherpa-my-blocks table { width:100%; border-collapse:collapse; margin:20px 0; }
.esherpa-my-blocks th, .esherpa-my-blocks td { padding:12px; text-align:left;border:none;  }
.esherpa-my-blocks th { background:#f7f7f7; font-weight:bold; }
.esherpa-my-blocks tr { border-bottom:1px solid #ddd; }
.esherpa-my-blocks tr:hover { background:#f9f9f9; }
.esherpa-card {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    overflow: hidden;
}

.regeln-input-number{
width:100%;
padding:5px;
font-size:14px;
text-align:center;
border-radius:8px;"
}

@media (max-width: 768px) {

.full-day-hint {
    padding: 5px;
    border-radius: 10px;
    margin-top: 10px;
}
.opening-day-card {
    border-radius: 10px;
    padding: 10px;
}
.opening-days-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

    .esherpa-card {
        padding: 10px;           /* weniger Innenabstand – spart Platz */
        margin-bottom: 20px;     /* kleinerer Abstand zwischen Cards */
        
    }
	.esherpa-my-blocks table {
	    width: 100%;
	    min-width: 800px; /* erzwingt Scrollen, wenn zu breit */
	    border-collapse: collapse;
	}
	
	.esherpa-my-blocks {
	    overflow-x: auto;
	    -webkit-overflow-scrolling: touch; /* flüssigeres Scrollen auf iOS */
	    margin: 20px 0;
	    padding: 10px 0; /* etwas Luft */
	}
}