/* MHL Küstenwetter – eigene, auf diese Seite begrenzte Regeln */
.mhl-cw{--mhl-cw-cyan:#8ce4f2;--mhl-cw-text:#edf8fa;--mhl-cw-muted:#b1cbd1;--mhl-cw-line:rgba(140,228,242,.2);width:min(1200px,calc(100% - 2rem));margin:clamp(1rem,3vw,2rem) auto 3rem;color:var(--mhl-cw-text)}
.mhl-cw *{box-sizing:border-box}
.mhl-cw h2,.mhl-cw h3{margin:0;color:inherit;line-height:1.25}
.mhl-cw p{line-height:1.65}
.mhl-cw__search,.mhl-cw__forecast,.mhl-cw__info-card{padding:clamp(1rem,2.5vw,1.6rem);border:1px solid var(--mhl-cw-line);border-radius:18px;background:linear-gradient(150deg,rgba(8,53,73,.74),rgba(2,25,40,.78));box-shadow:inset 0 1px rgba(255,255,255,.06),0 14px 35px rgba(0,10,18,.14)}
.mhl-cw__section-heading{margin-bottom:1.2rem}
.mhl-cw__section-heading h2,.mhl-cw__result-head h2{font-size:clamp(1.2rem,2vw,1.65rem);margin:.25rem 0 .5rem}
.mhl-cw__section-heading p,.mhl-cw__info-card p{margin:.35rem 0 0;color:var(--mhl-cw-muted);max-width:74ch}
.mhl-cw__eyebrow{display:inline-block;color:var(--mhl-cw-cyan);font-size:.72rem;font-weight:750;letter-spacing:.13em;text-transform:uppercase}
.mhl-cw__form{position:relative;max-width:900px}
.mhl-cw__form label{display:block;margin:0 0 .45rem;font-size:.9rem;font-weight:650;color:var(--mhl-cw-text)}
.mhl-cw__search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem}
.mhl-cw__search-row input{width:100%;min-width:0;min-height:48px;padding:.7rem .9rem;border:1px solid rgba(154,226,238,.35);border-radius:11px;background:rgba(1,22,35,.68);color:#f5fbfc;font:inherit;outline:none}
.mhl-cw__search-row input::placeholder{color:#a8c5cc}
.mhl-cw__search-row input:focus-visible{border-color:var(--mhl-cw-cyan);box-shadow:0 0 0 3px rgba(140,228,242,.15)}
.mhl-cw__button{min-height:48px;padding:.7rem 1.1rem;border:1px solid rgba(140,228,242,.52);border-radius:11px;background:linear-gradient(145deg,rgba(18,119,146,.9),rgba(5,65,87,.95));color:#fff;font:inherit;font-weight:700;cursor:pointer}
.mhl-cw__button:hover{filter:brightness(1.1)}
.mhl-cw__suggestions{position:absolute;z-index:20;top:100%;left:0;right:0;display:grid;gap:.25rem;max-height:260px;overflow:auto;margin-top:.35rem;padding:.4rem;border:1px solid var(--mhl-cw-line);border-radius:12px;background:#042334f5;box-shadow:0 18px 35px #0005}
.mhl-cw__suggestions[hidden]{display:none}
.mhl-cw__suggestion{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;min-height:44px;padding:.65rem .75rem;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--mhl-cw-text);text-align:left;font:inherit;cursor:pointer}
.mhl-cw__suggestion:hover,.mhl-cw__suggestion:focus-visible{outline:2px solid rgba(140,228,242,.65);outline-offset:-2px;background:rgba(36,125,148,.24)}
.mhl-cw__suggestion small{color:var(--mhl-cw-muted);white-space:nowrap}
.mhl-cw__status{min-height:1.3em;margin:.6rem 0 0;color:var(--mhl-cw-muted);font-size:.88rem}
.mhl-cw__result{margin:1.25rem 0}
.mhl-cw__result-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:0 0 .9rem}
.mhl-cw__muted{color:var(--mhl-cw-muted);font-size:.88rem;margin:.35rem 0 0}
.mhl-cw__pill{display:inline-flex;align-items:center;min-height:30px;padding:.35rem .7rem;border:1px solid var(--mhl-cw-line);border-radius:999px;color:var(--mhl-cw-cyan);font-size:.78rem;font-weight:650;white-space:nowrap}
.mhl-cw__metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.mhl-cw__metric{min-width:0;padding:1rem;border:1px solid var(--mhl-cw-line);border-radius:15px;background:linear-gradient(155deg,rgba(6,47,66,.76),rgba(2,26,41,.8));box-shadow:inset 0 1px rgba(255,255,255,.04)}
.mhl-cw__metric span,.mhl-cw__metric small{display:block;color:var(--mhl-cw-muted);font-size:.82rem;line-height:1.45}
.mhl-cw__metric strong{display:block;margin:.42rem 0;font-size:clamp(1.4rem,2.4vw,2rem);line-height:1.15;font-weight:750;overflow-wrap:anywhere;color:#fff}
.mhl-cw__days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
.mhl-cw__day{min-width:0;padding:1rem;border:1px solid rgba(140,228,242,.15);border-radius:13px;background:rgba(2,29,44,.54)}
.mhl-cw__day strong,.mhl-cw__day span{display:block}
.mhl-cw__day strong{font-size:1rem;color:#fff}
.mhl-cw__day span{margin-top:.45rem;color:var(--mhl-cw-muted);font-size:.88rem;line-height:1.55;overflow-wrap:anywhere}
.mhl-cw__hours-wrap{margin-top:1.5rem;padding-top:1.2rem;border-top:1px solid rgba(140,228,242,.14)}
.mhl-cw__hours-wrap h3{font-size:1.08rem;margin-bottom:.8rem}
.mhl-cw__hours{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.55rem}
.mhl-cw__hour{min-width:0;padding:.7rem .55rem;border:1px solid rgba(140,228,242,.13);border-radius:10px;background:rgba(2,27,41,.48);text-align:center}
.mhl-cw__hour time,.mhl-cw__hour strong,.mhl-cw__hour span{display:block}
.mhl-cw__hour time,.mhl-cw__hour span{color:var(--mhl-cw-muted);font-size:.76rem;line-height:1.5}
.mhl-cw__hour strong{margin:.35rem 0;color:#fff;font-size:1.1rem}
.mhl-cw__links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1.2rem}
.mhl-cw__info-card h2{margin:.35rem 0 .55rem;font-size:1.15rem}
.mhl-cw__text-link{display:inline-flex;align-items:center;gap:.4rem;margin-top:.9rem;color:var(--mhl-cw-cyan);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.mhl-cw__text-link:focus-visible,.mhl-cw__source-note a:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:2px}
.mhl-cw__source-note{margin:1rem .1rem 0;color:var(--mhl-cw-muted);font-size:.78rem}
.mhl-cw__source-note p{margin:.4rem 0}
.mhl-cw__source-note a{color:var(--mhl-cw-cyan);text-underline-offset:2px}
@media(max-width:900px){.mhl-cw__metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mhl-cw__hours{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.mhl-cw{width:calc(100% - 1.1rem);margin:1rem auto 2rem}.mhl-cw__search-row{grid-template-columns:minmax(0,1fr)}.mhl-cw__button{width:100%}.mhl-cw__result-head{align-items:flex-start;flex-direction:column}.mhl-cw__days,.mhl-cw__links{grid-template-columns:minmax(0,1fr)}.mhl-cw__hours{grid-template-columns:repeat(2,minmax(0,1fr))}.mhl-cw__metric{padding:.85rem}.mhl-cw__pill{white-space:normal}}
@media(prefers-reduced-motion:reduce){.mhl-cw *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* MHL-COASTAL-WEATHER-REPAIR-V3 */
.tide-page-shell.mhl-cw-shell > .mhl-cw {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 2.5rem !important;
}
.tide-page-shell.mhl-cw-shell > .mhl-cw .mhl-cw__form {
    width: 100% !important;
    max-width: none !important;
}
.mhl-cw__search {
    position: relative;
    overflow: visible !important;
}
.mhl-cw__suggestions {
    position: static !important;
    inset: auto !important;
    display: grid;
    width: 100% !important;
    max-width: none !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    margin: .5rem 0 0 !important;
    z-index: auto !important;
}
.mhl-cw__suggestions[hidden] {
    display: none !important;
}
.mhl-cw__metric {
    min-height: 132px;
}
.mhl-cw__day {
    min-height: 154px;
}
.mhl-cw__hour {
    min-height: 130px;
}
.mhl-cw__info-card {
    min-height: 190px;
}
@media (max-width: 600px) {
    .mhl-cw__metric { min-height: 118px; }
    .mhl-cw__day, .mhl-cw__hour, .mhl-cw__info-card { min-height: 0; }
}

/* MHL-COASTAL-WEATHER-DESIGN-V4.1
   Eigenständiges Styling für die Küstenwetter-Seite. */

.mhl-cw-page-intro {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.mhl-cw-page-intro > * {
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding-top: clamp(.65rem, 1.1vw, 1rem) !important;
    padding-bottom: .25rem !important;
}

.mhl-cw-page-intro > * :is(
    .shell, .container,
    [class*="hero-inner"], [class*="hero__inner"],
    [class*="page-header__inner"], [class*="page-header-inner"]
) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    padding-top: .35rem !important;
    padding-bottom: .25rem !important;
}

.mhl-cw-page-intro + .tide-page-shell.mhl-cw-shell {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.mhl-cw__heading-icon,
.mhl-cw__label-icon {
    display: inline-block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mhl-cw__heading-icon {
    width: 1.18em;
    height: 1.18em;
    color: var(--mhl-cw-cyan, #8ce4f2);
}

.mhl-cw__label-icon {
    width: 1em;
    height: 1em;
    margin-right: .35rem;
    vertical-align: -.12em;
    color: var(--mhl-cw-cyan, #8ce4f2);
}

.mhl-cw__section-heading h2,
.mhl-cw__hours-wrap h3,
.mhl-cw__info-card h2 {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.mhl-cw__form label {
    display: flex;
    align-items: center;
    gap: .15rem;
}

.mhl-cw__metric {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 1.05rem;
    border-color: rgba(122, 219, 237, .28);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(31, 135, 161, .17), transparent 58%),
        linear-gradient(155deg, rgba(4, 44, 62, .94), rgba(1, 23, 37, .97));
    box-shadow:
        inset 0 1px rgba(255,255,255,.065),
        0 10px 26px rgba(0, 9, 18, .13);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.mhl-cw__metric::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    content: "";
    background: linear-gradient(180deg, #8ce4f2, rgba(44, 155, 187, .15));
}

.mhl-cw__metric-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .65rem;
    color: var(--mhl-cw-muted, #b1cbd1);
    font-size: .85rem;
    font-weight: 650;
    line-height: 1.3;
}

.mhl-cw__metric-icon {
    display: inline-block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 8px;
    border: 1px solid rgba(140, 228, 242, .26);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(23, 112, 139, .44), rgba(3, 39, 55, .7));
    color: #8ce4f2;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mhl-cw__metric strong {
    margin: .35rem 0;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.025em;
}

.mhl-cw__metric small {
    display: block;
    margin-top: .45rem;
    line-height: 1.45;
}

.mhl-cw__condition-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #8ce4f2;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mhl-cw__pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.mhl-cw__day {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border-color: rgba(140, 228, 242, .19);
    background: linear-gradient(145deg, rgba(9, 55, 73, .66), rgba(2, 28, 43, .68));
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.mhl-cw__day-top {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
}

.mhl-cw__day-top strong {
    color: #f2fbfc;
    font-size: 1rem;
}

.mhl-cw__day-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 7px;
    border: 1px solid rgba(140, 228, 242, .2);
    border-radius: 11px;
    background: rgba(12, 94, 120, .24);
    color: #8ce4f2;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mhl-cw__day > span {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .38rem;
    line-height: 1.5;
}

.mhl-cw__day-condition {
    color: #8ce4f2 !important;
    font-weight: 650;
}

.mhl-cw__hours-wrap {
    padding-top: 1.3rem;
}

.mhl-cw__hour {
    border-color: rgba(140, 228, 242, .16);
    background: linear-gradient(155deg, rgba(7, 48, 66, .72), rgba(2, 27, 42, .74));
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.mhl-cw__hour-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.mhl-cw__mini-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #8ce4f2;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mhl-cw__hour-condition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}

.mhl-cw__info-card {
    border-color: rgba(140, 228, 242, .24);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(19, 111, 139, .12), transparent 62%),
        linear-gradient(150deg, rgba(6, 45, 63, .87), rgba(2, 26, 41, .9));
    transition: transform .22s ease, border-color .22s ease;
}

.mhl-cw__text-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(140, 228, 242, .38);
    padding-bottom: .2rem;
}

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

.mhl-cw-page-intro { animation: mhlCwFadeUpV41 .32s ease-out both; }
.mhl-cw__search { animation: mhlCwFadeUpV41 .4s .03s ease-out both; }
.mhl-cw__result { animation: mhlCwFadeUpV41 .42s .07s ease-out both; }
.mhl-cw__forecast { animation: mhlCwFadeUpV41 .45s .1s ease-out both; }
.mhl-cw__links > * { animation: mhlCwFadeUpV41 .42s .12s ease-out both; }

@media (hover: hover) and (pointer: fine) {
    .mhl-cw__metric:hover,
    .mhl-cw__day:hover,
    .mhl-cw__hour:hover,
    .mhl-cw__info-card:hover {
        transform: translateY(-3px);
        border-color: rgba(140, 228, 242, .5);
        box-shadow: 0 14px 28px rgba(0, 10, 18, .2);
    }
}

@media (max-width: 600px) {
    .mhl-cw-page-intro > * {
        padding-top: .7rem !important;
        padding-bottom: .25rem !important;
    }
    .mhl-cw__metric {
        min-height: 126px;
        padding: .9rem;
    }
    .mhl-cw__metric-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        padding: 7px;
    }
    .mhl-cw__day { padding: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mhl-cw-page-intro,
    .mhl-cw__search,
    .mhl-cw__result,
    .mhl-cw__forecast,
    .mhl-cw__links > *,
    .mhl-cw__metric,
    .mhl-cw__day,
    .mhl-cw__hour,
    .mhl-cw__info-card {
        animation: none !important;
        transition: none !important;
    }
}


/* MHL-CW-UX-FIX-V42 */

/* Seitenkopf im selben maritimen Glasstil wie die übrigen Panels. */
.mhl-cw-page-intro {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0.65rem auto 1.15rem !important;
    padding: clamp(0.9rem, 1.8vw, 1.35rem) !important;
    overflow: hidden;
    border: 1px solid rgba(93, 220, 244, 0.58);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(2, 37, 51, 0.88),
            rgba(1, 22, 34, 0.80)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.mhl-cw-page-intro > * {
    max-width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.mhl-cw-page-intro h1 {
    margin-top: 0 !important;
    margin-bottom: 0.3rem !important;
}

/* Zusätzlicher Schutz: kein separates Header-Dekor rechts oben. */
.mhl-cw-page-intro .page-header__icon,
.mhl-cw-page-intro .page-header-icon,
.mhl-cw-page-intro [data-page-header-icon] {
    display: none !important;
}

/* Status und Prognosehinweis auf getrennten Zeilen. */
html.mhl-cw-motion-enabled main [class*="status"],
html.mhl-cw-motion-enabled main [role="status"] {
    white-space: pre-line;
}

/* Dezente Bewegung der Wetter-SVGs in Inhaltskarten. */
@keyframes mhl-cw-weather-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}

@keyframes mhl-cw-weather-sun-glow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(255, 200, 80, 0));
        transform: rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 5px rgba(255, 200, 80, 0.32));
        transform: rotate(4deg);
    }
}

@keyframes mhl-cw-weather-wind {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(2px); }
}

@keyframes mhl-cw-weather-rain {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(2px); }
}

html.mhl-cw-motion-enabled main svg {
    transform-origin: center;
}

/* Grundbewegung für Symbole in Wetterkarten. */
html.mhl-cw-motion-enabled main
[class*="weather"] svg,
html.mhl-cw-motion-enabled main
[class*="forecast"] svg,
html.mhl-cw-motion-enabled main
[class*="hour"] svg,
html.mhl-cw-motion-enabled main
[class*="day"] svg {
    animation: mhl-cw-weather-float 4s ease-in-out infinite;
}

/* Bedingungsspezifische Animationen, sofern die Icon-Klassen vorhanden sind. */
html.mhl-cw-motion-enabled main
[class*="sun"] svg,
html.mhl-cw-motion-enabled main
svg[class*="sun"] {
    animation: mhl-cw-weather-sun-glow 3.5s ease-in-out infinite;
}

html.mhl-cw-motion-enabled main
[class*="rain"] svg,
html.mhl-cw-motion-enabled main
svg[class*="rain"] {
    animation: mhl-cw-weather-rain 1.8s ease-in-out infinite;
}

html.mhl-cw-motion-enabled main
[class*="wind"] svg,
html.mhl-cw-motion-enabled main
svg[class*="wind"] {
    animation: mhl-cw-weather-wind 2.6s ease-in-out infinite;
}

/* Auf kleineren Displays Abstände begrenzen; restliches Layout unverändert. */
@media (max-width: 640px) {
    .mhl-cw-page-intro {
        margin-top: 0.45rem !important;
        margin-bottom: 0.85rem !important;
        padding: 0.9rem !important;
        border-radius: 14px;
    }
}

/* Barrierefreiheit: Bewegungen respektieren. */
@media (prefers-reduced-motion: reduce) {
    html.mhl-cw-motion-enabled main svg,
    html.mhl-cw-motion-enabled main [class*="weather"] svg,
    html.mhl-cw-motion-enabled main [class*="forecast"] svg,
    html.mhl-cw-motion-enabled main [class*="hour"] svg,
    html.mhl-cw-motion-enabled main [class*="day"] svg,
    html.mhl-cw-motion-enabled main [class*="sun"] svg,
    html.mhl-cw-motion-enabled main [class*="rain"] svg,
    html.mhl-cw-motion-enabled main [class*="wind"] svg {
        animation: none !important;
        transition: none !important;
    }
}


/* MHL-CW-CONSOLIDATED-V51-BEGIN */

/* Keine Bewegungen oder Animationen auf der Küstenwetter-Seite. */
body:has(.mhl-cw-page-intro) main *,
body:has(.mhl-cw-page-intro) main *::before,
body:has(.mhl-cw-page-intro) main *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* Der aktuelle Wetterbereich: kompakter, dunkel und abgerundet. */
body:has(.mhl-cw-page-intro) .mhl-cw-compact-current {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-content: stretch !important;
    align-items: stretch !important;
    gap: 0.45rem !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0.45rem 0 1rem !important;
    padding: clamp(0.9rem, 1.8vw, 1.25rem) !important;

    background: rgba(2, 26, 40, 0.91) !important;
    background-image: none !important;
    border: 1px solid rgba(86, 179, 204, 0.44) !important;
    border-radius: 22px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden;
}

/* Status, Zustand und Messwerte ohne große Leerzonen. */
body:has(.mhl-cw-page-intro) [data-mhl-cw-updated] {
    display: block !important;
    margin: 0.2rem 0 0.35rem !important;
    line-height: 1.5 !important;
    min-height: 0 !important;
}

body:has(.mhl-cw-page-intro) [data-mhl-cw-condition] {
    display: inline-flex !important;
    align-self: flex-start !important;
    margin: 0.25rem 0 0.4rem !important;
    min-height: 0 !important;
    height: auto !important;
}

body:has(.mhl-cw-page-intro) [data-mhl-cw-metrics] {
    display: grid !important;
    margin: 0.25rem 0 0 !important;
    padding: 0 !important;
    gap: 0.75rem !important;
    align-content: start !important;
    min-height: 0 !important;
}

/* Einheitliche dunkle Kacheln – keine bunten Flächen, keine Streifen. */
body:has(.mhl-cw-page-intro) [data-mhl-cw-metrics] > .mhl-cw__metric,
body:has(.mhl-cw-page-intro) [data-mhl-cw-days] > article,
body:has(.mhl-cw-page-intro) [data-mhl-cw-hours] > article {
    box-sizing: border-box;
    background: rgba(3, 29, 43, 0.94) !important;
    background-image: none !important;
    border: 1px solid rgba(88, 166, 190, 0.30) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Die bisherigen farbigen Header- und Detailstreifen entfernen. */
body:has(.mhl-cw-page-intro) [data-mhl-cw-metrics] > article::before,
body:has(.mhl-cw-page-intro) [data-mhl-cw-metrics] > article::after,
body:has(.mhl-cw-page-intro) [data-mhl-cw-days] > article::before,
body:has(.mhl-cw-page-intro) [data-mhl-cw-days] > article::after,
body:has(.mhl-cw-page-intro) [data-mhl-cw-hours] > article::before,
body:has(.mhl-cw-page-intro) [data-mhl-cw-hours] > article::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Messwertbeschriftungen ohne Balkenhintergrund. */
body:has(.mhl-cw-page-intro) .mhl-cw__metric-head,
body:has(.mhl-cw-page-intro) .mhl-cw__metric-head *,
body:has(.mhl-cw-page-intro) [data-mhl-cw-hours] article > * {
    background-image: none !important;
    box-shadow: none !important;
}

/* Bunte Icons bleiben bunt; sie erhalten kein Kästchen. */
body:has(.mhl-cw-page-intro) svg[data-mhl-cw-icon-color] {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
}
body:has(.mhl-cw-page-intro) svg[data-mhl-cw-icon-color="sun"] {
    color: #ffd166 !important;
    stroke: #ffd166 !important;
}
body:has(.mhl-cw-page-intro) svg[data-mhl-cw-icon-color="rain"] {
    color: #54c7f3 !important;
    stroke: #54c7f3 !important;
}
body:has(.mhl-cw-page-intro) svg[data-mhl-cw-icon-color="cloud"] {
    color: #d0e0e8 !important;
    stroke: #d0e0e8 !important;
}
body:has(.mhl-cw-page-intro) svg[data-mhl-cw-icon-color="wind"] {
    color: #70dfd1 !important;
    stroke: #70dfd1 !important;
}
body:has(.mhl-cw-page-intro) svg[data-mhl-cw-icon-color="temperature"] {
    color: #ff8a73 !important;
    stroke: #ff8a73 !important;
}
body:has(.mhl-cw-page-intro) svg[data-mhl-cw-icon-color="humidity"] {
    color: #6bbcf5 !important;
    stroke: #6bbcf5 !important;
}
body:has(.mhl-cw-page-intro) svg[data-mhl-cw-icon-color="sea"] {
    color: #66d8e8 !important;
    stroke: #66d8e8 !important;
}

/* Datenstand und nächster Abruf in einer gemeinsamen Zeile am Desktop. */
body:has(.mhl-cw-page-intro) .mhl-cw-data-status {
    display: block !important;
    margin: 0.15rem 0 0.35rem !important;
    line-height: 1.5 !important;
    font-weight: 800 !important;
}

body:has(.mhl-cw-page-intro) .mhl-cw-next-update {
    display: inline !important;
    margin: 0 0 0 0.4em !important;
    font-size: 0.92em !important;
    line-height: inherit !important;
    font-weight: 700 !important;
}

/* Quellenhinweis unmittelbar nach dem DWD-Hinweis, ohne Extraabstand. */
body:has(.mhl-cw-page-intro) .mhl-cw-source-note {
    display: block !important;
    margin: 0.25rem 0 0.6rem !important;
    line-height: 1.45 !important;
    font-size: 0.86rem !important;
}

/* Mobile: hochwertiger, dunkelblauer Intro-Kasten wie Möwenmoment. */
@media (max-width: 1024px) {
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro {
        box-sizing: border-box !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.55rem 0 0.9rem !important;
        padding: 1.2rem 1.05rem 1.25rem !important;

        border: 0 !important;
        outline: 0 !important;
        border-radius: 25px !important;
        background: rgba(3, 39, 55, 0.94) !important;
        background-image: none !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        overflow: hidden !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro h1 {
        margin: 0 0 0.45rem !important;
        font-size: clamp(2rem, 7.5vw, 2.7rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.02em !important;
        overflow-wrap: anywhere !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro p {
        margin: 0.35rem 0 0 !important;
        font-size: clamp(1rem, 4vw, 1.2rem) !important;
        line-height: 1.55 !important;
        max-width: 36ch !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-compact-current {
        padding: 0.9rem !important;
        margin: 0.45rem 0 0.9rem !important;
        border-radius: 18px !important;
    }

    body:has(.mhl-cw-page-intro) [data-mhl-cw-metrics] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.65rem !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-next-update {
        margin-left: 0.25em !important;
    }
}

/*
 * Desktop-Hintergrund beibehalten:
 * altes Hintergrundbild nicht überlagern, stattdessen preloader.webp.
 */
@media (min-width: 1025px) {
    body:has(.mhl-cw-page-intro),
    body.mhl-cw-desktop-bg {
        background-color: #061722 !important;
        background-image: url('/assets/backgrounds/preloader.webp') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: fixed !important;
    }

    body.mhl-cw-desktop-bg .mhl-cw-v43-hide-background {
        display: none !important;
        background: none !important;
        background-image: none !important;
    }
}

/* MHL-CW-CONSOLIDATED-V51-END */


/* MHL-CW-MOBILE-TABLET-HEADER-V52-BEGIN */

/* Ausschließlich Smartphone und Tablet; Desktop bleibt unverändert. */
@media (max-width: 1024px) {
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.4rem 0 0.75rem !important;
        padding: clamp(1rem, 3.5vw, 1.5rem) !important;

        border: 0 !important;
        outline: 0 !important;
        border-radius: 24px !important;

        background: rgba(3, 39, 55, 0.94) !important;
        background-image: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    /* Oberzeile: Anker und Küstenbezeichnung sauber ausrichten. */
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro .mhl-cw-eyebrow,
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro .page-header__eyebrow {
        display: flex !important;
        align-items: center !important;
        gap: 0.55rem !important;
        margin: 0 0 0.35rem !important;
        font-size: clamp(0.85rem, 2.8vw, 1.05rem) !important;
        line-height: 1.3 !important;
        letter-spacing: 0.09em !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro h1 {
        margin: 0 0 0.65rem !important;
        font-size: clamp(2.15rem, 7.2vw, 3.2rem) !important;
        line-height: 1.04 !important;
        letter-spacing: -0.025em !important;
        overflow-wrap: anywhere !important;
        text-shadow: none !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro p {
        max-width: 34ch !important;
        margin: 0.35rem 0 0 !important;
        font-size: clamp(1rem, 3.7vw, 1.2rem) !important;
        line-height: 1.45 !important;
        overflow-wrap: normal !important;
        hyphens: auto !important;
    }

    /* Überdimensionierte Symbole im Kopfbereich vermeiden. */
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro svg {
        flex: 0 0 auto !important;
        width: clamp(1.25rem, 4.2vw, 1.8rem) !important;
        height: clamp(1.25rem, 4.2vw, 1.8rem) !important;
        max-width: 1.8rem !important;
        max-height: 1.8rem !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Sehr schmale Smartphones: nochmals kompaktere Schrift und Abstände. */
@media (max-width: 480px) {
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro {
        padding: 1rem 1.05rem 1.1rem !important;
        border-radius: 22px !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro h1 {
        font-size: clamp(2rem, 9vw, 2.65rem) !important;
        line-height: 1.05 !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro p {
        font-size: 1rem !important;
        line-height: 1.45 !important;
    }
}

/* MHL-CW-MOBILE-TABLET-HEADER-V52-END */


/* MHL-CW-MOBILE-HEADER-POSITION-V53-BEGIN */

/*
 * Nur Smartphone und Tablet:
 * die vorhandene page-header-Komponente kompakt nach oben setzen.
 * Wetterdaten, Prognosekarten und Desktop bleiben unberührt.
 */
@media (max-width: 1024px) {
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro {
        margin-top: 0 !important;
        margin-bottom: .75rem !important;
        padding-top: 0 !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro > * {
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: .25rem !important;
        padding-bottom: .5rem !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro > * :is(
        .shell,
        .container,
        [class*="hero-inner"],
        [class*="hero__inner"],
        [class*="page-header__inner"],
        [class*="page-header-inner"]
    ) {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro h1 {
        margin-top: .15rem !important;
        margin-bottom: .5rem !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro p {
        margin-top: .25rem !important;
        margin-bottom: 0 !important;
    }
}

/* MHL-CW-MOBILE-HEADER-POSITION-V53-END */


/* MHL-CW-SH-FARBEN-ALL-DEVICES-V56-BEGIN */

/* Dezente Schleswig-Holstein-Küstenfarben auf allen Bildschirmgrößen. */
body:has(.mhl-cw-page-intro) .mhl-cw__metric,
body:has(.mhl-cw-page-intro) .mhl-cw__day,
body:has(.mhl-cw-page-intro) .mhl-cw__hour {
    background-image: none !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Aktuelle Messwerte: sehr dunkle, leicht farbige Flächen. */
body:has(.mhl-cw-page-intro) .mhl-cw__metrics > .mhl-cw__metric:nth-child(1) {
    background-color: rgba(100, 76, 43, 0.23) !important;
    border: 1px solid rgba(224, 190, 133, 0.48) !important;
}
body:has(.mhl-cw-page-intro) .mhl-cw__metrics > .mhl-cw__metric:nth-child(2) {
    background-color: rgba(31, 91, 124, 0.27) !important;
    border: 1px solid rgba(105, 185, 229, 0.48) !important;
}
body:has(.mhl-cw-page-intro) .mhl-cw__metrics > .mhl-cw__metric:nth-child(3) {
    background-color: rgba(25, 102, 94, 0.25) !important;
    border: 1px solid rgba(112, 201, 189, 0.48) !important;
}
body:has(.mhl-cw-page-intro) .mhl-cw__metrics > .mhl-cw__metric:nth-child(4) {
    background-color: rgba(39, 76, 123, 0.28) !important;
    border: 1px solid rgba(131, 189, 233, 0.48) !important;
}

/* Drei-Tage-Ausblick: abwechslungsreiche, zurückhaltende Küstentöne. */
body:has(.mhl-cw-page-intro) .mhl-cw__days > .mhl-cw__day:nth-child(3n+1) {
    background-color: rgba(100, 76, 43, 0.20) !important;
    border: 1px solid rgba(224, 190, 133, 0.38) !important;
}
body:has(.mhl-cw-page-intro) .mhl-cw__days > .mhl-cw__day:nth-child(3n+2) {
    background-color: rgba(31, 91, 124, 0.24) !important;
    border: 1px solid rgba(105, 185, 229, 0.38) !important;
}
body:has(.mhl-cw-page-intro) .mhl-cw__days > .mhl-cw__day:nth-child(3n) {
    background-color: rgba(25, 102, 94, 0.22) !important;
    border: 1px solid rgba(112, 201, 189, 0.38) !important;
}

/* Stundenübersicht: einheitlich dunkel mit dezentem blau-türkisem Ton. */
body:has(.mhl-cw-page-intro) .mhl-cw__hours > .mhl-cw__hour {
    background-color: rgba(25, 75, 95, 0.25) !important;
    border: 1px solid rgba(105, 185, 199, 0.34) !important;
}

/* Alte dekorative Balken zuverlässig ausschalten. */
body:has(.mhl-cw-page-intro) .mhl-cw__metric::before,
body:has(.mhl-cw-page-intro) .mhl-cw__metric::after,
body:has(.mhl-cw-page-intro) .mhl-cw__day::before,
body:has(.mhl-cw-page-intro) .mhl-cw__day::after,
body:has(.mhl-cw-page-intro) .mhl-cw__hour::before,
body:has(.mhl-cw-page-intro) .mhl-cw__hour::after {
    content: none !important;
    display: none !important;
}

/* Wetter-Icons farblich passend zu den Kacheln. */
body:has(.mhl-cw-page-intro) .mhl-cw__metric:nth-child(1) .mhl-cw__metric-icon {
    color: #dfbd83 !important;
}
body:has(.mhl-cw-page-intro) .mhl-cw__metric:nth-child(2) .mhl-cw__metric-icon {
    color: #69b9e5 !important;
}
body:has(.mhl-cw-page-intro) .mhl-cw__metric:nth-child(3) .mhl-cw__metric-icon {
    color: #70c9bd !important;
}
body:has(.mhl-cw-page-intro) .mhl-cw__metric:nth-child(4) .mhl-cw__metric-icon {
    color: #83bde9 !important;
}

/* Keine Hover-Bewegung oder zusätzliche Aufhellung. */
@media (hover: hover) {
    body:has(.mhl-cw-page-intro) .mhl-cw__metric:hover,
    body:has(.mhl-cw-page-intro) .mhl-cw__day:hover,
    body:has(.mhl-cw-page-intro) .mhl-cw__hour:hover {
        filter: none !important;
        transform: none !important;
        box-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* MHL-CW-SH-FARBEN-ALL-DEVICES-V56-END */


/* MHL-CW-MOBILE-HEADER-FEINSCHLIFF-V62-BEGIN */
/* Präziser Textabstand und kompakter Abschluss des mobilen Headers. */
@media (max-width: 1024px) {
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro {
        margin-bottom: .55rem !important;
        padding-bottom: .2rem !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro h1 {
        margin-top: .1rem !important;
        margin-bottom: .65rem !important;
        line-height: 1.08 !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro p {
        margin-top: 0 !important;
        margin-bottom: .15rem !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        font-size: clamp(1.05rem, 3.7vw, 1.2rem) !important;
        line-height: 1.42 !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
        text-wrap: pretty;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro
        + .tide-page-shell.mhl-cw-shell {
        margin-top: .2rem !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 480px) {
    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro {
        margin-bottom: .5rem !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro h1 {
        margin-bottom: .65rem !important;
    }

    body:has(.mhl-cw-page-intro) .mhl-cw-page-intro p {
        font-size: 1.03rem !important;
        line-height: 1.42 !important;
    }
}
/* MHL-CW-MOBILE-HEADER-FEINSCHLIFF-V62-END */

