/* ========================================
   KAMERAKLICKS PORTAL-STARTSEITE
   Reine Auswahlseite zwischen den 4 Bereichen -
   passt komplett in den sichtbaren Bereich, kein Scrollen.
   ======================================== */

html {
    height: 100%;
}

body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1;
    min-height: 0;
    display: flex;
}

/* ========================================
   PORTAL GRID - 2x2 Schachbrett
   ======================================== */

.kk-portal {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
}

.kk-portal__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    width: 100%;
    background-color: #000;
}

.kk-portal__quad {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    cursor: pointer;
    z-index: 1;
    transition: filter 0.5s ease, transform 0.5s ease;
    filter: brightness(1) saturate(1) blur(0);
}

/* Sobald irgendeine Kachel im Grid gehovert wird, dimmen/verschwimmen
   alle ANDEREN Kacheln - die gehoverte selbst bleibt scharf & farbig. */
.kk-portal__grid:hover .kk-portal__quad:not(:hover) {
    filter: brightness(0.35) saturate(0.4) blur(3px);
}

.kk-portal__quad:hover {
    z-index: 5;
}

.kk-portal__image {
    position: absolute;
    inset: 0;
    display: block;
}

.kk-portal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.kk-portal__quad:hover .kk-portal__image img {
    transform: scale(1.06);
}

/* Platzhalter für Kategorien ohne eigenes Foto - bewusst kein
   Roh-Alt-Tag-Bleedthrough wie beim leeren render_image(), sondern ein
   gestaltetes "Bald verfügbar"-Label, weil diese Kacheln dauerhaft so
   bleiben, bis die jeweilige Kategorie live geht. */
.kk-portal__soon {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: #a855f7;
}

.kk-portal__soon-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Vignette statt Verlauf von unten - Text sitzt jetzt mittig, daher muss
   die Abdunklung ebenfalls von der Mitte der Kachel ausgehen. */
.kk-portal__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Inhalt sitzt von Anfang an mittig in der Kachel (statt unten) - dadurch
   bleibt automatisch reichlich Abstand zum Logo in der Bildschirmmitte,
   auch wenn beim Hover zusätzlicher Text erscheint. */
.kk-portal__content {
    position: absolute;
    inset: 0;
    padding: clamp(20px, 4vh, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    z-index: 2;
}

.kk-portal__title {
    font-size: clamp(1.5rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.kk-portal__subtitle {
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    color: rgba(255, 255, 255, 0.75);
}

.kk-portal__info {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    /* margin-top bewusst nicht mit-animiert (Layout-Thrash) - der Abstand
       kommt stattdessen aus einem statischen margin-top auf dem Kind,
       das ohnehin auf 0 Höhe geclippt ist, solange die Zeile geschlossen ist. */
    transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
}

.kk-portal__info > * {
    overflow: hidden;
}

.kk-portal__quad:hover .kk-portal__info,
.kk-portal__quad:focus-visible .kk-portal__info {
    grid-template-rows: 1fr;
    opacity: 1;
}

.kk-portal__description {
    margin-top: 8px;
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 42ch;
}

.kk-portal__cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.kk-portal__quad:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: -3px;
}

/* ========================================
   LOGO - mittig zwischen den 4 Bereichen
   ======================================== */

.kk-portal__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(120px, 16vw, 200px);
    height: clamp(120px, 16vw, 200px);
    border-radius: 50%;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.6);
}

.kk-portal__logo-icon {
    display: block;
    width: 60%;
    color: #ffffff;
}

.kk-portal__logo-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.kk-portal__logo-icon svg path,
.kk-portal__logo-icon svg polygon {
    fill: currentColor;
}

/* ========================================
   SCHLANKE FUSSZEILE - nur rechtliche Pflichtlinks
   ======================================== */

.footer {
    flex-shrink: 0;
    padding: 8px var(--spacing-lg);
    margin-top: 0;
    border-top: 1px solid var(--color-border);
}

.footer__container {
    max-width: none;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    gap: 0;
}

.footer__section--brand,
.footer__section--categories,
.footer__section--contact {
    display: none;
}

.footer__section--legal {
    padding-bottom: 0;
}

.footer__section--legal .footer__heading {
    display: none;
}

.footer__section--legal .footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__section--legal .footer__links li {
    margin-bottom: 0;
}

.footer__section--legal .footer__links a {
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
}

.footer__bottom {
    border-top: none;
    padding-top: 4px;
    text-align: center;
}

.footer__copyright {
    font-size: 0.72rem;
    margin-bottom: 0;
    color: var(--color-text-tertiary);
}

.footer__text-small {
    display: none;
}

/* ========================================
   RESPONSIVE - 2x2 bleibt auch auf Mobil erhalten
   ======================================== */

@media (max-width: 640px) {
    .kk-portal__content {
        padding: 14px;
        gap: 3px;
    }

    .kk-portal__title {
        font-size: clamp(1rem, 5vw, 1.4rem);
    }

    .kk-portal__subtitle {
        font-size: 0.7rem;
    }

    .kk-portal__description,
    .kk-portal__cta {
        font-size: 0.72rem;
    }

    .kk-portal__logo {
        width: 84px;
        height: 84px;
    }

    .footer__section--legal .footer__links {
        gap: 10px;
    }

    .footer__section--legal .footer__links a {
        font-size: 0.68rem;
    }
}
