@font-face {
    font-family: "SloganFont";
    src: url("fonts/slogan.otf") format("opentype");
    font-display: swap;
}

/* RESET */
html, body {
    margin: 0;
    padding: 0;

    /* 🔧 Höhe auf echte Gerätehöhe umgestellt */
    height: calc(var(--vh) * 100);

    font-family: Arial, sans-serif;
    background: #000;
}

/* GRID BASIS */
#cssportal-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: 1fr 400px 1fr;
    width: 100vw;

    /* 🔧 Auch hier echte Gerätehöhe */
    height: calc(var(--vh) * 100);

    transition: grid-template-columns 1.8s ease;
}

/* -------------------------------------- */
/* LINKES BILD                            */
/* -------------------------------------- */

#div1 {
    grid-area: 1 / 1 / 4 / 2;
    position: relative;

    /* 🔧 Auch Panels müssen echte Höhe nutzen */
    height: calc(var(--vh) * 100);
}

#div1::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 2s ease;
    pointer-events: none;
    z-index: 1;
}

#div1.darken::after {
    background: rgba(44,59,77, 0.90);
}

.left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------- */
/* RECHTES BILD                           */
/* -------------------------------------- */

#div3 {
    grid-area: 1 / 3 / 4 / 4;
    position: relative;
    z-index: 4;

    /* 🔧 echte Gerätehöhe */
    height: calc(var(--vh) * 100);
}

#div3::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 2s ease;
    pointer-events: none;
    z-index: 1;
}

#div3.darken::after {
    background: rgba(0,0,0,0.85);
}

.right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------- */
/* MITTLERER BEREICH (400px)              */
/* -------------------------------------- */

#div2 {
    grid-area: 1 / 2 / 4 / 3;
    display: grid;
    grid-template-rows: 400px 1fr 100px;
    justify-items: center;
    align-items: center;
    background: #1B2632;

    position: relative;
    z-index: 5;

    /* 🔧 echte Gerätehöhe */
    height: calc(var(--vh) * 100);
}

/* LOGO */
.logo {
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#logo-link {
    display: inline-block;
}

.logo img {
    width: 70%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* -------------------------------------- */
/* MENÜ                                   */
/* -------------------------------------- */

.main-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    gap: 8px;
    align-self: end;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}

.dot {
    color: #ff7a00;
    font-size: 26px;
}

.menu-item {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.25s ease, transform 0.25s ease;
}

/* Hover */
.menu-item:hover {
    color: #ff7a00;
    transform: scale(1.05);
}

/* ACTIVE STATE */
.menu-item.active {
    color: #ff7a00;
    transform: scale(1.05);
}

.menu-item.active:hover {
    color: #ff7a00;
    transform: scale(1.05);
}

/* -------------------------------------- */
/* ICON-MENÜ                              */
/* -------------------------------------- */

.icon-menu {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.icon-menu img {
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.icon-menu img:hover {
    opacity: 1;
}

/* OPTIONAL: Icon-Active-State */
.icon-menu a.active img {
    filter: brightness(1.4) saturate(1.4);
}

/* -------------------------------------- */
/* SLOGAN                                 */
/* -------------------------------------- */

.slogan {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    text-align: center;

    font-size: 108px;
    color: #fff;
    font-family: "SloganFont", cursive;
    text-shadow: 0 0 12px rgba(0,0,0,0.5);

    opacity: 0;
    white-space: pre-line;
    transition: opacity 1.2s ease;
}

/* -------------------------------------- */
/* CONTENT-BEREICHE                       */
/* -------------------------------------- */

.content-area {
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 40px;
    color: #fff;
    overflow-y: auto;
    display: none;
}

.content-area.visible {
    display: block;
}

/* -------------------------------------- */
/* PHASE 2 – GRID & FADE ANIMATION        */
/* -------------------------------------- */

#cssportal-grid.phase2 {
    grid-template-columns: 3fr 1fr 0fr;
}

#div3.phase2 {
    opacity: 0;
    transition: opacity 1.2s ease;
}

#cssportal-grid.phase2-reverse {
    grid-template-columns: 0fr 1fr 3fr;
}

#div1.phase2 {
    opacity: 0;
    transition: opacity 1.2s ease;
}
