/* ═══════════════════════════════════════════════════════════════════════════
   ASTRO ↔ DAYLIGHT  (js/site-mode.js)
   Umschalter in der Leiste, Himmel für den Zeitraffer-Wechsel, helles Tag-Design
   mit Galerie (js/day-gallery.js) und "Neueste Projekte" unter der Slideshow
   (js/home-projects.js).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Farben der Leiste im Ruhezustand ───────────────────────────────────────
   Während des Wechsels setzt js/site-mode.js dieselben Variablen Bild für Bild. */
header {
    --ink: #ffffff;                     /* Schrift der Knöpfe */
    --veil: rgba(8, 8, 14, var(--hb-dunkel));   /* Schleier hinter Logo & Knöpfen (styles.css) */
}

/* Tag: oben über dem Sonnenuntergangs-Foto helle Schrift; beim Runterscrollen setzt
   js/site-mode.js (setDayScroll) dunkle Schrift auf hellem Schleier */
html.is-day header {
    --ink: #ffffff;
    --veil: rgba(60, 24, 6, 0.12);
    --logo-pos: 100%;
    --logo-mix: 1;
}

/* ─── Knöpfe rechts: Galerie + Umschalter ─────────────────────────────────── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}

.nav-gallery {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 9rem;
    white-space: nowrap;
    transition: max-width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease,
                margin 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-width 0.6s ease, background-position 0.45s ease,
                text-shadow 0.3s ease;
}

.nav-ico {
    display: none;
    width: 17px;
    height: 17px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

/* Daylight ist selbst die Galerie → der Link zieht sich zurück */
.nav-actions.is-day .nav-gallery {
    max-width: 0;
    opacity: 0;
    margin-right: -1.7rem;
    pointer-events: none;
}

.mode-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--ink) 17%, transparent);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* gleitender Hintergrund unter dem aktiven Knopf: Verlauf wandert von
   Astro (blau → magenta) zu Daylight (rot → gold) */
.mode-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: var(--tw, 0);
    transform: translateX(var(--tx, 0));
    border-radius: 999px;
    background: linear-gradient(90deg, #2D66B6, #9a4fc0 33.3%, #d9431f 66.7%, #f29a2a);
    background-size: 300% 100%;
    background-position: 0% 0;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    opacity: 0;
    transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1), width 0.65s cubic-bezier(0.65, 0, 0.35, 1),
                background-position 1.1s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.9s ease,
                opacity 0.3s ease;
}

.mode-switch.ready .mode-thumb { opacity: 1; }

/* Beim Laden steht alles gleich an der richtigen Stelle (js/site-mode.js setzt .switch-live) */
html:not(.switch-live) .mode-thumb,
html:not(.switch-live) .mode-btn,
html:not(.switch-live) .mode-btn::before,
html:not(.switch-live) .mode-label,
html:not(.switch-live) .mode-ico,
html:not(.switch-live) .nav-gallery {
    transition: none !important;
}

.mode-switch.is-day .mode-thumb {
    background-position: 100% 0;
    box-shadow: 0 0 18px rgba(242, 120, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.mode-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    color: color-mix(in srgb, var(--ink) 74%, transparent);
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.45s ease;
}

.mode-btn[aria-current] { color: #fff; }

/* der andere Modus ist leicht in seinen Farben angedeutet: Daylight orange-gold, Astro
   blau-violett – gedämpft, der aktive Knopf bleibt klar vorne */
.mode-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.mode-btn[data-mode="night"]::before { background: linear-gradient(90deg, rgba(45, 102, 182, 0.24), rgba(154, 79, 192, 0.24)); }
.mode-btn[data-mode="day"]::before   { background: linear-gradient(90deg, rgba(217, 67, 31, 0.2), rgba(242, 154, 42, 0.24)); }
.mode-btn:not([aria-current])::before { opacity: 1; }
.mode-btn[data-mode="night"]:not([aria-current]) { color: color-mix(in srgb, #8d80ec 62%, var(--ink)); }
.mode-btn[data-mode="day"]:not([aria-current])   { color: color-mix(in srgb, #f59a3c 62%, var(--ink)); }
.has-mouse .mode-btn:not([aria-current]):hover { color: var(--ink); }
.has-mouse .mode-btn:not([aria-current]):hover::before { filter: saturate(1.5) brightness(1.2); }

.mode-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--ink) 60%, transparent);
    outline-offset: 2px;
}

.mode-label {
    display: inline-block;
    max-width: 6em;
    margin-left: 0.45rem;
    overflow: hidden;
    transition: max-width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), margin 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.35s ease;
}

.mode-ico {
    width: 17px;
    height: 17px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mode-ico--moon { transform: rotate(-28deg); }
.mode-btn[aria-current] .mode-ico--moon { transform: rotate(0deg); fill: currentColor; fill-opacity: 0.18; }
.mode-btn[aria-current] .mode-ico--sun { transform: rotate(90deg); }

/* Unterseite → Startseite (Daylight): Inhalt blendet aus, die Leiste bleibt */
html.page-leaving main,
html.page-leaving footer {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ─── Ansichten ──────────────────────────────────────────────────────────── */
.mode-view {
    position: relative;
    z-index: 1;
}

html:not(.is-day) #day-view,
html.is-day #night-view,
html.arrive-day #night-view {
    display: none;
}

/* von einer Unterseite zum Tag: erst nur Sternenhimmel, dann der Sonnenaufgang */
html.arrive-day footer { visibility: hidden; }

/* nur opacity – transform würde die festen Elemente der Slideshow (Handy) verschieben */
html.mode-anim #night-view,
html.mode-anim footer { will-change: opacity; }
html.mode-anim #day-view { will-change: opacity, transform; }

/* ─── Himmel (Zeitraffer + Tag-Hintergrund) ──────────────────────────────── */
#sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    visibility: hidden;
}

#sky.on { visibility: visible; }

.sky-bg,
.sky-stars,
.sky-ridges {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sky-bg { opacity: 0; }

.sky-sun {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    opacity: 0;
    will-change: transform;
}

.sky-ridges {
    opacity: 0;
    overflow: visible;
}

/* Sonnenuntergangs-Foto (data/sunset.json). Größe + Lage setzt js/site-mode.js – alle
   Ebenen liegen deckungsgleich übereinander:
     .sky-haze   stark weichgezeichnetes Foto – der Himmel geht beim Wechsel erst hierein über
     .sky-land   das Foto, nur unter der Horizontlinie (Maske) – die Landschaft der Animation
     .sky-tint   Einfärbung darüber: nachts dunkle Silhouette, mit der Sonne immer heller
     .sky-tail   warmer Abendhimmel, in den das Foto beim Runterscrollen ausläuft;
                 darin .sky-dusk (Abendrot), blendet zum Seitenende hin darüber
     .sky-pic    das Foto (scharf → weich → sehr weich), wandert beim Scrollen langsamer mit */
.sky-layer {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.sky-land,
.sky-tint {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.sky-tail {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.sky-dusk {
    position: absolute;
    inset: 0;
    opacity: 0;
    will-change: opacity;
}

/* Unterkante läuft weich aus – wenn sie beim Scrollen hochkommt, sieht man keine Kante */
.sky-pic {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

.sky-pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
}

.sky-pic .pic-b1,
.sky-pic .pic-b2 { opacity: 0; }

.sky-pic.fade-in { transition: opacity 0.9s ease; }

/* Vergleich der Hintergrund-Fotos: index.html?sonne */
.sunset-chooser {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 2000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(20, 12, 8, 0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sunset-chooser b { grid-column: 1 / -1; margin: 0 0 4px 2px; font-weight: 600; letter-spacing: 0.04em; }

.sunset-chooser button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.sunset-chooser button.on { border-color: #f29a2a; background: rgba(242, 154, 42, 0.22); }
.sunset-chooser img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; }
.sunset-chooser .sc-play { grid-column: 1 / -1; justify-content: center; padding: 7px 10px; margin-top: 4px; background: #e0631f; }

/* ─── Tag: Grundflächen ──────────────────────────────────────────────────── */
html.is-day body {
    background: #f6b98a;
    color: #4a2f20;
}

html.is-day #starfield { visibility: hidden; }

html.is-day footer {
    background: rgba(255, 232, 210, 0.28);
    border-top: 1px solid rgba(160, 80, 40, 0.14);
}

html.is-day footer p { color: #7a4a35; }

html.is-day .image-viewer-overlay {
    --iv-bg-rgb: 22, 15, 10;
    --iv-glass: rgba(38, 27, 19, 0.62);
    --iv-muted: #cdae95;
}

/* ─── Tag: Seite ─────────────────────────────────────────────────────────── */
.day-page {
    min-height: 100vh;
}

/* Titel steht im Himmel des Fotos; darunter bleibt Platz für Sonne und Horizont, die Galerie
   beginnt knapp darunter (Horizont-Höhe: HORIZON_AT in js/site-mode.js) */
.day-intro {
    box-sizing: border-box;
    min-height: 64vh;
    min-height: 64lvh;
    text-align: center;
    padding: calc(72px + 8vh) 1.25rem 2rem;
}

.day-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 248, 240, 0.92);
    text-shadow: 0 1px 12px rgba(110, 40, 5, 0.45);
    margin-bottom: 0.6rem;
}

.day-title {
    display: inline-block;
    font-size: clamp(2.9rem, 7.2vw, 5.2rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.01em;
    padding: 0 0.06em 0.08em;
    background: linear-gradient(180deg, #ffffff 35%, #ffe4c2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 16px rgba(110, 40, 5, 0.35));
}

.day-meta {
    margin-top: 0.7rem;
    color: rgba(255, 244, 232, 0.9);
    text-shadow: 0 1px 10px rgba(110, 40, 5, 0.45);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.day-meta:empty { visibility: hidden; }

.day-gallery-wrap {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 clamp(8px, 2.4vw, 36px);
}

.day-gallery {
    position: relative;
    min-height: 40vh;
}

.dg-tile {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    cursor: zoom-in;
    outline: none;
    box-shadow: 0 1px 2px rgba(90, 45, 15, 0.08), 0 12px 28px -16px rgba(120, 55, 15, 0.4);
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.8s ease var(--d, 0s), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
                box-shadow 0.45s ease;
    -webkit-tap-highlight-color: transparent;
    /* Kacheln weit außerhalb des Bildschirms rechnet der Browser nicht durch (Größe steht fest) –
       spart beim Umschalten auf Daylight und beim Scrollen */
    content-visibility: auto;
}

.dg-tile.is-in {
    opacity: 1;
    transform: none;
}

.dg-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dg-tile.is-loaded img { opacity: 1; }

.has-mouse .dg-tile.is-in:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 2px 4px rgba(90, 45, 15, 0.08), 0 22px 40px -18px rgba(150, 65, 15, 0.55);
}

.has-mouse .dg-tile:hover img { transform: scale(1.035); }

.dg-tile:focus-visible {
    box-shadow: 0 0 0 2px #fde3c3, 0 0 0 4px #e0631f;
}

.dg-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 2.6rem 1rem 0.8rem;
    background: linear-gradient(rgba(35, 16, 6, 0), rgba(35, 16, 6, 0.6));
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
}

.has-mouse .dg-tile:hover .dg-cap,
.dg-tile:focus-visible .dg-cap {
    opacity: 1;
    transform: none;
}

.dg-title {
    font-size: 0.98rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.dg-date {
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffd9a8;
}

/* fürs Raster beschnittenes Panorama (schmale Bildschirme) */
.dg-tile.is-cropped::after {
    content: '⟷  Panorama';
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 9px 3px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(40, 20, 8, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* Scroll-Anzeige (js/day-gallery.js): dünne Leiste ganz oben am Bildschirmrand */
.day-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    height: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

html.is-day:not(.mode-anim) .day-progress.active { opacity: 1; }
body:has(.image-viewer-overlay.active) .day-progress { opacity: 0; }

.dp-fill {
    position: absolute;
    inset: 0;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, #d9431f, #f07a2a 55%, #ffc65a);
    box-shadow: 0 0 6px rgba(240, 120, 40, 0.55);
}

/* ─── Aussortieren: index.html?sortieren#daylight (js/day-gallery.js) ─────── */
.dg-vote {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dg-vote button,
.dgv-likes:not(:empty) {
    height: 28px;
    min-width: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(30, 14, 6, 0.55);
    color: #fff;
    font: inherit;
    font-size: 0.75rem;
    line-height: 28px;
    cursor: pointer;
}

.dgv-likes { color: #ffb3a8 !important; cursor: default !important; }
.dg-tile.vote-keep .dgv-keep { background: #3f9b5a; }
.dg-tile.vote-out .dgv-out { background: #d9431f; }
.dg-tile.vote-keep { box-shadow: 0 0 0 3px #3f9b5a; }
.dg-tile.vote-out { box-shadow: 0 0 0 3px #d9431f; }
.dg-tile.vote-out img { filter: grayscale(0.85) brightness(0.7); }

.viewer-likes { padding: 0 8px; font-size: 0.8rem; color: #ffb3a8; }
.viewer-likes:empty { display: none; }
.viewer-vote.keep.on { background: #3f9b5a; color: #fff; }
.viewer-vote.out.on { background: #d9431f; color: #fff; }

.sort-panel {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 2000;
    width: min(340px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(30, 16, 8, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sort-panel b { font-size: 0.9rem; letter-spacing: 0.04em; }
.sort-panel p { margin: 6px 0; color: #f1d6c2; }
.sort-panel .sp-hint { color: #c9a58c; font-size: 0.74rem; }
.sp-row { display: flex; gap: 6px; margin-top: 6px; }

.sort-panel button {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.sort-panel button.on,
.sort-panel .sp-save:not(:disabled) { border-color: #f29a2a; background: rgba(242, 154, 42, 0.25); }
.sort-panel button:disabled { opacity: 0.45; cursor: default; }

.dg-empty {
    padding: 4rem 1rem;
    text-align: center;
    color: #7a4a35;
}

.day-contact {
    padding: clamp(3.5rem, 9vh, 6rem) 1.25rem clamp(2.5rem, 6vh, 4rem);
    text-align: center;
    color: #7a4a35;
}

.day-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    color: #6b4330;
    background: rgba(255, 240, 225, 0.5);
    border: 1px solid rgba(180, 90, 40, 0.18);
    box-shadow: 0 8px 24px -14px rgba(150, 70, 20, 0.35);
}

.day-mail i { color: #e0631f; }

@media (prefers-reduced-motion: reduce) {
    .dg-tile, .dg-tile img, .hp-tile, .hp-tile img { transition: opacity 0.3s ease; transform: none !important; }
}

/* ─── Astro: "Neueste Projekte" unter der Slideshow ──────────────────────── */
/* Eine Reihe als Teaser, blendet nach rechts aus; dort liegt "Zur Galerie" über dem
   Ausblend-Bereich (der ganze Bereich ist der Link). */
.home-projects {
    --hp-h: clamp(130px, 13vw, 180px);   /* Höhe der Kacheln */
    padding: 5rem 0 1rem;
}

.hp-head { margin-bottom: 1.3rem; }

.hp-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #9cc0f0, #e8b2de);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.home-projects h2 {
    font-size: 2.4rem;
    line-height: 1.15;
    background: var(--astro-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hp-strip {
    position: relative;
    height: var(--hp-h);
}

.hp-row {
    display: flex;
    gap: 12px;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, 0.4) 72%, transparent 92%);
    mask-image: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, 0.4) 72%, transparent 92%);
}

.hp-tile {
    position: relative;
    flex: none;
    height: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(20, 20, 30, 0.6);
    opacity: 0;
    transition: opacity 0.6s ease var(--d, 0s);
}

.hp-tile.is-loaded { opacity: 1; }

.hp-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-mouse .hp-tile:hover img { transform: scale(1.05); }
.hp-tile.is-faded .hp-cap { display: none; }

.hp-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 1.8rem 0.8rem 0.6rem;
    background: linear-gradient(rgba(3, 3, 8, 0), rgba(3, 3, 8, 0.75));
    pointer-events: none;
}

.hp-title,
.hp-date {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hp-title {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.88rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hp-date {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #9cc0f0, #e8b2de);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hp-more {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem;
    padding-right: 0.25rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.hp-more-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.55rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #eef2fb;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hp-more-label svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hp-more-sub {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9db0d0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.has-mouse .hp-more:hover .hp-more-label { color: #fff; }
.has-mouse .hp-more:hover .hp-more-label svg { transform: translateX(5px); }

.hp-more:focus-visible {
    outline: 2px solid rgba(170, 140, 255, 0.6);
    outline-offset: 4px;
    border-radius: 10px;
}

/* ─── Handy / schmal ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-container { padding: 0.85rem 1rem; }
    .nav-actions { gap: 0.6rem; }
    .nav-actions.is-day .nav-gallery { margin-right: -0.6rem; }

    /* Galerie als kleiner Knopf mit Symbol */
    .nav-gallery {
        height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid color-mix(in srgb, var(--ink) 17%, transparent);
        background: color-mix(in srgb, var(--ink) 7%, transparent);
        color: var(--ink);
        font-size: 0.88rem;
    }
    .nav-gallery::after { display: none; }
    .nav-ico { display: block; }

    /* Umschalter: nur der aktive Knopf zeigt seinen Namen */
    .mode-btn { height: 30px; padding: 0 10px; font-size: 0.86rem; }
    .mode-btn:not([aria-current]) .mode-label { max-width: 0; margin-left: 0; opacity: 0; }

    .home-projects { --hp-h: 104px; padding-top: 3.5rem; }
    .home-projects h2 { font-size: 1.85rem; }
    .hp-head { margin-bottom: 1rem; }
    .hp-row { gap: 6px; }
    .hp-tile { aspect-ratio: 1; border-radius: 8px; }
    .hp-cap { display: none; }
    .hp-more { width: 52%; }
    .hp-more-label { font-size: 1.2rem; gap: 0.4rem; }
    .hp-more-label svg { width: 20px; height: 20px; }
    .hp-more-sub { font-size: 0.6rem; letter-spacing: 0.1em; }
    .hp-more-obj { display: none; }
    .dg-cap { padding: 2rem 0.75rem 0.65rem; }
    .dg-title { font-size: 0.88rem; }

    .day-intro { min-height: 60vh; min-height: 60lvh; padding-top: calc(64px + 6vh); }
    .dg-tile { border-radius: 6px; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.22rem; }
    .logo-mark, .logo-icon { width: 27px; height: 27px; }
    .logo-mark { margin-right: 0.4rem; }
}

/* Handy: Galerie nur als rundes Symbol, so hoch wie der Umschalter – mit Schrift wurde
   es neben Logo und Umschalter zu eng */
@media (max-width: 600px) {
    .nav-gallery-label { display: none; }
    .nav-gallery { width: 38px; height: 38px; padding: 0; gap: 0; justify-content: center; }
    .nav-ico { width: 18px; height: 18px; }
    .nav-actions.is-day .nav-gallery { width: 0; border-width: 0; }
}
