:root {
    --hourly-scale: 1;
    --daily-scale: 1;
    --time-scale: 1;
    --temp-scale: 1;
    --temp-icon-scale: 1;
    --hourly-ui-scale: 1.2;
    --night-opacity: 0.85;
}

/* =========================
   STÜNDLICHE VORHERSAGE
   DATUMSTRENNER
   ========================= */

.hourDaySeparatorDate { /*  box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: nowrap;

    padding: 0 20px;
    width: 110px;
    height: 150px;
    box-sizing: border-box;

    border: 2px solid #00c3ff;
    border-radius: 12px;

    background: rgba(0,0,0,0.18);

    color:#00c3ff;
    
}

.hourDaySeparatorRelative {
    font-size: 26px;
    font-weight: 300;
    text-transform: lowercase;
    opacity: 0.85;
    margin-bottom: 2px;
}
.hourDaySeparatorTomorrow {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.2em;
}
.hourDaySeparatorLine { /* links und rechts */
    display:none;
}
.hourDaySeparatorDate { /*  box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: nowrap;

    padding: 34px 20px;
    margin-top:10px;
    margin-right: 10px;

    border: 2px solid #00c3ff;
    border-radius: 12px;

    background: rgba(0,0,0,0.18);
    box-sizing: border-box;

    color:#00c3ff;
    
}

.hourDaySeparatorWeekday {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
}

.hourDaySeparatorFullDate {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
}

/* Nachtmodus */
body.night-mode .hourDaySeparatorLine {
    background: rgba(255,255,255,0.35);
}

body.night-mode .hourDaySeparatorDate {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
}

input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

body.night-mode::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(0,0,0,var(--night-opacity));
    pointer-events:none;
    z-index:99998;
}

#main,
#dailySidebar {
    transform: translate(
        var(--amoled-shift-x, 0px),
        var(--amoled-shift-y, 0px)
    );
}


/* =========================================
   NIGHTMODE – Temperaturen weiß
   ========================================= */

body.night-mode .tempRow .tempItem > span,
body.night-mode .dayTemp .tempSub,
body.night-mode .dayTemp .tempMain {
    color: #ffffff !important;
}



.settingRow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    width: 100%;
}

.settingRow label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.settingRow input[type="range"] {
    width: 80%;
    max-width: 280px;
    accent-color: #ff8800;
}

#fullscreenBtn {
    display: none;
}
#screenOverlay {
    position: fixed;
    top: 38px;
    left: 8px;
    z-index: 999999;

    background: rgba(0,0,0,0.75);
    color: #fff;

    padding: 8px 10px;
    border-radius: 8px;

    font-size: 13px;
    line-height: 1.4;
    font-family: Consolas, monospace;

    pointer-events: none;
    /* white-space: nowrap;  ← auskommentieren oder löschen */
}
.warning-banner {
    color: #ffdd00;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    padding: 6px 0 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-12px);
}

/* Horizontale Trennlinie über Hourly */
.hourly-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent);
    margin: 8px 5px 20px 5px;   /* Abstände oben/unten */
    border-radius: 2px;
}

/* Optional: Schönerer Glow-Effekt */
.hourly-divider {
    box-shadow: 0 1px 4px rgba(255,255,255,0.1);
}

.input-wrapper {
    position: relative;
    width: 100%;
}
.dwd-countdown {
    font-weight: 500;
    opacity: 0.95;
    display: inline-block;
    margin-top: 4px;
}
.no-location-error {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(0, 0, 0, 0.97) !important;
    color: #ff6666 !important;
    padding: 35px 30px !important;
    border-radius: 20px !important;
    text-align: center !important;
    z-index: 99999 !important;
    border: 4px solid #ff4444 !important;
    max-width: 92% !important;
    width: 340px !important;
    box-shadow: 0 15px 40px rgba(255, 60, 60, 0.6) !important;
}

.no-location-error h2 {
    font-size: 26px !important;
    margin: 0 0 18px 0 !important;
}

.no-location-error p {
    font-size: 17.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 25px !important;
}

.no-location-error button {
    font-size: 18px !important;
    padding: 16px 32px !important;
    background: #ff4444 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    width: 100% !important;
}

.debug-info {
    font-size: 10px;
    line-height: 1.4;
    opacity: 0.3 !important;           /* ← Genau wie gewünscht */
    text-align: center;
    padding: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    margin-top: 6px;
    color: #ccc;
    transform: translateY(-45px) !important; 
}

.clear-btn {
    transition: all 0.2s ease;
}
/* ====================== DWD WARNING POPUP ====================== */
.dwdWarningPopup {
    position: fixed;
    top: 38%;           /* Standard-Position */
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.97);
    color: white;
    padding: 24px 26px;
    border-radius: 14px;
    max-width: 520px;
    width: 88%;
    z-index: 99999;
    box-shadow: 0 20px 60px rgba(255, 60, 60, 0.75);
    border: 3px solid #ff4444;
    max-height: 65vh;
    overflow-y: auto;
}
@keyframes popupFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}
.clear-btn:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
}
body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}
#timeBlock {
    font-size: calc(1rem * var(--time-scale));

    width: calc(330px * var(--time-scale));
    height: calc(140px * var(--time-scale));

    padding: calc(15px * var(--time-scale));

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: all 0.2s ease;
}
.sidebarButton {
    padding: 12px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 10px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 22px;
}
.sidebarButton:hover {
    background: rgba(255,255,255,0.2);
}

/* Käfer pulsiert groß/klein bei Error */
@keyframes bugPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(2.5); }   /* maximale Größe */
    100% { transform: scale(1); }
}
@keyframes bugPulseHuge {
    0%   { transform: scale(1); }
    50%  { transform: scale(2); }   /* 🔥 wirklich riesig */
    100% { transform: scale(1); }
}

#debugIcon.error-pulse {
    animation: bugPulseHuge 1.2s ease-in-out infinite !important;
    transform-origin: center center !important;
}


#debugIcon.error-pulse img {
    animation: bugPulseHuge 1.2s ease-in-out infinite !important;
    transform-origin: center center !important;
}

.debugIcon.error-pulse {
    animation: bugPulse 1.2s ease-in-out infinite;
}


/* =========================
   HEADER
========================= */
#header {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin: 20px;
    min-height: 160px;
}

/* =========================
   TIME BLOCK
========================= */


#time {
    font-size: calc(144px * var(--time-scale));
    font-weight: 700;
    line-height: 1;
    color: #d5d5d5;
}

#date {
    font-size: calc(28px * var(--time-scale));
    opacity: 0.7;
    margin-top: 4px;
}


/* =========================
   DIVIDER
========================= */
.divider {
    width: 1px;
    height: 130px;
    background: rgba(255,255,255,0.25);
}

.sectionDivider {
    height: 1px;
    width: 100%;
    margin: 10px 0;
    margin-top:-60px;
    background: rgba(255,255,255,0.25);

} 

.dividerVertical {
    width: 2px;
    align-self: stretch;
    background: rgba(255,255,255,0.2);
    height: auto;
    align-self: stretch;
    
}
/* =========================
   CURRENT WEATHER (FIXED)
========================= */
#tempCurrent {
    display: flex;
    flex-direction: column;
    align-items: center;   /* alles zentriert */
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

/* TEXT RECHTS */
.currentText {
    font-size: calc(84px * var(--temp-scale));
    display: flex;
    flex-direction: column;
    align-items: center;   /* WICHTIG */
    justify-content: center;
}

/* Temperatur links */
#currentTemp {
    font-size: calc(84px * var(--temp-scale));
    font-weight: bold;
    line-height: 1;
    transform: translatex(-10px);
}

/* GEFÜHLTE TEMPERATUR */
#feelsLike {
    /* color: #a3c0fc; */
    transform: translate(108px, -45px);
    font-size: 36px;

    min-height: 40px;   /* <<< wichtig */
}

/* WEATHER TEXT */
.weatherText {
    text-align: center;
    margin-left:30px;
    font-size: 16px;
    opacity: 0.8;
    transform: translatey(-50px);
    z-index: 999;
    margin-top:00px;
}

/* ICON LINKS */
#currentIcon {
    width: calc(80px * var(--temp-scale));
    height: calc(80px * var(--temp-scale));
    flex-shrink: 0;
}



/* REFRESH rechts */
#refresh {
    margin-top: auto;
    font-size: 14px;
    opacity: 1;
    margin-left:-40px;
    transform: translatex(40px);
}


/* =========================
   TODAY STATS
========================= */
#todayStats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}


#todayStats div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    white-space: nowrap;
}

#rainVal,
#sunriseVal,
#sunsetVal,
#location {
    font-size: calc(16px * var(--time-scale));
    opacity: 0.6;
    margin-bottom: 4px;
}

/* ICONS */
.icon {
    width: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.label {
    opacity: 0.7;
}

/* =========================
   FORECAST AREA
========================= */
#forecast {
    margin-top: auto;
    transform: translatex(10px);
}

h2 {
    font-weight: 300;
    opacity: 0.8;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* =========================
   HOURLY FORECAST
========================= */
#hourly {
    display: flex;
    flex-direction: row;
    gap: 47px;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
    padding-bottom: 10px;
}

#daily {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    align-items: stretch; /* optional */
}

.hourItem {
    flex: 0 0 auto;
    width: 80px;
}

.itemDivider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 6px 0;
}
.hourItem,
.dayItem {
    flex: 0 0 calc(80px * var(--hourly-scale));
}

.dayTop .dayDate {
    transform: translateX(-10px);
    font-size:24px;
}
.dayTemp {
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateX(10px);
}

.tempDots {
    font-size: 20px;
    letter-spacing: 2px;
}

.tempMain,
.tempSub {
    margin: 0;
    transform: none;
    font-size: 20px;
}

.hourIcon {
    width: calc(60px * var(--hourly-ui-scale));
    height: calc(60px * var(--hourly-ui-scale));
    margin: 0;
    margin-top:0px;
    align-items: center;
    justify-content: center;
}

/* .hourTemp {
    font-size: calc(16px * var(--hourly-scale));
} */


.hourTemp {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-size: calc(14px * var(--daily-scale))
}



/* =========================
   DAILY FORECAST
========================= */
#daily {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    flex-wrap: nowrap;   /* WICHTIG */
   
}

#dailySidebar .tempMain {
    font-size: 18px;   /* MAX Temperatur */
    font-weight: 600;
}

#dailySidebar .tempSub {
    font-size: 38px;   /* MIN Temperatur */
    opacity: 0.7;
}
.dayItem {
    min-width: 76px;

    padding: 0px;
    border-radius: 12px;
    text-align: center;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

}

.dayContent {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.dayIcon {
    width: calc(60px * var(--daily-scale));
    height: calc(60px * var(--daily-scale));
    margin: 6px 0;
    margin-left:-20px;
}

.dayText {
    font-size: calc(12px * var(--daily-scale));
    opacity: 0.6;
    margin-top:-20px;
}



/* =========================
   SCROLLBAR HIDE
========================= */
#hourly::-webkit-scrollbar,
#daily::-webkit-scrollbar {
    display: none;
}

/* =========================
   TEMPERATURE COLORS
========================= */
.temp-cold { color: #7ecbff; }
.temp-25 { color: #f2d675; }
.temp-30  { color: #ff8c42; }
.temp-35  { color: #ff4d4d; }
.temp-37  { color: #ff2e2e; }
.temp-40  { color: #de4feb; }
.temp-42  { color: #8b00ff; }

/* jede Zeile perfekt gleich aufgebaut */
.stat {
    display: grid;
    grid-template-columns: 22px 55px auto;
    align-items: center;
    column-gap: 8px;
}

/* ICON fix */
.stat .icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

/* LABEL = WICHTIG: gleiche Breite erzwingen */
.stat .label {
    width: 70px;
    opacity: 0.7;
    margin-left:-70px;
    font-size: 20px;
}

/* WERT = rechts bündig */
.stat .value {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.7;
}

.uiButton {
    font-size: 18px;
    padding: 10px 14px;
    margin: 4px 0;

    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);

    cursor: pointer;
    transition: 0.2s;
}

.uiButton:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.03);
}

.settingsButton {
    display: flex;
    align-items: center;
    gap: 8px;
}
#settingsContent {
    display: none;
    margin-top: 10px;
}

#settingsPanel.open #settingsContent {
    display: block;
}

/* Temperatur + Icon nebeneinander */
.tempRow {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FEELS + TEXT BLOCK */
.tempInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

#timeBlock {
    padding: calc(15px * var(--time-scale));
    padding-right: 40px;

}

#tempCurrent {
    padding: calc(15px * var(--time-scale));
    padding-right: 20px;
    margin-top: 30px;
    margin: 0 auto;
}

#todayStats {
    padding: calc(15px * var(--time-scale));
    padding-right: 10px;
 
}

#timeBlock,
#tempCurrent,
#todayStats {
    align-self: stretch;
    display: flex;
    height: auto;
}
/* =========================
   NEW LAYOUT SYSTEM
========================= */

#layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

#main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* RIGHT SIDEBAR */
#dailySidebar {
    width: 150px;
    display: flex;
    flex-direction: column;
    padding: 5px;
    margin-top:40px;
    border-left: 2px solid rgba(255,255,255,0.25);
    overflow: hidden;
}

/* DAILY LIST VERTICAL SCROLL */
#daily {
    display: flex;
    flex-direction: column;
    gap: 10px;

    overflow-y: auto;
    flex: 1;

    padding-right: 2px;
}

/* FULL WIDTH CARDS */
.dayItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}


.dayTop {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* WICHTIG */
    gap: 8px;
}

.dayDate {
    margin: 0;
    padding: 0;
    text-align: left;
}

/* SCROLLBAR HIDE */
#daily::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 1;
    background: #222;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

#middleRow {
    display: flex;
    height: 120px;
}

.middleBox {
    width: 360px;
    height: 120px;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.7;
    
}
/* ⭐ DIE WICHTIGE ZEILE */
.statRow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: 33%;
    margin-bottom: 10px;
    white-space: nowrap;
    transform: translateY(50px);
}

.statIcon {
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.statLabel {
    flex: 0;
    text-align: left;
}

.statValue {
    font-weight: bold;
    text-align: left;
    transform: none;
}

.middleDivider {
    width: 2px;
    height: 130px; /* passt zu deiner 120px Row */
    background: rgba(255, 255, 255, 0.2);
    align-self: center;
    margin-left: 25px;
    margin-top:-12px;
}


#hourly .tempMain {
    font-size: calc(24px * var(--hourly-ui-scale));
    font-weight: 500;
    opacity: 0.7;
    align-self: center;
    margin-left:0px;
    margin-top:0px;
    transform: translateX(-10px);
}

.itemTime
{
    opacity: 0.7;
    font-size: calc(24px * var(--hourly-ui-scale));
    margin-top:-5px;
    transform: translateX(10px);
}

#forecast .itemTime
{
    transform: translatex(0px);
}

#hourly .tempSub {
    transform: translateX(5px);
}

#box1 {
    display: flex;
    width:310px;
    transform: translatey(0px);
    align-items: left;
}
#box1, .statRow {
    white-space: nowrap;
}
#box2 {
    display: flex;
    width:160px;
}

#box3 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 25px);
    padding-right: 25px; /* Platz für die Zahl außerhalb */
    margin-top: 80px; /* oder mehr */
}

#box3 canvas {
    width: 100%;
    height: auto;
    
}

#settings {
    position: absolute;
    top: 10px;
    right: 130px; /* 100px nach links verschoben */
    margin-top:20px;
}

#reloadBtn {
    background: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

#reloadBtn:hover {
    background: #2a2a2a;
}

#warning 
{
    width: 280px;      /* oder passende Größe */
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;   /* verhindert Zusammenschieben */
}

#warning img {
    width: 90%;
    height: auto;
    object-fit: contain;
    margin-top:-40px;
    z-index: 0;
}

.statIcon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.tempRow {
    display: flex;
    justify-content: flex-start; /* linksbündig */
    align-items: center;
    margin-left:-50px;
    gap: 20px; /* Abstand zwischen max/min */
}

.tempItem {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tempIcon {
    width: 42px;   /* <-- größer */
    height: 42px;  /* <-- größer */
}

.dayDivider {
    height: 1px;
    width: 85%;
    margin: 12px auto 6px auto; /* 👈 oben mehr Abstand */
    background: rgba(255, 255, 255, 0.08);
}
.autoItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    margin-top: 4px;
    border-radius: 4px;
    cursor: default;
}

.autoItem:hover {
    background: rgba(255,255,255,0.2);
}


.weatherPopup {
    position: fixed;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(0, 0, 0, 1);
    color: #fff;

    font-size: 1.5rem;
    line-height: 1.4;

    padding: 12px 18px;
    border-radius: 12px;

    border: 2px solid #ffffff;

    z-index: 99999;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;

    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}


@keyframes heatFlicker {
    0%   { opacity: 1; transform: scale(1); }
    25%  { opacity: 0.6; }
    50%  { opacity: 1; transform: scale(1.05); }
    75%  { opacity: 0.4; }
    100% { opacity: 1; transform: scale(1); }
}

.hn-flimmer {
    animation: heatFlicker 0.8s infinite;
}

@keyframes heatHaze {
    0% {
        transform: scale(1) translateY(0);
        filter: blur(0px) contrast(1) brightness(1);
    }

    25% {
        transform: scale(1.02) translateY(-1px);
        filter: blur(0.6px) contrast(1.1) brightness(1.1);
    }

    50% {
        transform: scale(0.99) translateY(1px);
        filter: blur(0.3px) contrast(0.95) brightness(1.05);
    }

    75% {
        transform: scale(1.015) translateY(-1px);
        filter: blur(0.7px) contrast(1.15) brightness(1.1);
    }

    100% {
        transform: scale(1) translateY(0);
        filter: blur(0px) contrast(1) brightness(1);
    }
}

.hn-heat-haze {
    animation: heatHaze 2.4s infinite ease-in-out;
}

.hn-heat-img {
    animation: heatHaze 7.2s infinite;
}

#box3 {
    position: relative;
}

#box3 canvas {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;

}

#box3 {
    height: 320px; /* Tablet */
}

#tempCurrent {
    position: relative;
    margin: 0 auto;
}

#refreshClone {
    display: none;
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
    margin-left: 10px;
}

#locationClone {
    display: none !important;
}


.daySunHours {
    position: absolute;
    top: 4px;
    right: 0;
    font-size: 12px;
    opacity: 0.7;
    color: #ffd86b;
    font-weight: 500;
}

#visibilityOverlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(53, 53, 53, 0.908);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 22px;
    text-align: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    max-width: 90vw;
    max-height: 50vh;
}
#visibilityOverlay.show {
    opacity: 1;
}

    .warnText {
        font-size: 32px !important;
    }


    .warnSubText{
        font-size: 24px !important;
        white-space: nowrap !important;
    }

.counteraction {
    font-size: 24px !important;
    white-space: nowrap !important;
}

#lastUpdate {
    transform: translate(-1010px, 77px);
    }


    .debugIconClone{
        display:none;
        cursor:pointer;
        font-size:22px;
        user-select:none;
    }



/* ====================== DWD WARNUNGS BUTTON ====================== */
.dwd-warning-btn {
    position: absolute;
    right: -48px;
    top: 92px;
    background: #ff2222;
    color: white;
    font-weight: bold;
    font-size: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(255, 34, 34, 0.8);
    cursor: pointer;
    z-index: 100;
    border: 2px solid #fff;
    transition: all 0.2s ease;
    user-select: none;
}

.dwd-warning-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(255, 34, 34, 1);
}

.dwd-warning-btn:active {
    transform: scale(0.95);
}

    #time .seconds,
    .seconds {
        position: absolute !important;
        top: 132px !important;
        left: 200px !important;           /* ← Hier den horizontalen Abstand anpassen */
        font-size: 24px !important;
        opacity: 0.65 !important;
        margin: 0 !important;
        transform: translateX(-50%);     /* Zentrierung */
        z-index: 999 !important;
        display: inline-block !important;
    }


    #debugWindow {
        position: fixed !important;
        top: 60px;
        left: 30px;
        width: 400px;
        height: 300px;          /* feste Höhe → wichtig */
        background: rgba(0, 0, 0, 0.85);
        color: #00ff00;
        font-family: monospace;
        font-size: 14px;
        border-radius: 6px;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        overflow: hidden !important;   /* verhindert Scrollen im Fenster */
      }
      
      #debugWindowHeader {
        flex-shrink: 0;
        height: 42px;                 /* feste Höhe → verhindert Verschieben */
        background: rgba(0, 0, 0, 0.9);
        padding: 6px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        z-index: 10000;
      }
      
      #debugContent {
        flex: 1;
        overflow-y: auto;             /* nur hier wird gescrollt */
        padding: 6px 10px;
      }


    #valid_dwd
    {
        font-size: 18px !important;
    }



@media (min-width: 1100px) and (max-width: 1200px) /* S3 */
       and (min-height: 800px) and (max-height: 950px)
{

body.night-mode #dwdWarningButton {
        position: absolute;
        width: 290px;
        height: 180px;              /* ← gewünschte Höhe */
        right: 250px;
        top: 40px;
        
        background: rgba(31, 31, 31, 0.65);
        
        color: white;
        border-radius: 32px;
        border: 4px solid #742626;

        
        cursor: pointer;
        z-index: 100;
        overflow: visible;          /* Kreis darf rausragen */
        display: none;
        transition: transform 0.2s ease;
}
    .weatherPopupRow
    {
        row-gap: 56px !important;
    }
body.night-mode #fullscreenBtn
{
    transform: translateY(-120px) !important;
    transform: translateX(-20px) !important;
}

body.night-mode .dwdWarningPopup {
    top: 71% !important;           /* Über dem Diagramm */
    left: 45% !important;
    width: 85% !important; 
    max-width: 780px !important; 
    max-height: 400px !important;
    padding: 22px 24px !important; 
    font-size: 15px !important; 
}

#fullscreenBtn {
    position: absolute;
    top: 205px;
    left: 10px;
    z-index: 1000;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    user-select: none;
}

#fullscreenBtn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.15);
    border-color: #88ccff;
}

#fullscreenBtn.active {
    background: rgba(100, 220, 255, 0.25);
    border-color: #66aaff;
}

    .warning-banner {
    color: #ffdd00;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    padding: 6px 0 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-8px);
}

    #currentTemp {
        font-size: calc(112px * var(--temp-scale));
        font-weight: bold;
        line-height: 1;
        transform: translatex(-10px);
    }

    .chartToggleGroup{
        margin-top:245px !important;
        margin-left:400px !important;
    }

    /* Timeblock + Warning 300px nach rechts verschieben */
#tempCurrent {
    transform: translateX(120px) !important;
}



.warnDays {
    display: flex;
    flex-direction: column;
    gap: 4px;                /* Abstand zwischen den Tagen */
    max-height: 160px !important;       /* Höhe für ca. 3 Einträge */
    overflow-y: auto;        /* Scroll aktivieren */
    overflow-x: hidden;
    scrollbar-width: thin;   /* für Firefox */
    scrollbar-color: #666 #222;
    width: 250px;
}
    /* ====================== SEKUNDEN STARK VERSCHIEBEN ====================== */
    #time .seconds,
    .seconds {
        position: absolute !important;
        top: 122px !important;
        left: 200px !important;           /* ← Hier den horizontalen Abstand anpassen */
        font-size: 24px !important;
        opacity: 0.65 !important;
        margin: 0 !important;
        transform: translateX(-50%);     /* Zentrierung */
        z-index: 999 !important;
        display: inline-block !important;
    }

 
    
    #dwdWarningButton {
        position: absolute;
        width: 290px;
        height: 180px;              /* ← gewünschte Höhe */
        right: 250px;
        top: 40px;
        
        background: rgba(31, 31, 31, 0.65);
        
        color: white;
        border-radius: 32px;
        border: 4px solid #ff4444;
        box-shadow: 
            0 0 25px rgba(255, 34, 34, 0.9),
            0 0 8px rgba(255, 255, 255, 0.6);
        
        cursor: pointer;
        z-index: 100;
        overflow: visible;          /* Kreis darf rausragen */
        display: none;
        transition: transform 0.2s ease;
    }
    
    #dwdWarningButton:hover {
        transform: scale(1.03);
    }
    
    /* Perfekt runder Kreis */
    #dwdWarningButton::before {
        content: attr(data-count);
        position: absolute;
        top: -23px;
        left: 50%;
        transform: translateX(-50%);
        background: #ff2222;
        color: white;
        font-weight: 700;
        font-size: 17.5px;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        border: 3px solid #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 0 18px rgba(255, 34, 34, 0.95) !important;
        z-index: 200 !important;
    }
    
    /* Innerer Inhalt - Scrollbalken komplett unsichtbar */
    #dwdWarningButtonInner {
        height: 100%;
        padding: 28px 16px 12px;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        font-size: 14px;
        line-height: 1.35;
        
        /* Scrollbalken komplett ausblenden */
        -ms-overflow-style: none;          /* Internet Explorer / Edge */
        scrollbar-width: none;             /* Firefox */
    }

    /* WebKit (Chrome, Edge, Safari, etc.) */
    #dwdWarningButtonInner::-webkit-scrollbar {
        display: none;
    }
    
/* Zahl oben fixieren (nicht mitscrollen) */
#dwdWarningButton > span:first-child {
    flex-shrink: 0;
    margin-bottom: 10px;
}

/* WebKit Scrollbar */
#dwdWarningButton::-webkit-scrollbar {
    width: 6px;
}
#dwdWarningButton::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.6);
    border-radius: 3px;
}

    /* Versteckt die zweite Zahl im Inneren, lässt den Rest des Textes stehen */
    #dwdWarningButton .warning-count,
    #dwdWarningButton .count,
    #dwdWarningButton .number,
    #dwdWarningButton span:first-child,
    #dwdWarningButton > span:first-of-type {
        display: none !important;
    }

    #dwdWarningButton:hover {
        transform: scale(1.03);
    }


    :root {
        --diagram-x: 730;
    }

.dwdWarningPopup {
    top: 55% !important;           /* Über dem Diagramm */
    left: 35% !important;
    width: 68% !important; 
    max-width: 680px !important; 
    max-height: 330px !important;
    padding: 22px 24px !important; 
    font-size: 15px !important; 
}

.dwdWarningPopup > div:first-child {
    font-size: 17px;    /* Überschrift etwas kleiner */
}
    #locationManagerBtn,
    #gpsLocationBtn
    {
        font-size: 20px !important;
    }

    #gpsLocationBtn
    {
        margin-bottom: 10px !important;
    }
    
    #lastUpdate {
        transform: translate(-635px, 51px);
      }
      
    #box3 canvas {
        top: -80px;
    }

    #box3 {
        height: 410px !important;
    }

    #box1 {
        padding-left: 10px;
    }

    .hourTemp {

        margin-left:40px;
    }
}

/* Laptop */ 
@media (min-width: 1324px)
{

        .chartToggleGroup{
        margin-top:268px !important;
        margin-left:470px !important;
    }



    #dwdWarningButton {
        height: 170px;
        width: 395px;
        right: 325px;
        top: 50px;
        border-radius: 28px;
        overflow: visible;
        background: rgba(31, 31, 31, 0.65);
        border: 4px solid #fff;
        box-shadow: 0 0 25px rgba(255, 34, 34, 0.9);
    }

    /* Kreis */
    #dwdWarningButton::before {
        content: attr(data-count);
        position: absolute;
        top: -26px;
        left: 50%;
        transform: translateX(-50%);
        background: #ff2222;
        color: white;
        font-weight: 700;
        font-size: 27px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 4px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 22px rgba(255, 34, 34, 0.95);
        z-index: 200;
    }

    /* Innerer Inhalt + schlanker Scrollbalken */
    #dwdWarningButtonInner {
        height: 100%;
        padding: 36px 14px 12px;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        font-size: 14px;
        line-height: 1.35;
    }

    /* Sehr schlanker, eleganter Scrollbalken */
    #dwdWarningButtonInner::-webkit-scrollbar {
        width: 4px;                    /* sehr schlank */
    }

    #dwdWarningButtonInner::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.08);
        border-radius: 4px;
    }

    #dwdWarningButtonInner::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.55);
        border-radius: 4px;
    }

    #dwdWarningButtonInner::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.85);
    }

    /* Firefox Support */
    #dwdWarningButtonInner {
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.55) rgba(255,255,255,0.08);
    }



    .dwdWarningPopup {
        position: fixed !important;
        top: 50% !important;
        left: 30px !important;
        right: 30px !important;
        transform: translateY(-50%) !important;   /* vertikal zentriert */
        width: 50% !important;
        max-width: 50% !important;
        max-height: 85vh !important;
        padding: 24px 26px !important;
        border-radius: 16px !important;
        background: rgba(10, 10, 10, 0.97) !important;
        color: white !important;
        box-shadow: 0 20px 60px rgba(255, 60, 60, 0.8) !important;
        border: 3px solid #ff4444 !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
    }
    
    #dwdWarningButton::-webkit-scrollbar {
        width: 6px;
    }
    #dwdWarningButton::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.6);
        border-radius: 3px;
    }
    .chartToggleGroup{
        margin-top:268px !important;
        margin-left:570px !important;
    }

#dwdWarningButton:hover {
    transform: scale(1.05);
}
    #box3 canvas { 
        top: -80px;
    }

    #box3 {
        height: 450px;
    }

    #box1 {
        padding-left: 10px;
    }

    #gpsLocationBtn {
        margin-bottom: 10px !important;
    }
}

/* Laptop groß */
@media (min-width: 1620px)
{

    .warnDays {
    display: flex;
    flex-direction: column;
    gap: 4px;                /* Abstand zwischen den Tagen */
    max-height: 310px !important;       /* Höhe für ca. 3 Einträge */
    overflow-y: auto;        /* Scroll aktivieren */
    overflow-x: hidden;
    scrollbar-width: thin;   /* für Firefox */
    scrollbar-color: #666 #222;
    width: 250px;
}
    .warning-banner 
    {
        color: #ffdd00;
        font-weight: 700;
        font-size: 17px;
        text-align: center;
        padding: 6px 0 3px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        transform: translateY(-10px);
    }

    /* Vollbild Button für Laptop */
#fullscreenBtn {
    position: absolute;
    top: 45px;
    left: 1680px;
    z-index: 1000;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    user-select: none;
}

#fullscreenBtn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.15);
    border-color: #88ccff;
}

#fullscreenBtn.active {
    background: rgba(100, 220, 255, 0.25);
    border-color: #66aaff;
}

    :root {
        --diagram-x: 1460;
    }
    #dwdWarningButton::-webkit-scrollbar {
        width: 6px;
    }
    #dwdWarningButton::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.6);
        border-radius: 3px;
    }
    #dwdWarningButton {
        height: 210px;
        width: 395px;
        right: 425px;
        top: 30px;
        border-radius: 28px;
        overflow: visible;
        background: rgba(31, 31, 31, 0.65);
        border: 4px solid #fff;
        box-shadow: 0 0 25px rgba(255, 34, 34, 0.9);
    }

    /* Kreis - genau wie im Bild */
    #dwdWarningButton::before {
        content: attr(data-count);
        position: absolute;
        top: -36px;           /* ← perfekter Überlapp */
        left: 50%;
        transform: translateX(-50%);
        background: #ff2222;
        color: white;
        font-weight: 700;
        font-size: 27px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 4px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 22px rgba(255, 34, 34, 0.95);
        z-index: 200;
    }

    /* Innerer Text - sauber darunter */
    #dwdWarningButtonInner {
        height: 100%;
        padding: 36px 14px 12px;     /* Text genau unter dem Kreis */
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        font-size: 14px;
        line-height: 1.35;
    }

    .dwdWarningPopup {
        position: fixed !important;
        top: 50% !important;
        left: 30px !important;
        right: 30px !important;
        transform: translateY(-50%) !important;   /* vertikal zentriert */
        width: 50% !important;
        max-width: 50% !important;
        max-height: 85vh !important;
        padding: 24px 26px !important;
        border-radius: 16px !important;
        background: rgba(10, 10, 10, 0.97) !important;
        color: white !important;
        box-shadow: 0 20px 60px rgba(255, 60, 60, 0.8) !important;
        border: 3px solid #ff4444 !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
    }
    #box3 {
        height: 530px !important;
        transition: height 0.4s ease;   /* schöner Übergang */
    }

    #tempCurrent {
        margin-left: 800px !important;
        margin: 0 auto;
    }


    
}


@media (min-width: 1970px) /* S9 */
{
body.night-mode .dwdWarningPopup {
    top: 61% !important;           /* Über dem Diagramm */
    left: 25% !important;
    width: 800px !important; 
    max-width: 1080px !important; 
    max-height: 600px !important;
    padding: 22px 24px !important; 
    font-size: 15px !important; 
}
    .dwdWarningPopup {
        font-size: 105% !important;
    }

    .dwdWarningPopup div {
        font-size: 105% !important;
    }

    .dwdWarningPopup strong {
        font-size: 105% !important;
    }

    /* Nur im Nightmode */
    body.night-mode .night-temp-position {
        margin-left: 650px !important;
        margin-top: -100px !important;
        transform: scale(1.5);
    }

    .weatherPopupRow
    {
        row-gap: 56px !important;
    }
.dayHourlyTime {
        font-size: 125% !important;
    }

    .dayHourlyIcon {
        width: 90px !important;
        height: 90px !important;
    }

    .dayHourlyTemp {
        font-size: 125% !important;
    }

    /* Optional: etwas mehr Abstand */
    .dayHourlyCell {
        padding: 18px 6px !important;
    }
    .warning-banner 
    {
        color: #ffdd00;
        font-weight: 700;
        font-size: 17px;
        text-align: center;
        padding: 6px 0 3px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        transform: translateY(-10px);
    }

    .hourly-divider 
    {
        margin: 8px 5px 40px 5px !important;   /* Abstände oben/unten */
    }

    #currentTemp {
        font-size: calc(112px * var(--temp-scale));
        font-weight: 300;
        line-height: 1;
        transform: translatex(-10px);
        font-weight: bold;
    }

    #dwdWarningButton {
        position: absolute;
        width: 400px;
        height: 180px;              /* ← gewünschte Höhe */
        right: 315px;
        top: 40px;
        
        background: rgba(31, 31, 31, 0.65);
        
        color: white;
        border-radius: 32px;
        border: 4px solid #ff4444;
        box-shadow: 
            0 0 25px rgba(255, 34, 34, 0.9),
            0 0 8px rgba(255, 255, 255, 0.6);
        
        cursor: pointer;
        z-index: 100;
        overflow: visible;          /* Kreis darf rausragen */
        display: none;
        transition: transform 0.2s ease;
    }

    /* Kreis - genau wie im Bild */
    #dwdWarningButton::before {
        content: attr(data-count);
        position: absolute;
        top: -40px;           /* ← perfekter Überlapp */
        left: 50%;
        transform: translateX(-50%);
        background: #ff2222;
        color: white;
        font-weight: 700;
        font-size: 27px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 4px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 22px rgba(255, 34, 34, 0.95);
        z-index: 200;
    }

    /* Innerer Text - sauber darunter + Scrollbalken komplett unsichtbar */
    #dwdWarningButtonInner {
        height: 100%;
        padding: 36px 14px 12px;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        font-size: 14px;
        line-height: 1.35;
        
        /* Scrollbalken komplett ausblenden */
        -ms-overflow-style: none;          /* IE & Edge */
        scrollbar-width: none;             /* Firefox */
    }

    /* WebKit Browser (Chrome, Edge, Safari...) */
    #dwdWarningButtonInner::-webkit-scrollbar {
        display: none;
    }

    .dwdWarningPopup {
        position: fixed !important;
        top: 50% !important;
        left: 30px !important;
        right: 30px !important;
        transform: translateY(-50%) !important;   /* vertikal zentriert */
        width: 50% !important;
        max-width: 50% !important;
        max-height: 85vh !important;
        padding: 24px 26px !important;
        border-radius: 16px !important;
        background: rgba(10, 10, 10, 0.97) !important;
        color: white !important;
        box-shadow: 0 20px 60px rgba(255, 60, 60, 0.8) !important;
        border: 3px solid #ff4444 !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
    }

    /* Keine doppelte Zahl im Inneren */
    #dwdWarningButtonInner > span:first-child,
    #dwdWarningButtonInner span[style*="52px"],
    #dwdWarningButtonInner span[style*="28px"],
    #dwdWarningButton .warning-count,
    #dwdWarningButton .count,
    #dwdWarningButton .number {
        display: none !important;
    }

    :root {
        --diagram-x: 1510;
    }

    #gpsLocationBtn
    {
        margin-bottom: 10px !important;
    }

    .chartToggleGroup{
        margin-top:268px !important;
        margin-left:520px !important;
    }

    #lastUpdate {
        transform: translate(-1040px, 77px);
    }

    #box3 {
        height: 650px !important;
    }

    #tempCurrent {
        margin-left: 520px;
        margin: 0 auto;
    }

.warnDays {
    display: flex;
    flex-direction: column;
    gap: 4px;                /* Abstand zwischen den Tagen */
    max-height: 450px !important;       /* Höhe für ca. 3 Einträge */
    overflow-y: auto;        /* Scroll aktivieren */
    overflow-x: hidden;
    scrollbar-width: thin;   /* für Firefox */
    scrollbar-color: #666 #222;
    width: 250px;
    }

/* Temperatur + Icon gemeinsam verschieben */
.tempRow {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.35s ease;
}


}

/* Sony – Landscape (877x398 bis 828x375) */
@media screen
       and (min-width: 828px)
       and (max-width: 877px)
       and (min-height: 375px)
       and (max-height: 398px)
{
    .dayHourlyCell {
        padding: 10px 4px !important;
        height: 60% !important;
        width: 60px !important;
    }


    .weatherPopup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 80vw !important;
        
        max-height: 100vh !important;     /* ← Kleines Fenster, wie gewünscht */
        overflow-y: auto !important;
        padding: 10px 10px !important;

        background: #1c1c1c !important;
    }
    .weatherPopup > div:first-child + div {
        display: grid !important;
        grid-template-columns: repeat(8, 1fr) !important;
        row-gap: 1px !important;
        column-gap: 6px !important;
    }
    .weatherPopup .dayHourlyTime,
    .weatherPopup .dayHourlyTemp {
        font-size: 60% !important;
    }
    .weatherPopup .dayHourlyIcon {
        width: 30px !important;
        height: 30px !important;
    }
.hourDaySeparatorDate { /*  box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: nowrap;
margin-right: 5px;
    padding: 0 20px;
    width: 50px;
    height: 70px;
    box-sizing: border-box;

    border: 2px solid #00c3ff;
    border-radius: 12px;

    background: rgba(0,0,0,0.18);

    color:#00c3ff;
    
}

.hourDaySeparatorRelative {
    font-size: 16px;
    font-weight: 700;
    text-transform: lowercase;
    opacity: 0.85;
    margin-bottom: 2px;
}


.hourDaySeparatorWeekday {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.hourDaySeparatorFullDate {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
}

.hourDaySeparator {
    position: sticky !important;
    left: -10px !important;          /* ← DAS IST DER SCHLÜSSEL */
    z-index: 10 !important;
    background: rgba(0,0,0,0.85) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 12px;
    padding: 0 8px;
    margin: 0 4px;
}
    #fullscreenBtn {
        position: absolute;
        top: 35px;
        left: 650px;
        z-index: 1000;
        background: rgba(0,0,0,0.12);
        color: #fff;
        border: 2px solid rgba(255,255,255,0.35);
        border-radius: 50%;
        width: 48px;
        height: 48px;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
        user-select: none;
    }
    
    #fullscreenBtn:hover {
        background: rgb(0, 0, 0);
        transform: scale(1.15);
        border-color: #88ccff;
    }
    
    #fullscreenBtn.active {
        background: rgba(100, 219, 255, 0);
        border-color: #66aaff;
    }
    .debug-info
    {
        transform: translateY(0px) !important; 
    }



    .hourly-divider 
    {
        transform: translateY(24px) !important;
        margin-top: -20px !important;
    }

    #h6
    {
        margin-top:20px;
    }
    /* ====================== BASIS ANPASSUNGEN ====================== */
    #box3 { display: none !important; }
    #box1 { margin-top: -60px; 
    margin-left:-60px !important;
    #box1 { display: none !important; }
    #night_off2
    {display: none !important; }

}


#debugWindow,
#debugWindow *,
#debugContent,
#debugContent * {
  font-size: 12px !important;   /* ← jetzt UNBESIEGBAR */
  line-height: 1.2 !important;
}

#debugWindow {
  width: 90% !important;
  top: 60px;
  left: 10px;
  height: 300px;
  background: rgba(0,0,0,0.85);
  overflow: hidden !important;
}

#debugWindowHeader {
  height: 36px;
  padding: 4px 8px;
}

/* #h5.active {
    color: #fff;
    margin-top:20px !important;
}
 */
.weatherText
{
    margin-top: 0px;
}

#date{
    margin-top: -10px;
}

#dwdWarningButton {
        position: absolute;
        right: 300px;           /* Position anpassen falls nötig */
        top: 45px;
        width: 48px;
        height: 48px;
        background: #ff2222;
        color: white;
        font-weight: 700;
        font-size: 27px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 
            0 0 15px rgba(255, 34, 34, 0.9),
            0 0 25px rgba(255, 60, 60, 0.7),
            0 0 40px rgba(255, 80, 80, 0.5) !important;
        cursor: pointer;
        z-index: 100;       
        border: 3.5px solid #ffffff;
        text-align: center;
        line-height: 1;
        padding: 0;
        overflow: hidden;
        transition: transform 0.2s ease;
    }

    /* Koordinaten + Gerätename ausblenden */
    #location,
    #apiLocation,
    .locationText,
    #locationEl {
        display: none !important;
    }
    /* Entfernt allen Text und zusätzliche Elemente */
    #dwdWarningButton > * {
        display: none !important;
    }

    /* Der rote Kreis bleibt sichtbar */
    #dwdWarningButton::before {
        content: attr(data-count) !important;   /* Nimmt die aktuelle Anzahl */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 26px;
        font-weight: 700;
    }

    #dwdWarningButton:hover {
        transform: scale(1.15);
    }

        /* Versteckt die zweite Zahl im Inneren, lässt den Rest des Textes stehen */
    #dwdWarningButton .warning-count,
    #dwdWarningButton .count,
    #dwdWarningButton .number,
    #dwdWarningButton span:first-child,
    #dwdWarningButton > span:first-of-type {
        display: none !important;
    }

    .dwdWarningPopup {
        top: 58% !important;           /* Über dem Diagramm */
        left: 48% !important;
        width: 850px !important; 
        max-height: 300px !important;
        padding: 22px 24px !important; 
        font-size: 15px !important; 
    }

    #gpsClockBtn {
        text-align: center;
        user-select: none;
    }

#box1 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 9px 15px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-top: -45px !important;
    margin-left: 0px !important;
    padding-left: 15px;
    width: 100% !important;
}

.statRow {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    transform: none !important;
    width: auto !important;
    flex: 0 1 auto !important;
    white-space: nowrap !important;
}

.statIcon {
    margin-right: 6px !important;
}

.statLabel {
    margin-right: 8px !important;
    min-width: 70px;
}

.statValue {
    font-weight: 600 !important;
}

/* Temperatur-Zeile etwas größer */
.tempRow {
    gap: 22px !important;
    font-size: 19px !important;
}

#gpsLocationBtn
{
    margin-bottom: -10px;
}

.weatherPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 95vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 12px;
    z-index: 9999;
    white-space: nowrap !important;
}

    .warnText {
        font-size: 24px !important;
        white-space: nowrap !important;
        font-weight: bold;
    }

    .warnSubText {
        font-size: 18px !important;
        white-space: nowrap !important;
    }

    .counteraction {
        font-size: 18px !important;
    }

    .debugIconClone{
        display:inline-block;
        transform: translateY(-75px);
        margin-left:220px !important;
    }
    
    #refreshCloneWrapper { 
        display: block !important; 
        transform: translateY(-50px);
        margin-left:-60px !important;
        
    }
    
    #lastUpdate {
        transform: translate(70px, 44px);
        display: none !important;
    }
    #debugiconclone{
        display: block !important;
    }
    #locationClone {
        
        align-items: center !important;
        font-size: 16px;
        opacity: 0.9;
        margin-top: 44px;
        
        align-items: center;
        justify-content: center;
        font-size: calc(3em * 0.8) !important; /* 10% kleiner */
        display: none !important;
    }
/* 2. Die restlichen Icons (Zahnrad + Käfer) höher schieben */
    #refreshCloneWrapper,
    #settingsBtn {
        transform: translateY(-65px) !important;   /* höher = größere Zahl */
        margin-top: -50 !important;
    }

#refresh span,
#refreshTimerText,
#refreshCloneWrapper > span:first-child {
    transform: translateX(25px) !important;   /* 25px nach rechts - du kannst den Wert ändern */
     transform: translateY(-35px) !important;
    display: inline-block !important;
}

/* Falls das nicht reicht, noch stärker: */
#refresh {
    transform: translateX(25px) !important;
}

    /* 2. Warndays komplett ausblenden */
    .warnDays,
    .statRow:has(.warnDays),
    .statDivider + .statRow .warnDays {
        display: none !important;
    }
    #debugIconClone
    {
        display: none !important;
    }
    #location
    {
        display: inline-flex !important;
    }
    
    #refresh,
    #refreshClone,
    #refreshTimerText,
    #refresh
    {
        transform: translateY(-50px);
    }
    #warning { transform: translateY(-50px); }

    #h1.active span {
        font-size: calc(1em * 0.8) !important; /* 10% kleiner */
    }

    .chartToggleGroup { display: none !important; }

    #timeBlock { 
        margin-top:0px; 
        margin-left:-23px;
    }

    /* ====================== SEKUNDEN STARK VERSCHIEBEN ====================== */
    #time .seconds,
    .seconds {
        position: absolute !important;
        top: 112px !important;
        left: 155px !important;           /* ← Hier den horizontalen Abstand anpassen */
        font-size: 24px !important;
        opacity: 0.65 !important;
        margin: 0 !important;
        transform: translateX(-50%);     /* Zentrierung */
        z-index: 999 !important;
        display: inline-block !important;
    }

    #tempCurrent { 
        margin-top: 20px !important; 
    }

    #main, #header, #tempCurrent, #todayStats { margin-left: 0px; }
    #time { 
        font-size: 110px; 
        color:#00c3ff;
    }

    #date { 

        color:#00c3ff;
    }

    #daily { transform: none; margin-top: 20px !important; }

    #layout { display: flex; width: 100%; }

    #main {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        margin-left: 10px;
        position: relative;
    }

    /* ====================== DAILY SIDEBAR ====================== */
    #dailySidebar {
        width: 133px;
        flex: 0 0 133px;
        margin-left: auto;
        position: relative;
        z-index: 3;
        background: #000;
    }

/* Standorte & GPS Buttons schmaler + linksbündig */


/* Noch schmaler Variante (falls gewünscht) */
#locationManagerBtn,
#gpsLocationBtn {
    min-width: 70px !important;
    max-width: 70px !important;
    padding: 13px 6px !important;
}

#dailySidebar .dayItem {
    align-items: flex-start;
    text-align: left;
    padding: 8px 5px;
}

#dailySidebar .dayTop {
    justify-content: flex-start;
    width: 100%;
}

#dailySidebar .dayDate {
    align-items: flex-start;
}

#dailySidebar .dayTemp {
    justify-content: flex-start;
}

    #dailySidebar .dayIcon { width: 34px; height: 34px; margin: 0; margin-top: 10px; }
    #dailySidebar .dayWeek { font-size: 18px; margin-top: 0px; }
    #dailySidebar .daySmallDate { font-size: 9px; margin-top: 0px; }
    #dailySidebar .tempMain { font-size: 14px; }
    #dailySidebar .tempSub { font-size: 22px; margin-left: -15px; }
    #dailySidebar .daySunHours { margin-top: -6px !important; }

    /* ====================== HOURLY – ÜBER SIDEBAR + VERTIKALES LAYOUT ====================== */
    #forecast {
        position: absolute;
        bottom: 8px;
        left: 0;
        width: 100%;
        z-index: 2;
        padding-right: 92px;
    }

    #hourly {
        width: calc(100% + 102px);
        margin-right: -102px;
        gap: 6px;
        padding: 8px 8px 12px 8px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.92);
        border-radius: 8px;
        overflow-x: auto;
    }

    #hourly .tempMain {
        font-size: 18px;
    }
    /* WICHTIG: Vertikale Anordnung */
    .hourItem {
        flex: 0 0 52px;
        width: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
    }

    .itemTime {
        font-size: 18px;
        opacity: 0.85;
        margin: 0;
        line-height: 1;
        margin-left:-20px;
    }

    .hourIcon {
        width: 34px;
        height: 34px;
        margin: 1px 0;
        margin-left:-20px;
    }

    .hourTemp {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        margin-top: 2px;
        margin-left:6px;
    }

    /* ====================== SONSTIGES ====================== */
    .warnDays {
        margin-left: -40px !important;
        max-height: 220px !important;
    }

    .warnDays::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.25);
        margin-top: 8px;
    }

    
}

/* Samsung Galaxy S26 Ultra - Landscape (892x435) */
@media screen and (min-width: 840px) and (max-width: 920px) /* Samsung Galaxy S26 Ultra - Landscape (892x435) */
       and (min-height: 410px) and (max-height: 460px)
       and (orientation: landscape) 
{
    .weatherPopup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 80vw !important;
        max-height: 90vh !important;     /* ← Kleines Fenster, wie gewünscht */
        overflow-y: auto !important;
        padding: 10px 10px !important;

        background: #1c1c1c !important;
    }
    .weatherPopup > div:first-child + div {
        display: grid !important;
        grid-template-columns: repeat(8, 1fr) !important;
        row-gap: 1px !important;
        column-gap: 6px !important;
    }
    .weatherPopup .dayHourlyTime,
    .weatherPopup .dayHourlyTemp {
        font-size: 50% !important;
    }
    .weatherPopup .dayHourlyIcon {
        width: 30px !important;
        height: 30px !important;
    }
    .dayHourlyTime {
        font-size: 50% !important;
    }
    .dayHourlyCell {
        
        height: 60%;
        width: 60px;
    }
    .dayHourlyIcon {
        width: 40px !important;
        height: 40px !important;
    }
    .hourDaySeparatorLine { /* links und rechts */
    display:none;
}
.hourDaySeparatorWeekday {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.hourDaySeparatorFullDate {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
}
.hourDaySeparatorDate { /*  box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: nowrap;

    padding: 0 20px;
    width: 50px;
    height: 70px;
    box-sizing: border-box;
    margin-right: 5px;
    border: 2px solid #00c3ff;
    border-radius: 12px;

    background: rgba(0,0,0,0.18);

    color:#00c3ff;
    
}

.hourDaySeparatorRelative {
    font-size: 16px;
    font-weight: 700;
    text-transform: lowercase;
    opacity: 0.85;
    margin-bottom: 2px;
}

.hourDaySeparator {
    position: sticky !important;
    left: -10px !important;          /* ← DAS IST DER SCHLÜSSEL */
    z-index: 10 !important;
    background: rgba(0,0,0,0.85) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 12px;
    padding: 0 8px;
    margin: 0 4px;
}

    .debug-info
    {
        transform: translateY(0px) !important; 
    }

    .hourly-divider 
    {
        transform: translateY(24px) !important;
    }

    #h6
    {
        margin-top:20px;
    }
    /* ====================== BASIS ANPASSUNGEN ====================== */
    #box3 { display: none !important; }
    #box1 { margin-top: -50px; 
    margin-left:-60px !important;
    
}

#quer_min, #quer_max
{
    margin-top:30px !important;
}

#night_off
{
    margin-top:60px !important;
}

#quer_sunrise
{
    margin-top:-30px !important;
}

#quer_sunset
{
    margin-top:-30px !important;
}

#night_off2, #night_off3
{display: none !important; }
#debugWindow,
#debugWindow *,
#debugContent,
#debugContent * {
  font-size: 12px !important;   /* ← jetzt UNBESIEGBAR */
  line-height: 1.2 !important;
}

#debugWindow {
  width: 90% !important;
  top: 60px;
  left: 10px;
  height: 300px;
  background: rgba(0,0,0,0.85);
  overflow: hidden !important;
}

#debugWindowHeader {
  height: 36px;
  padding: 4px 8px;
}

/* #h5.active {
    color: #fff;
    margin-top:20px !important;
}
 */
.weatherText
{
    margin-top: 0px;
}

#date{
    margin-top: -10px;
}

#dwdWarningButton {
        position: absolute;
        right: 300px;           /* Position anpassen falls nötig */
        top: 45px;
        width: 48px;
        height: 48px;
        background: #ff2222;
        color: white;
        font-weight: 700;
        font-size: 27px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 
            0 0 15px rgba(255, 34, 34, 0.9),
            0 0 25px rgba(255, 60, 60, 0.7),
            0 0 40px rgba(255, 80, 80, 0.5) !important;
        cursor: pointer;
        z-index: 100;       
        border: 3.5px solid #ffffff;
        text-align: center;
        line-height: 1;
        padding: 0;
        overflow: hidden;
        transition: transform 0.2s ease;
    }

    /* Koordinaten + Gerätename ausblenden */
    #location,
    #apiLocation,
    .locationText,
    #locationEl {
        display: none !important;
    }
    /* Entfernt allen Text und zusätzliche Elemente */
    #dwdWarningButton > * {
        display: none !important;
    }

    /* Der rote Kreis bleibt sichtbar */
    #dwdWarningButton::before {
        content: attr(data-count) !important;   /* Nimmt die aktuelle Anzahl */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 26px;
        font-weight: 700;
    }

    #dwdWarningButton:hover {
        transform: scale(1.15);
    }

        /* Versteckt die zweite Zahl im Inneren, lässt den Rest des Textes stehen */
    #dwdWarningButton .warning-count,
    #dwdWarningButton .count,
    #dwdWarningButton .number,
    #dwdWarningButton span:first-child,
    #dwdWarningButton > span:first-of-type {
        display: none !important;
    }
.dwdWarningPopup {
    top: 58% !important;           /* Über dem Diagramm */
    left: 48% !important;
    width: 850px !important; 
    max-height: 300px !important;
    padding: 22px 24px !important; 
    font-size: 15px !important; 
}

#gpsClockBtn {
    text-align: center;
    user-select: none;
}

#box1 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 9px 15px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-top: -55px !important;
    padding-left: 15px;
    width: 100% !important;
}

.statRow {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    transform: none !important;
    width: auto !important;
    flex: 0 1 auto !important;
    white-space: nowrap !important;
}

.statIcon {
    margin-right: 6px !important;
}

.statLabel {
    margin-right: 8px !important;
    min-width: 70px;
}

.statValue {
    font-weight: 600 !important;
}

/* Temperatur-Zeile etwas größer */
.tempRow {
    gap: 22px !important;
    font-size: 19px !important;
}

#gpsLocationBtn
{
    margin-bottom: -10px;
}

.weatherPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 95vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 12px;
    z-index: 9999;
    white-space: nowrap !important;
}

    .warnText {
        font-size: 24px !important;
        white-space: nowrap !important;
        font-weight: bold;
    }

    .warnSubText {
        font-size: 18px !important;
        white-space: nowrap !important;
    }

    .counteraction {
        font-size: 18px !important;
    }

    .debugIconClone{
        display:inline-block;
        transform: translateY(-75px);
        margin-left:220px !important;
    }
    
    #refreshCloneWrapper { 
        display: block !important; 
        transform: translateY(-50px);
        margin-left:-60px !important;
        
    }
    
    #lastUpdate {
        transform: translate(70px, 44px);
        display: none !important;
    }
    #debugiconclone{
        display: block !important;
    }
    #locationClone {
        
        align-items: center !important;
        font-size: 16px;
        opacity: 0.9;
        margin-top: 44px;
        
        align-items: center;
        justify-content: center;
        font-size: calc(3em * 0.8) !important; /* 10% kleiner */
        display: none !important;
    }
/* 2. Die restlichen Icons (Zahnrad + Käfer) höher schieben */
    #refreshCloneWrapper,
    #settingsBtn {
        transform: translateY(-65px) !important;   /* höher = größere Zahl */
        margin-top: -50 !important;
    }

#refresh span,
#refreshTimerText,
#refreshCloneWrapper > span:first-child {
    transform: translateX(25px) !important;   /* 25px nach rechts - du kannst den Wert ändern */
     transform: translateY(-55px) !important;
    display: inline-block !important;
}

/* Falls das nicht reicht, noch stärker: */
#refresh {
    transform: translateX(25px) !important;
}

    /* 2. Warndays komplett ausblenden */
    .warnDays,
    .statRow:has(.warnDays),
    .statDivider + .statRow .warnDays {
        display: none !important;
    }
    #debugIconClone
    {
        display: none !important;
    }
    #location
    {
        display: inline-flex !important;
    }
    
    #refresh,
    #refreshClone,
    #refreshTimerText,
    #refresh
    {
        transform: translateY(-50px);
    }
    #warning { transform: translateY(-50px); }

    #h1.active span {
        font-size: calc(1em * 0.8) !important; /* 10% kleiner */
    }

    .chartToggleGroup { display: none !important; }

    #timeBlock { 
        margin-top:0px; 
        margin-left:-23px;

    }

    /* ====================== SEKUNDEN STARK VERSCHIEBEN ====================== */
    #time .seconds,
    .seconds {
        position: absolute !important;
        top: 112px !important;
        left: 155px !important;           /* ← Hier den horizontalen Abstand anpassen */
        font-size: 24px !important;
        opacity: 0.65 !important;
        margin: 0 !important;
        transform: translateX(-50%);     /* Zentrierung */
        z-index: 999 !important;
        display: inline-block !important;
    }

    #tempCurrent { 
        margin-top: 20px !important; 
    }

    #main, #header, #tempCurrent, #todayStats { margin-left: 0px; }
    #time { font-size: 110px; }

    #daily { transform: none; margin-top: 20px !important; }

    #layout { display: flex; width: 100%; }

    body.night-mode #fullscreenBtn {
            position: absolute;
            top: 25px;
            left: 670px;
            z-index: 1000;
            background: rgba(0,0,0,0.12);
            color: #fff;
            border: 2px solid rgba(255,255,255,0.35);
            border-radius: 50%;
            width: 48px;
            height: 48px;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            box-shadow: 0 6px 20px rgba(0,0,0,0.4);
            user-select: none;
        }

    /* Nur im Nightmode */
    body.night-mode .night-temp-position {
        margin-left: -350px;
        margin-top: 20px;
        transform: scale(1.5);
    }

    body.night-mode #dwdWarningButton::before {
        background: #661111 !important;
        color: #aaa !important;
        border-color: #777 !important;
        box-shadow:
            0 0 8px rgba(120, 30, 30, 0.45) !important;
    }

    /* Nightmode Positionen */
    body.night-mode #timeBlock {
        position: absolute !important;
        top: 60px!important;
    }

    /* Sekunden im Nightmode ausblenden */
    body.night-mode #time .seconds,
    body.night-mode .seconds {
        display: none !important;
    }

    body.night-mode #refresh {
        position: absolute !important;
        top: 230px!important;
    }

    body.night-mode #tempCurrent {
        position: absolute!important;
        top: 60px!important;
        left: 430px!important;
    }

    body.night-mode #box1 {
        position: absolute!important;
        top: 320px!important;
        left: 550px!important;
    }
    body.night-mode #warndays {
        position: absolute!important;
        top: 320px!important;
        left: 550px!important;
    }

    body.night-mode #time .seconds,
    .seconds {
        position: absolute !important;
        top: 76px !important;
        left: 180px !important;            
    }

    body.night-Mode #maxmin_temp {
        display: flex !important;
    }

    #main {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        margin-left: 10px;
        position: relative;
    }

    /* ====================== DAILY SIDEBAR ====================== */
    #dailySidebar {
        width: 133px;
        flex: 0 0 133px;
        margin-left: auto;
        position: relative;
        z-index: 3;
        background: #000;
    }

/* Standorte & GPS Buttons schmaler + linksbündig */


/* Noch schmaler Variante (falls gewünscht) */
#locationManagerBtn,
#gpsLocationBtn {
    min-width: 70px !important;
    max-width: 70px !important;
    padding: 13px 6px !important;
}

#dailySidebar .dayItem {
    align-items: flex-start;
    text-align: left;
    padding: 8px 5px;
}

#dailySidebar .dayTop {
    justify-content: flex-start;
    width: 100%;
}

#dailySidebar .dayDate {
    align-items: flex-start;
}

#dailySidebar .dayTemp {
    justify-content: flex-start;
}

    #dailySidebar .dayIcon { width: 34px; height: 34px; margin: 0; margin-top: 10px; }
    #dailySidebar .dayWeek { font-size: 18px; margin-top: 0px; }
    #dailySidebar .daySmallDate { font-size: 9px; margin-top: 0px; }
    #dailySidebar .tempMain { font-size: 14px; }
    #dailySidebar .tempSub { font-size: 22px; margin-left: -15px; }
    #dailySidebar .daySunHours { margin-top: -6px !important; }

    /* ====================== HOURLY – ÜBER SIDEBAR + VERTIKALES LAYOUT ====================== */
    #forecast {
        position: absolute;
        bottom: 8px;
        left: 0;
        width: 100%;
        z-index: 2;
        padding-right: 92px;
    }

    #hourly {
        width: calc(100% + 102px);
        margin-right: -102px;
        gap: 6px;
        padding: 8px 8px 12px 8px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.92);
        border-radius: 8px;
        overflow-x: auto;
    }

    #hourly .tempMain {
        font-size: 18px;
    }
    /* WICHTIG: Vertikale Anordnung */
    .hourItem {
        flex: 0 0 52px;
        width: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
    }

    .itemTime {
        font-size: 18px;
        opacity: 0.85;
        margin: 0;
        line-height: 1;
        margin-left:-20px;
    }

    .hourIcon {
        width: 34px;
        height: 34px;
        margin: 1px 0;
        margin-left:-20px;
    }

    .hourTemp {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        margin-top: 2px;
        margin-left:6px;
    }

    /* ====================== SONSTIGES ====================== */
    .warnDays {
        margin-left: -40px !important;
        max-height: 220px !important;
    }

    .warnDays::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.25);
        margin-top: 8px;
    }

    
}

/* S26 Ultra – Hochformat (414 x 849) */
@media (min-width: 410px) and (max-width: 430px) /* S26 Ultra Hoch */
       and (min-height: 830px) and (max-height: 870px) 
{

    .hourDaySeparatorLine { /* links und rechts */
    display:none;
}

.weatherPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100vw !important;
    max-height: 90vh !important;     /* ← Kleines Fenster, wie gewünscht */
    overflow-y: auto !important;
    padding: 1px 1px !important;
    background: #1c1c1c !important;
}

/* 5x5 Layout */
.weatherPopup > div:first-child + div {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    row-gap: 1px !important;
    column-gap: 6px !important;
}

/* Schachbrettmuster */
.weatherPopup > div:first-child + div > div:nth-child(5n+1),
.weatherPopup > div:first-child + div > div:nth-child(10) {
    background: #232323 !important;
}

.weatherPopup > div:first-child + div > div:nth-child(2n) {
    background: #2a2a2a !important;
}

/* === DEINE ÄNDERUNGEN BEHALTEN ===
   Text und Icons größer als vorher */
.weatherPopup .dayHourlyIcon {
    width: 50px !important;
    height: 50px !important;
}

.weatherPopup .dayHourlyTime,
.weatherPopup .dayHourlyTemp {
    font-size: 50% !important;
}

.dayHourlyTime {
    font-size: 50% !important;
}

.dayHourlyIcon {
    width: 50px !important;
    height: 50px !important;
}

.dayHourlyTemp {
    font-size: 50% !important;
}

/* Optional: etwas mehr Abstand */
.dayHourlyCell {
    padding: 18px 6px !important;
    height: 50%;
}

.hourDaySeparatorDate { /*  box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: nowrap;
    margin-right: 5px;
    padding: 0 20px;
    width: 50px;
    height: 70px;
    box-sizing: border-box;

    border: 2px solid #00c3ff;
    border-radius: 12px;

    background: rgba(0,0,0,0.18);

    color:#00c3ff;
    
}

.hourDaySeparatorRelative {
    font-size: 16px;
    font-weight: 700;
    text-transform: lowercase;
    opacity: 0.85;
    margin-bottom: 2px;
}


.hourDaySeparatorWeekday {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.hourDaySeparatorFullDate {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
}

.hourDaySeparator {
    position: sticky !important;
    left: -10px !important;          /* ← DAS IST DER SCHLÜSSEL */
    z-index: 10 !important;
    background: rgba(0,0,0,0.85) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 12px;
    padding: 0 8px;
    margin: 0 4px;
}

    .hourly-divider 
    {
        transform: translateY(24px) !important;
    }

    .no-location-error {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background: rgba(0, 0, 0, 0.97) !important;
        color: #ff6666 !important;
        padding: 35px 30px !important;
        border-radius: 20px !important;
        text-align: center !important;
        z-index: 99999 !important;
        border: 4px solid #ff4444 !important;
        max-width: 92% !important;
        width: 340px !important;
        box-shadow: 0 15px 40px rgba(255, 60, 60, 0.6) !important;
    }

    .no-location-error h2 {
        font-size: 26px !important;
        margin: 0 0 18px 0 !important;
    }

    .no-location-error p {
        font-size: 17.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 25px !important;
    }

    .no-location-error button {
        font-size: 18px !important;
        padding: 16px 32px !important;
        background: #ff4444 !important;
        color: white !important;
        border: none !important;
        border-radius: 12px !important;
        width: 100% !important;
    }
    
    .debug-info
    {
        transform: translateY(0px) !important; 
    }

    #h6
    {
        margin-top:20px;
    }
    /* ====================== BASIS ANPASSUNGEN ====================== */
    #box3 { display: none; }
    #box1 { margin-top: -50px; 
    margin-left:20px !important;
}

#debugWindow,
#debugWindow *,
#debugContent,
#debugContent * {
  font-size: 12px !important;   /* ← jetzt UNBESIEGBAR */
  line-height: 1.2 !important;
}

#debugWindow {
  width: 90% !important;
  top: 60px;
  left: 10px;
  height: 300px;
  background: rgba(0,0,0,0.85);
  overflow: hidden !important;
}

#debugWindowHeader {
  height: 36px;
  padding: 4px 8px;
}

/* #h5.active {
    color: #fff;
    margin-top:20px !important;
}
 */
.weatherText
{
    margin-top: 0px;
}

/* ====================== DWD WARNING POPUP - 30px Abstand ====================== */
/* ====================== DWD WARNING POPUP - Zentriert + 30px Rand ====================== */
.dwdWarningPopup {
    position: fixed !important;
    top: 50% !important;
    left: 30px !important;
    right: 30px !important;
    transform: translateY(-50%) !important;   /* vertikal zentriert */
    width: auto !important;
    max-width: calc(100% - 60px) !important;
    max-height: 85vh !important;
    padding: 24px 26px !important;
    border-radius: 16px !important;
    background: rgba(10, 10, 10, 0.97) !important;
    color: white !important;
    box-shadow: 0 20px 60px rgba(255, 60, 60, 0.8) !important;
    border: 3px solid #ff4444 !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
}

/* ====================== DWD WARNING - NUR KREIS (S26 Ultra) ====================== */
.dwd-warning-btn {
    position: absolute;
    right: -12px;
    top: 82px;
    background: #ff2222;
    color: white;
    font-weight: bold;
    font-size: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(255, 34, 34, 0.8);
    cursor: pointer;
    z-index: 100;
    border: 2px solid #fff;
    transition: all 0.2s ease;
    user-select: none;
}

#dwdWarningButton::before {
    content: attr(data-count) !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 15px !important;
    font-weight: bold !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Inneren Inhalt + Box komplett ausblenden */
#dwdWarningButtonInner,
#dwdWarningButton > div {
    display: none !important;
}

#gpsClockBtn {
    text-align: center;
    user-select: none;
}



#gpsLocationBtn
{
    margin-bottom: -10px;
}

.weatherPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 95vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 12px;
    z-index: 9999;
    white-space: nowrap !important;
}

    .warnText {
        font-size: 24px !important;
        white-space: nowrap !important;
        font-weight: bold;
    }

    .warnSubText {
        font-size: 18px !important;
        white-space: nowrap !important;
    }

    .counteraction {
        font-size: 18px !important;
    }

    .debugIconClone{
        display:inline-block;
        transform: translateY(-75px);
        margin-left:220px !important;
    }
    
    #refreshClone { 
        display: block !important; 
        transform: translateY(-50px);
        margin-left:-60px !important;
        
    }
    
    #lastUpdate {
    transform: translate(70px, 44px);
    }

    #locationClone {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 16px;
        opacity: 0.9;
        margin-top: 44px;
        
        align-items: center;
        justify-content: center;
        font-size: calc(1em * 0.8) !important; /* 10% kleiner */
    }

    #warning { transform: translateY(-50px); }

    #h1.active span {
        font-size: calc(1em * 0.8) !important; /* 10% kleiner */
    }

    .chartToggleGroup { display: none !important; }

    #timeBlock { padding-top: 20px; display: none !important; }
    #tempCurrent { margin-top: -30px !important; }

    #main, #header, #tempCurrent, #todayStats { margin-left: 0px; }
    #time { font-size: 110px; }

    #daily { transform: none; margin-top: 20px !important; }

    #layout { display: flex; width: 100%; }

    #main {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        margin-left: 10px;
        position: relative;
    }

    /* ====================== DAILY SIDEBAR ====================== */
    #dailySidebar {
        width: 90px;
        flex: 0 0 90px;
        margin-left: auto;
        position: relative;
        z-index: 3;
        background: #000;
    }


    #dailySidebar .dayIcon { width: 34px; height: 34px; margin: 0; margin-top: 10px; }
    #dailySidebar .dayWeek { font-size: 18px; margin-top: 0px; }
    #dailySidebar .daySmallDate { font-size: 9px; margin-top: 0px; }
    #dailySidebar .tempMain { font-size: 14px; }
    #dailySidebar .tempSub { font-size: 22px; margin-left: -15px; }
    #dailySidebar .daySunHours { margin-top: -6px !important; }

    /* ====================== HOURLY – ÜBER SIDEBAR + VERTIKALES LAYOUT ====================== */
    #forecast {
        position: absolute;
        bottom: 8px;
        left: 0;
        width: 100%;
        z-index: 2;
        padding-right: 92px;
    }

    #hourly {
        width: calc(100% + 102px);
        margin-right: -102px;
        gap: 6px;
        padding: 8px 8px 12px 8px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.92);
        border-radius: 8px;
        overflow-x: auto;
    }

    #hourly .tempMain {
        font-size: 18px;
    }
    /* WICHTIG: Vertikale Anordnung */
    .hourItem {
        flex: 0 0 52px;
        width: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
    }

    .itemTime {
        font-size: 18px;
        opacity: 0.85;
        margin: 0;
        line-height: 1;
        margin-left:-20px;
    }

    .hourIcon {
        width: 34px;
        height: 34px;
        margin: 1px 0;
        margin-left:-20px;
    }

    .hourTemp {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        margin-top: 2px;
        margin-left:6px;
    }

    /* ====================== SONSTIGES ====================== */
    .warnDays {
        margin-left: -40px !important;
        max-height: 220px !important;
    }

    .warnDays::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.25);
        margin-top: 8px;
    }

    .refreshCloneWrapper {
        transform: translateX(-20px);
    }

    
}
/* Simone ehem. S26 Ultra Hoch */
@media (min-width: 370px) and (max-width: 414px) /* Simone */
       
{

    .hourly-divider 
    {
        transform: translateY(24px) !important;
    }

    .no-location-error {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background: rgba(0, 0, 0, 0.97) !important;
        color: #ff6666 !important;
        padding: 35px 30px !important;
        border-radius: 20px !important;
        text-align: center !important;
        z-index: 99999 !important;
        border: 4px solid #ff4444 !important;
        max-width: 92% !important;
        width: 340px !important;
        box-shadow: 0 15px 40px rgba(255, 60, 60, 0.6) !important;
    }

    .no-location-error h2 {
        font-size: 26px !important;
        margin: 0 0 18px 0 !important;
    }

    .no-location-error p {
        font-size: 17.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 25px !important;
    }

    .no-location-error button {
        font-size: 18px !important;
        padding: 16px 32px !important;
        background: #ff4444 !important;
        color: white !important;
        border: none !important;
        border-radius: 12px !important;
        width: 100% !important;
    }
    
    .debug-info
    {
        transform: translateY(0px) !important; 
    }

    #h6
    {
        margin-top:20px;
    }
    /* ====================== BASIS ANPASSUNGEN ====================== */
    #box3 { display: none; }
    #box1 
    { 
        margin-top: -50px; 
        margin-left:10px !important;
    }

#debugWindow,
#debugWindow *,
#debugContent,
#debugContent * {
  font-size: 12px !important;   /* ← jetzt UNBESIEGBAR */
  line-height: 1.2 !important;
}

#debugWindow {
  width: 90% !important;
  top: 60px;
  left: 10px;
  height: 300px;
  background: rgba(0,0,0,0.85);
  overflow: hidden !important;
}

#debugWindowHeader {
  height: 36px;
  padding: 4px 8px;
}

/* #h5.active {
    color: #fff;
    margin-top:20px !important;
}
 */
.weatherText
{
    margin-top: 0px;
}

/* ====================== DWD WARNING POPUP - 30px Abstand ====================== */
/* ====================== DWD WARNING POPUP - Zentriert + 30px Rand ====================== */
.dwdWarningPopup {
    position: fixed !important;
    top: 50% !important;
    left: 30px !important;
    right: 30px !important;
    transform: translateY(-50%) !important;   /* vertikal zentriert */
    width: auto !important;
    max-width: calc(100% - 60px) !important;
    max-height: 85vh !important;
    padding: 24px 26px !important;
    border-radius: 16px !important;
    background: rgba(10, 10, 10, 0.97) !important;
    color: white !important;
    box-shadow: 0 20px 60px rgba(255, 60, 60, 0.8) !important;
    border: 3px solid #ff4444 !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
}

/* ====================== DWD WARNING - NUR KREIS (S26 Ultra) ====================== */
.dwd-warning-btn {
    position: absolute;
    right: 42px;
    top: 82px;
    background: #ff2222;
    color: white;
    font-weight: bold;
    font-size: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(255, 34, 34, 0.8);
    cursor: pointer;
    z-index: 100;
    border: 2px solid #fff;
    transition: all 0.2s ease;
    user-select: none;
}

#dwdWarningButton::before {
    content: attr(data-count) !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 15px !important;
    font-weight: bold !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Inneren Inhalt + Box komplett ausblenden */
#dwdWarningButtonInner,
#dwdWarningButton > div {
    display: none !important;
}

#gpsClockBtn {
    text-align: center;
    user-select: none;
}



#gpsLocationBtn
{
    margin-bottom: -10px;
}

.weatherPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 95vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 12px;
    z-index: 9999;
    white-space: nowrap !important;
}

    .warnText {
        font-size: 24px !important;
        white-space: nowrap !important;
        font-weight: bold;
    }

    .warnSubText {
        font-size: 18px !important;
        white-space: nowrap !important;
    }

    .counteraction {
        font-size: 18px !important;
    }

    .debugIconClone{
        display:inline-block;
        transform: translateY(-75px);
        margin-left:270px !important;
    }
    
    #refreshClone { 
        display: block !important; 
        transform: translateY(-50px);
        margin-left: 30px !important;
        
    }
    
    #lastUpdate {
    transform: translate(70px, 44px);
    }

    #locationClone {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 16px;
        opacity: 0.9;
        margin-top: 44px;
        
        align-items: center;
        justify-content: center;
        font-size: calc(1em * 0.8) !important; /* 10% kleiner */
    }

    #warning 
    { 
        transform: translateY(-50px); 
        margin-left: -50px; 
    }

    #h1.active span {
        font-size: calc(1em * 0.8) !important; /* 10% kleiner */
    }

    .chartToggleGroup { display: none !important; }

    #timeBlock { padding-top: 20px; display: none !important; }
    #tempCurrent 
    { 
        margin-left: -20px !important;
        margin-top: -30px !important; 
    }
    #feelsLike
    {
        margin-left:-50px;
    }

    #main, #header, #todayStats { margin-left: 0px; }
    #time { font-size: 110px; }

    #daily { transform: none; margin-top: 20px !important; }

    #layout { display: flex; width: 100%; }

    #main {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        margin-left: 10px;
        position: relative;
    }

    /* ====================== DAILY SIDEBAR ====================== */
    #dailySidebar {
        width: 90px;
        flex: 0 0 90px;
        margin-left: auto;
        position: relative;
        z-index: 3;
        background: #000;
    }


    #dailySidebar .dayIcon { width: 34px; height: 34px; margin: 0; margin-top: 10px; }
    #dailySidebar .dayWeek { font-size: 18px; margin-top: 0px; }
    #dailySidebar .daySmallDate { font-size: 9px; margin-top: 0px; }
    #dailySidebar .tempMain { font-size: 14px; }
    #dailySidebar .tempSub { font-size: 22px; margin-left: -15px; }
    #dailySidebar .daySunHours { margin-top: -6px !important; }

    /* ====================== HOURLY – ÜBER SIDEBAR + VERTIKALES LAYOUT ====================== */
    #forecast {
        position: absolute;
        bottom: 8px;
        left: 0;
        width: 100%;
        z-index: 2;
        padding-right: 92px;
    }

    #hourly {
        width: calc(100% + 102px);
        margin-right: -102px;
        gap: 6px;
        padding: 8px 8px 12px 8px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.92);
        border-radius: 8px;
        overflow-x: auto;
    }

    #hourly .tempMain {
        font-size: 18px;
    }
    /* WICHTIG: Vertikale Anordnung */
    .hourItem {
        flex: 0 0 52px;
        width: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
    }

    .itemTime {
        font-size: 18px;
        opacity: 0.85;
        margin: 0;
        line-height: 1;
        margin-left:-20px;
    }

    .hourIcon {
        width: 34px;
        height: 34px;
        margin: 1px 0;
        margin-left:-20px;
    }

    .hourTemp {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        margin-top: 2px;
        margin-left:6px;
    }

    /* ====================== SONSTIGES ====================== */
    .warnDays {
        margin-left: -50px !important;
        max-height: 200px !important;
    }

    .warnDays::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.25);
        margin-top: 8px;
    }

    .refreshCloneWrapper {
        transform: translateX(-20px);
    }

    
}



#lastUpdate {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: 8px;

    display: flex;
    align-items: center;

    white-space: nowrap;
}



/* =========================
   WARNUNGEN – TEXTBASIERTE VERSION
========================= */

.warnBox {
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    display: flex;
    flex-direction: column; /* <<< sorgt für untereinander */
    gap: 2px;
    padding-right: 70px;
    margin-left:20px;
}

/* HITZE */
.warn-yellow { color: #ffe066; }
.warn-lightred { color: #ff8a80; }
.warn-red { color: #ff4d4d; }

/* KÄLTE */
.warn-lightblue { color: #9cd6ff; }
.warn-darkblue { color: #4aa3ff; }
.warn-blue { color: #1e6fd9; }


/* WICHTIG: #warning für Text freigeben */
#warning {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertikal zentriert */
    align-items: center;       /* horizontal zentriert */
    width: 180px;
    height: auto;

    flex-shrink: 0;
}





/* Container */
#warnHeat, #warnCold {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-weight: 700;
    padding-right: 00px;
    margin-left:30px;
    display: none;
}

/* Grundzustand: schwach */
.warn-level {
    position: relative;
    opacity: 0.2; /* Weniger = schwächer */
    filter: grayscale(100%);
    transform: scale(0.95);
    transition: 0.25s ease;
    font-size: 18px;   /* inaktive kleiner */
    white-space: nowrap;
    display: none; /* inaktive Stufen komplett ausblenden */
}

/* Aktive Stufe */
.warn-level.active {
    opacity: 1;
    filter: none;
    transform: scale(1);
    font-size: 42px;
    display: block; /* nur aktive Stufe anzeigen */
}

/* Farben Hitze */
#h1.active { color: #f2d675; }
#h2.active { color: #ff8c42; }
#h3.active { color: #ff4d4d; }
#h4.active { color: #ff2e2e; }
#h5.active { color: #de4feb; }
#h6.active { color: #8b00ff; }

/* Farben Kälte */
#c1.active { color: #9cd6ff; }
#c2.active { color: #4aa3ff; }
#c3.active { color: #184df9; }



.blink {
    animation: warnBlink 4s linear infinite; /* 4 Sekunden Gesamtdauer */
} */

/* #warning Layout */
#warning {
    width: 100%;
    height: auto;
    margin-top: -20px; /* optional: näher an weatherText */
    display: flex;
    justify-content: center;
    align-items: center;
}

#h4.active {
    color: #ff2e2e; /* leicht rosa-weißes Glühen f90606*/
}


@keyframes heatPulseZoomSmoothInferno {
    0% {
        opacity: 0.92;
        transform: scale(0.7);

    }
    50% {
        opacity: 1;
        transform: scale(0.9); /* Zoom bleibt unverändert */
   
    }
    100% {
        opacity: 0.92;
        transform: scale(0.7);
  
    }
}

@keyframes heatPulseZoomSmooth {
    0% {
        opacity: 0.92;
        transform: scale(1);

    }
    50% {
        opacity: 1;
        transform: scale(1.20); /* Zoom bleibt unverändert */
   
    }
    100% {
        opacity: 0.92;
        transform: scale(1);
  
    }
}


.h4-glow {
    animation: heatPulseZoomSmooth 3.0s ease-in-out infinite;
    will-change: transform, filter, opacity;
}

.h5-glow {
    animation: heatPulseZoomSmooth 3.0s ease-in-out infinite;
    will-change: transform, filter, opacity;
}

.h6-glow {
    animation: heatPulseZoomSmoothInferno 3.0s ease-in-out infinite;
    will-change: transform, filter, opacity;
}

#tempCurrent {
    margin-left: 50px;
    margin: 0 auto;
}

/* HITZE – Zusatzzeilen */
#h1::after { content: "Warnstufe 1 von 6"; }
#h2::after { content: "Warnstufe 2 von 6"; }
#h3::after { content: "Warnstufe 3 von 6"; }
#h4::after { content: "Warnstufe 4 von 6"; }
#h5::after { content: "unmenschlich - Warnstufe 5 von 6"; }
#h6::after { content: "GEFAHR FÜR LEIB UND LEBEN - Höchste Warnstufe"; }

/* KÄLTE – Zusatzzeilen */
#c1::after { content: "Warnstufe 1 von 3"; }
#c2::after { content: "Warnstufe 2 von 3"; }
#c3::after { content: "Höchste Warnstufe"; }

/* Styling für alle Zusatzzeilen */
.warn-level::after {
    display: block;
    font-size: 14px;
    opacity: 0.7;
    margin-top: 2px;

    /* Effekte deaktivieren */
    filter: none !important;
    animation: none !important;
    transform: none !important;
    text-shadow: none !important;
}

#settingsBtn {
    font-size: 22px;
    cursor: pointer;
    opacity: 0.6;
    margin-right: 8px; /* Abstand zum Refresh */
    user-select: none;
    transition: 0.2s;
}

#settingsBtn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup.hidden {
    display: none;
}

.popupContent {
    width: 70%;
    max-width: 500px;
    background: #222;
    padding: 25px;
    border-radius: 12px;
    color: white;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
#refresh {
    display: inline-block;
    text-align: center;
}

#settingsBtn {
    margin-left: 6px;
    cursor: pointer;
    
}

.subItem {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 18px;
}

/* =========================
   FIX: WarnDays Positionierung
========================= */
#box1 {
    display: block;            /* verhindert Flex-Überlagerung */
    padding-left: 10px;
}

.statRow {
    transform: none;           /* entfernt vertikale Verschiebung */
    height: auto;              /* dynamische Höhe */
    margin-bottom: 0px;        /* gleichmäßiger Abstand */
}

/* =========================
   NEXT WARNING DAYS – endgültiger Layoutfix
========================= */
.warnDays {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* linksbündig */
    justify-content: flex-start;
    gap: 6px;                  /* gleichmäßiger Abstand zwischen Zeilen */
    margin-left: -50px;        /* exakt bündig mit den Icons */
    margin-top: 14px;          /* Abstand zur vorherigen Zeile */
    position: relative;
    z-index: 1;
    white-space: nowrap;
    width: 100%;
    text-align: left;          /* Text links ausrichten */
    
}

/* Wenn eine statRow NUR einen Divider enthält → volle Breite, keine Höhe */
.statRow:has(.statDivider) {
    height: auto !important;
    transform: none !important;
    margin: 12px 0 !important;
    display: block !important;
}
.statDivider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 2px 0;
    font-size: 18px;
    color: #fff;
    text-align: center;

}
/* Linien links und rechts */
.statDivider::before,
.statDivider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin: 0 12px;
}
.warnDay {
    display: grid;
    grid-template-columns: 150px 20px 45px;
    align-items: center;
    font-size: 18px;
}

.warnDayText {
    text-align: left;
}

.warnDayDash {
    text-align: center;
}

.warnDayTemp {
    text-align: right;
}

.extremeFrameAsh {
    border: 2px solid #8b00ff;
    border-radius: 6px;
    padding: 4px 10px;
    background: rgba(183, 39, 219, 0.08);
    box-shadow: 0 0 10px rgba(55, 55, 55, 0.752);
    margin-left: 0px;
}

.extremeFramePurple {
    border: 2px solid #de4feb;
    border-radius: 6px;
    padding: 4px 10px;
    background: rgba(183, 39, 219, 0.08);
    box-shadow: 0 0 10px rgba(183, 39, 219, 0.4);
    margin-left: 0px;
}


.extremeFrameHeat {
    border: 2px solid #ff2e2e;
    border-radius: 6px;
    padding: 4px 10px;
    background: rgba(255, 0, 0, 0.08);
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.4);
    margin-left: 0px; /* Rahmen 10px weiter links */
}
.extremeFrameCold {
    border: 2px solid #4da3ff;
    border-radius: 6px;
    padding: 4px 10px;
    background: rgba(0, 120, 255, 0.08);
    box-shadow: 0 0 10px rgba(80, 160, 255, 0.4);
    margin-left: 0px; /* Rahmen 10px weiter links */
}

.dayDate {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.dayWeek {
    font-size: 28px;
    font-weight: 600;
    margin-left:10px;
    margin-top:-50px;
    text-align: left;
}

.daySmallDate {
    font-size: 12px;
    opacity: 0.7;
    margin-top: -2px;
    margin-left:10px;
}

.dayDate {
    position: relative;
}

.dayTop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}



.weatherPopup strong {
    font-size: 1.6rem;
    color: #ffd86b;
}
.chartToggleGroup {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 50;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;

    /* Standard = NICHT aktiv */
    background: transparent;   /* <<< FIX */
    color: #000;
    border: none;              /* <<< FIX */
    margin-top: 250px;
    margin-left: 350px;
}

/* Hover für inaktive */
.chartToggleGroup:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* 🔥 AKTIVER Zustand */
.chartToggleGroup button.active {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

/* optional: hover auf aktiv */
.chartToggleGroup.active:hover {
    background: #111;
}
.chartToggleGroup button {
    background: rgba(255,255,255,0.15);
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.25);
}


.chartToggleGroup button:hover {
    background: rgba(255,255,255,0.35);
}

#location {
    font-size: 16px;
    opacity: 0.8;
    margin-top: 4px;
}

#locationEl {
  display: inline-flex;
  align-items: center; /* vertikal zentriert */
  gap: 6px; /* Abstand zwischen Icon und Text */
}

#locationEl .icon {
  display: inline-flex;
}

.icon {
  display: inline-block;
  vertical-align: middle;
}

.locationText
{
    font-size:18px;
    color:#2a2a2a;
}

#debugWindow::-webkit-scrollbar,
#debugContent::-webkit-scrollbar {
    width: 8px;
}

#debugWindow::-webkit-scrollbar-track,
#debugContent::-webkit-scrollbar-track {
    background: rgba(50, 50, 50, 0.8);
    border-radius: 10px;
}

#debugWindow::-webkit-scrollbar-thumb,
#debugContent::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#debugWindow::-webkit-scrollbar-thumb:hover,
#debugContent::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Debug Icon Blink bei Fehler */
#errorIcon.error-blink, 
#debugIcon.error-blink {
    animation: errorBlink 700ms infinite alternate !important;
    color: #ff4444 !important;
    font-size: 24px !important;
}

/* Ruhiger, gleichmäßiger Debug-Blink */
#errorIcon.error-blink, 
#debugIcon.error-blink {
    animation: errorBlink 1400ms infinite ease-in-out !important;
    color: #ff4444 !important;
}

@keyframes errorBlink {
    0%, 100% { 
        color: #ff4444;
    }
    50% { 
        color: #ffaa00;
    }
}


.error-blink {
    animation: errorBlink 600ms infinite alternate !important;
}

.ash-extreme {
    color: #8b00ff !important;
    text-shadow: 0 0 12px #8b00ff;
}

.purple-extreme {
    color: #de4feb !important;
    text-shadow: 0 0 12px #de4feb;
}

.newLocationInput
 {
    margin-bottom: 20px;
}

/* Standortliste */
#locationList {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

/* Einzelne Einträge */
#locationList div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #fff;
}

/* Mülleimer‑Button links vom Ort */
#locationList button {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.1s ease;
    order: -1; /* ← verschiebt den Button nach links */
}

#locationList button:hover {
    color: #ff1a1a;
    transform: scale(1.15);
}

/* Inputfeld */
.newLocationInput {
    width: 90%;
    padding: 10px 14px;
    border: 1px solid #666;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease;
}
.newLocationInput:focus {
    border-color: #ff6600;
}

/* Speichern / Schließen‑Buttons */
#saveLocationBtn,
#closeLocationPopup {
    background: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.25s ease, transform 0.1s ease;
}
#saveLocationBtn:hover,
#closeLocationPopup:hover {
    background: #ff6600;
    transform: scale(1.05);
}

/* Nur der Delete-Button bekommt das Mülleimer-Symbol */
#locationList .deleteBtn::before {
    content: "\f2ed"; /* Font Awesome Trash */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 4px;
}

/* Edit-Button bleibt sauber (nur Bleistift) */
#locationList .editBtn::before {
    content: none; /* nichts hinzufügen */
}
.warnDays {
    display: flex;
    flex-direction: column;
    gap: 4px;                /* Abstand zwischen den Tagen */
    max-height: 100%;       /* Höhe für ca. 3 Einträge */
    overflow-y: auto;        /* Scroll aktivieren */
    overflow-x: hidden;
    scrollbar-width: thin;   /* für Firefox */
    scrollbar-color: #666 #222;
    width: 250px;
}

/* Optional: Scrollbar für WebKit (Chrome, Edge, Safari) */
.warnDays::-webkit-scrollbar {
    width: 6px;
}
.warnDays::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 3px;
}
.warnDays::-webkit-scrollbar-track {
    background-color: #222;
}

.warnDay:not(.extremeFrameHeat):not(.extremeFrameCold):not(.extremeFramePurple):not(.extremeFrameAsh) {
    transform: translateX(12px);
}



/* ====================== RAHMEN AB 35°C, BLINK NUR AB 40°C ====================== */

/* Statischer Rahmen ab 35°C */
/* Statischer Rahmen ab 35°C – volle Breite */
.extremeFrameHeat {
    grid-column: 1 / -1;                    /* volle Breite über alle Spalten */
    border: 3px solid #ff2e2e;
    border-radius: 6px;
    padding: 4px 10px;
    background: rgba(255,50,50,0.08);
}

/* ====================== INVERTIERTE TEMPERATUR AB 40°C ====================== */

/* Statischer Rahmen ab 35°C */
.extremeFrameHeat {
    border: 3px solid #ff2e2e;
    border-radius: 6px;
    padding: 4px 10px;
    background: rgba(255, 50, 50, 0.08);
}

/* Ab 40°C: Lila Hintergrund + weiße Schrift */
.extremeFramePurple {
    border: 3px solid #de4feb;
    border-radius: 6px;
    padding: 4px 10px;
    background: #de4feb !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* Ab 42°C: Tiefes Violett + weiße Schrift */
.extremeFrameAsh {
    border: 3px solid #8b00ff;
    border-radius: 6px;
    padding: 4px 10px;
    background: #8b00ff !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* Nur bei Extremstufen die Temperatur weiß machen */
.warnDay.extremeFramePurple .warnDayTemp,
.warnDay.extremeFrameAsh .warnDayTemp {
    color: #ffffff !important;
}

/* Normaler Text bei allen anderen Einträgen */
.warnDay .warnDayText,
.warnDay .warnDayDash,
.warnDay:not(.extremeFramePurple):not(.extremeFrameAsh) .warnDayTemp {
    color: inherit !important;
}

   /* Standard-Position */
    #currentTemp {
        font-size: calc(84px * var(--temp-scale));
        font-weight: bold;
        line-height: 1;
        transform: translatex(-10px);
    }

    /* Wenn KEINE Gefühlte Temperatur angezeigt wird → Icon + Temperatur nach rechts */
    #feelsLike[style*="hidden"],
    #feelsLike.hidden,
    #feelsLike:empty,
    #tempCurrent:has(#feelsLike[style*="hidden"]) .tempRow,
    #tempCurrent:has(#feelsLike.hidden) .tempRow {
        transform: translateX(50px) !important;   /* +100px Verschiebung */
    }

    /* Fallback für ältere Browser */
    #feelsLike.hidden ~ .tempRow,
    #tempCurrent:has(#feelsLike.hidden) .tempRow {
        transform: translateX(50px) !important;
    }

    /* Nur im Nightmode */
    body.night-mode .night-temp-position {
        margin-left: -350px;
        margin-top: -350px;
        transform: scale(1.5);
    }

    

    /* Nightmode Positionen */
    body.night-mode #timeBlock {
        position: absolute;
        top: 160px;
    }
    
    body.night-mode #tempCurrent {
        position: absolute;
        top: 160px;
        left: 600px;
    }

    body.night-mode #box1 {
        position: absolute;
        top: 420px;
        left: 750px;
    }

    body.night-mode #time .seconds,
    .seconds {
        position: absolute !important;
        top: 76px !important;
        left: 180px !important;            
    }

    body.night-Mode #maxmin_temp {
        display: flex !important;
    }

    /* Daily Wettericons im Nightmode stärker abdunkeln */
    body.night-mode #daily .dayIcon {
        filter: brightness(0.5) saturate(0.8);
    }


    .lastCodeUpdate {
        width: 100%;
        text-align: center;
        font-size: 14px;
        line-height: 1.3;
        opacity: 0.55;
        padding: 2px 0 5px 0;
        margin-top: -6px;
    }
    
    .lastCodeUpdate span {
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        opacity: 0.9;
    }

    .weatherPopup.night-mode {
    background: rgba(20, 20, 20, 0.97) !important;
    color: #e0e0e0 !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9) !important;
}


/* DWD Warnpopup im Nachtmodus */
body.night-mode #dwdWarningPopup {
    filter: brightness(0.15) !important;
}

body.night-mode #dwdWarningPopup .dwd-warning-content {
    background: rgba(25, 25, 25, 0.95) !important;
    color: #ddd !important;
}

body.night-mode .dwdWarningPopup {
    filter: brightness(0.25) !important;
}

