/* global styling for header, footer and portal*/
/* Grün für Portal-Überschrift */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--gv-body-bg);
    margin: 0;
    color: var(--gv-text-main);
    min-height: 100vh;           /* volle Höhe */
    display: flex;               /* Flexbox für Zentrierung */
    flex-direction: column;      /* vertikale Anordnung */
}
.gv-header {
    background: var(--gv-bg-card);
    border-bottom: 2px solid var(--gv-border-subtle);
    padding: 0.5em 0;
}
.gv-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 1.5em;
}
.logo-img {
    height: 42px;
    margin-right: 1em;
}
.gv-header__contact, .gv-header__user {
    font-size: 0.95em;
}
/* Hauptbereich nimmt den verfügbaren Platz ein */
.gv-main {
    flex: none;                /* nimmt nur die eigene Höhe ein */
    display: block;            /* kein Flexbox mehr */
    width: 100%;
    max-width: 1200px;         /* fluid statt fester Breite */
    box-sizing: border-box;
    margin: 2em auto;          /* zentriert und Abstand oben/unten */
    padding: 3.5em 2em;
    min-height: 550px;
    background: var(--gv-bg-card);
    border-radius: 12px;
    border: 1px solid var(--gv-border-subtle);
    box-shadow: 0 4px 24px rgba(0,0,0,0.11), 0 1px 4px rgba(0,0,0,0.06);
}
/* Portal-Box und Apps zentrieren */
.gv-portal-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gv-portal-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 210px));
    justify-content: center;
    gap: 1.75em;
    margin-top: 0.4em;
    width: 100%;
}

/* App-specific corporate accents (icon, top accent, hover, focus) — existing theme.css tokens only */
.gv-app-card--dns              { --app-accent: var(--gv-blue); }
.gv-app-card--firewall         { --app-accent: var(--gv-pink); }
.gv-app-card--folder-permissions { --app-accent: var(--gv-green-dark); }
.gv-app-card--hardware         { --app-accent: var(--gv-green-light); }
.gv-app-card--software          { --app-accent: var(--gv-blue); }
.gv-app-card--server            { --app-accent: var(--gv-green-dark); }
.gv-app-card--onboarding        { --app-accent: var(--gv-green-light); }
/* Engineering (#299) - deliberately not a business-app color, so it reads as distinct even
   before the separate section heading/divider below is noticed. */
.gv-app-card--engineering       { --app-accent: var(--gv-text-dark); }

.gv-portal-divider {
    width: 100%;
    max-width: 640px;
    margin: 2.2em 0 1.4em;
    border: none;
    border-top: 1px solid var(--gv-border-subtle);
}
.gv-portal-engineering-title {
    color: var(--gv-text-dark);
    margin-bottom: 0.2em;
}
.gv-portal-engineering-apps {
    grid-template-columns: minmax(190px, 210px);
}

.gv-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gv-sand-light);
    border: 1px solid var(--gv-card-border);
    border-top: 4px solid var(--app-accent, var(--gv-card-border));
    border-radius: 12px;
    padding: 2.1em 1.3em 1.7em;
    text-decoration: none;
    color: var(--gv-text-main);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.gv-app-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    border-color: var(--app-accent);
    transform: translateY(-3px);
}
.gv-app-card:focus-visible {
    outline: 3px solid var(--app-accent);
    outline-offset: 3px;
}
.gv-app-icon {
    font-size: 2.6em;
    margin-bottom: 0.8em;
    display: inline-block;
    color: var(--app-accent);
    transition: transform 0.2s ease;
}
.gv-app-card:hover .gv-app-icon {
    transform: scale(1.1);
}
.gv-app-title {
    font-weight: 600;
    font-size: 1.15em;
    color: var(--gv-text-main);
}

@media (max-width: 600px) {
    .gv-header__top {
        padding: 0 1em;
    }
    .gv-main {
        padding: 2em 1em;
        margin: 1em auto;
        min-height: unset;
    }
    .gv-portal-apps {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.2em;
    }
}
.gv-footer {
    background: var(--gv-green-dark);
    color: #d4e8d0;
    font-size: 0.9em;
    margin-top: auto;
    width: 100%;
    padding: 1.4em 0;
}
.gv-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    flex-wrap: wrap;
}
.gv-footer__copy {
    color: #b8d4b4;
}
.gv-footer__sep {
    color: #5a8a6a;
}
.gv-footer__links {
    display: flex;
    gap: 0;
}
.gv-footer a {
    color: var(--gv-green-light);
    text-decoration: none;
    padding: 0 0.6em;
    line-height: 1;
}

.gv-footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Landing Page Styles & title */
.gv-portal-title,
.landing-title {
    color: var(--gv-green-dark);
    font-weight: bold;
}

.landing-title {
    font-size: 2.5rem;
}

.landing-subtitle {
    color: var(--gv-green-light);
    font-weight: 600;
}

.landing-support-label {
    color: var(--gv-pink);
}

.portal-app-prompt {
    color: var(--gv-text-muted);
    font-size: 1.05em;
    font-weight: 400;
    margin-bottom: 2em;
}

/* Logout Button Styling - gleich wie DNS-Button */
.logout-btn {
    background-color: var(--gv-green-light);
    border: 2px solid var(--gv-green-light);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background-color: var(--gv-green-dark);
    color: #fff;
    border-color: var(--gv-green-light);
}

/* Header User Info: einheitliches Styling für An- und Abmelden*/
.gv-header__user {
    font-size: 0.95em;
    color: var(--gv-text-header);
    font-weight: 500;
}

.gv-header__user .user-name {
    color: var(--gv-green-light);
    font-weight: 600;
}

.gv-header__user .divider {
    color: var(--gv-divider);
    margin: 0 8px;
}

/* Einheitliches Styling für beide Links */
.gv-header__user .logout-link,
.gv-header__user .login-link {
    color: var(--gv-green-light);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 4px;
    transition: color 0.2s;
}

.gv-header__user .logout-link:hover,
.gv-header__user .login-link:hover {
    color: var(--gv-green-dark);
    text-decoration: none;
}

/* Links auf Landing Page */
.gv-link {
    color: var(--gv-green-dark);
    text-decoration: underline
}
.gv-link:hover {
    color: var(--gv-green-dark);
    text-decoration: none;
}
