/* assets/css/kundenportal.css */

/* --- Allgemeine Einstellungen & Variablen (Angepasst an Ihr Branding) --- */
:root {
    /* Moor Elektrotechnik Brand Farben basierend auf Ihren Beispielen */
    --moor-blue-dark: #1a2a44; /* Dunkelblau, häufig für Überschriften/Haupttexte */
    --moor-blue-primary: #5F66F2; /* Helles Blau, primärer Akzent */
    --moor-blue-light: #e9eff4; /* Sehr helles Blau, für Hintergründe/Boxen */
    --moor-orange-primary: #FF6B4D; /* Orange, starker Akzent für Buttons/Highlights */
    --moor-purple-accent: #932DFD; /* Lila, für Verläufe/besondere Akzente */
    --moor-pink-accent: #E75AA9; /* Pink, für Verläufe/besondere Akzente */

    /* Neutrale Farben */
    --moor-gray-text: #525252; /* Dunkleres Grau für Fließtexte */
    --moor-gray-light: #f9f9f9; /* Sehr helles Grau für Hintergründe */
    --moor-border-light: #eee; /* Helle Rahmen */
    --white: #ffffff;

    /* Schatten & Rundungen */
    --shadow-soft: rgba(0, 0, 0, 0.08); /* Leichter, weicher Schatten */
    --shadow-medium: rgba(0, 0, 0, 0.12); /* Mittlerer Schatten */
    --shadow-strong: rgba(0, 0, 0, 0.2); /* Starker Schatten für interaktive Elemente */
    --border-radius-primary: 21px 3px 70px 3px; /* Asymmetrische Rundung (FAQ-Container) */
    --border-radius-card: 12px; /* Rundung für Karten/Items (FAQ-Item) */
    --border-radius-button-hero: 50px; /* Runde Buttons (Karriere-Hero-Button) */
    --border-radius-button-accent: 10px 3px 20px 3px; /* Asymmetrische Rundung (FAQ-Kontakt-Button) */


    /* Typografie */
    --font-family-sans-serif: 'Inter', sans-serif; /* Beibehalten, da modern und klar */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Transitionen */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
}

body {
    font-family: var(--font-family-sans-serif);
    color: var(--moor-gray-text); /* Standardtextfarbe von Ihrem Branding */
    background-color: var(--moor-gray-light); /* Heller Hintergrund */
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* --- Header & Navigation (Angepasst) --- */
.app-header {
    background: var(--moor-blue-dark); /* Dunkelblau als Header-Hintergrund */
    box-shadow: 0 4px 15px var(--shadow-medium);
    z-index: 1000;
    position: sticky;
    top: 0;
    width: 100%;
}

.app-header .container {
    padding-top: 1.25rem; /* Etwas mehr vertikaler Abstand */
    padding-bottom: 1.25rem; /* Etwas mehr vertikaler Abstand */
}

.logo-brand {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    display: flex;
    align-items: center;
    transition: color var(--transition-speed-normal) ease;
}

.logo-brand:hover {
    color: var(--moor-orange-primary); /* Akzentfarbe beim Hover */
}

.brand-logo {
    height: 50px;
    width: auto;
}

.portal-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-left: 0.5rem;
    color: var(--white);
}

.main-nav .nav-link {
    color: var(--white);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1rem;
    transition: color var(--transition-speed-normal) ease, background-color var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
    border-radius: 0.5rem; /* Leichte Rundung */
    position: relative;
    overflow: hidden;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--moor-orange-primary); /* Orange beim Hover/Active */
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Unterstrich-Effekt für Navigation */
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--moor-orange-primary); /* Orange Linie */
    transform: translateX(-100%);
    transition: transform var(--transition-speed-normal) ease-out;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: translateX(0);
}

.custom-logout-btn {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-weight: var(--font-weight-semibold);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-button-hero); /* Rund wie die Karriere-Buttons */
    transition: background-color var(--transition-speed-normal) ease, border-color var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
}

.custom-logout-btn:hover {
    background-color: var(--moor-orange-primary); /* Orange beim Hover */
    border-color: var(--moor-orange-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-strong);
}

/* --- Hero Section (Angepasst) --- */
.hero-section {
    background: linear-gradient(135deg, var(--moor-orange-primary) 0%, var(--moor-blue-primary) 100%); /* Verlauf Orange zu Blau */
    color: var(--white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    /* Angepasst an die Rundungen Ihrer Beispieldateien */
    border-bottom-left-radius: 21px; /* Obere linke des FAQ Containers */
    border-bottom-right-radius: 3px; /* Obere rechte des FAQ Containers */
    /* Hier habe ich eine Anpassung vorgenommen, da die asymmetrischen Radien des FAQ-Containers nach unten wirken würden.
       Für einen konsistenten Look mit den "Karriere_hero"-Styles, die abgerundete Ecken haben, aber nicht spezifisch asymmetrisch sind,
       habe ich mich für eine Annäherung entschieden. Alternativ könnten Sie hier auch `border-radius: var(--border-radius-card);` verwenden,
       oder sogar `border-radius: var(--border-radius-button-hero);` für einen sehr runden Look.
       Ich verwende jetzt eine vereinfachte Version Ihrer FAQ-Container-Rundung, die unten schließt.
    */
    border-radius: 0 0 70px 3px; /* Oder passen Sie dies an die "Karriere_hero"-Rundung an, die 8px ist */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Stärkerer Schatten wie im Karriere-Hero */
}

/* Die Bubble-Animationen behalten wir bei, da sie einen schönen visuellen Effekt bieten */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08); /* Leichter */
    border-radius: 50%;
    animation: bubble1 10s infinite linear;
    filter: blur(40px);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08); /* Leichter */
    border-radius: 50%;
    animation: bubble2 12s infinite linear;
    filter: blur(50px);
}

@keyframes bubble1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.08; }
    50% { transform: translate(20px, 30px) scale(1.1); opacity: 0.12; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.08; }
}

@keyframes bubble2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.08; }
    50% { transform: translate(-30px, -20px) scale(1.15); opacity: 0.12; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.08; }
}

.hero-section h1 {
    font-size: 3.5rem; /* Größer wie im Karriere-Hero */
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section p.lead {
    font-size: 1.4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-section .btn {
    background-color: var(--white); /* Weißer Button wie im Karriere-Hero */
    border-color: var(--white);
    color: var(--moor-blue-primary); /* Blauer Text wie im Karriere-Hero */
    font-weight: var(--font-weight-semibold);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-button-hero); /* Rund */
    transition: all var(--transition-speed-normal) ease;
    box-shadow: 0 4px 10px var(--shadow-strong);
}

.hero-section .btn:hover {
    background-color: var(--moor-gray-light); /* Leichter grauer Hintergrund */
    border-color: var(--moor-gray-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-strong);
}

/* --- Content Area & Section Headings (Angepasst) --- */
.content-area {
    flex-grow: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title-custom {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--moor-blue-dark); /* Dunkelblau wie Ihre Überschriften */
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-line-custom {
    width: 80px;
    height: 4px;
    background-color: var(--moor-orange-primary); /* Orange Linie wie in FAQ H1 */
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* --- Feature Cards (Angepasst) --- */
.feature-card {
    background-color: var(--white);
    border: 1px solid var(--moor-border-light); /* Helle Rahmen */
    border-radius: var(--border-radius-card); /* Angepasst an FAQ-Item */
    box-shadow: 0 5px 25px var(--shadow-soft); /* Weicher Schatten */
    transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px); /* Etwas stärkerer Schwebeeffekt */
    box-shadow: 0 15px 40px var(--shadow-medium); /* Prominenter Schatten beim Hover */
}

.feature-card .card-body {
    padding: 2.5rem;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--moor-blue-primary); /* Blau wie in FAQ H1 */
    transition: color var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
    margin-bottom: 1.5rem;
}

.feature-card:hover .feature-icon {
    color: var(--moor-orange-primary); /* Orange beim Hover */
    transform: scale(1.1);
}

.card-title-feature {
    font-size: 1.6rem;
    font-weight: var(--font-weight-bold);
    color: var(--moor-blue-dark); /* Dunkelblau wie Ihre Überschriften */
    margin-bottom: 0.75rem;
}

.feature-card p.card-text {
    font-size: 1rem;
    color: var(--moor-gray-text); /* Standard-Grau für Text */
    opacity: 0.9; /* Leicht weniger transparent */
}

/* --- Footer (Angepasst) --- */
.app-footer {
    background-color: var(--moor-blue-dark); /* Dunkler Footer */
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

.app-footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Responsivität (Bootstrap-Breaks beibehalten, Werte angepasst) --- */
@media (max-width: 991.98px) {
    .main-nav {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .main-nav .nav {
        flex-direction: column;
        align-items: center;
    }

    .main-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .hero-section {
        padding: 5rem 0;
    }

    .hero-section h1 {
        font-size: 2.8rem; /* Anpassung an 2.8em von Survey H1 */
    }

    .hero-section p.lead {
        font-size: 1.2rem;
    }

    .section-title-custom {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .app-header .container {
        flex-direction: column;
    }

    .logo-brand {
        margin-bottom: 1rem;
    }

    .hero-section h1 {
        font-size: 2.2rem; /* Anpassung an 2.2em von FAQ H1 */
    }

    .hero-section p.lead {
        font-size: 1.1rem;
    }

    .hero-section .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .feature-card .card-body {
        padding: 2rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .card-title-feature {
        font-size: 1.4rem;
    }

    .section-title-custom {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) { /* Extra kleine Bildschirme */
    .hero-section h1 {
        font-size: 1.8rem; /* Anpassung an 1.8em von FAQ H1 Mobile */
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .section-title-custom {
        font-size: 1.8rem;
    }
    .feature-card .card-body {
        padding: 1.5rem;
    }
    .feature-icon {
        font-size: 2.8rem;
    }
    .card-title-feature {
        font-size: 1.3rem;
    }
}

/* --- Bootstrap Alert Styling (Anpassung an Brandfarben) --- */
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
    border-radius: var(--border-radius-card); /* Einheitliche Rundung */
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}/* --- Kundenportal Layout & Komponenten (2025) --- */

.portal-body {
    background: linear-gradient(135deg, hsla(231, 84%, 60%, 0.08), hsla(16, 100%, 70%, 0.08)) fixed,
        var(--color-bg, #f5f7fb);
    min-height: 100vh;
    color: var(--color-text, #182034);
}

.portal-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.portal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 1rem);
    padding: 0.9rem clamp(1.25rem, 2vw, 2.5rem);
}

.portal-header__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(17, 24, 39, 0.06);
    cursor: pointer;
    color: var(--color-text, #182034);
    transition: background var(--transition-duration, 250ms) ease;
}

.portal-header__menu svg {
    width: 24px;
    height: 24px;
}

.portal-header__menu:hover,
.portal-header__menu:focus {
    background: rgba(17, 24, 39, 0.12);
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.portal-brand__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.portal-brand__text {
    font-size: 1.05rem;
}

.portal-header__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.portal-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-user__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.portal-user__name {
    font-weight: 600;
}

.portal-user__company {
    font-size: 0.875rem;
    color: var(--color-text-muted, #5c6270);
}

.portal-user__avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5F66F2, #FF6B4D);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 600;
}

.portal-header__logout {
    font-size: 0.95rem;
    color: var(--color-primary, #5F66F2);
    text-decoration: none;
    font-weight: 500;
}

.portal-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    flex: 1;
}

.portal-sidebar {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 72px);
    background: rgba(17, 24, 39, 0.06);
    padding: 1.5rem;
    border-right: 1px solid rgba(17, 24, 39, 0.05);
}

.portal-sidebar__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portal-nav {
    display: grid;
    gap: 0.75rem;
}

.portal-nav__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    color: var(--color-text, #182034);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid transparent;
    transition: all var(--transition-duration, 250ms) var(--transition-timing, ease-in-out);
}

.portal-nav__link:hover {
    border-color: rgba(95, 102, 242, 0.35);
    box-shadow: 0 8px 20px -12px rgba(17, 24, 39, 0.45);
}

.portal-nav__link.is-active {
    background: linear-gradient(140deg, rgba(95, 102, 242, 0.16), rgba(255, 107, 77, 0.12));
    border-color: rgba(95, 102, 242, 0.4);
    color: var(--color-primary, #5F66F2);
}

.portal-nav__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    opacity: 0.8;
}

.portal-sidebar__cta {
    background: linear-gradient(160deg, rgba(95, 102, 242, 0.2), rgba(147, 45, 253, 0.18));
    border-radius: 20px;
    padding: 1px;
}

.portal-sidebar__cta-inner {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
}

.portal-sidebar__cta h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.portal-sidebar__cta p {
    font-size: 0.95rem;
    color: var(--color-text-muted, #5c6270);
}

.portal-main {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.portal-page-intro {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.portal-page-intro__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(17, 24, 39, 0.55);
}

.portal-page-intro__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

.portal-page-intro__description {
    max-width: 60ch;
    color: var(--color-text-muted, #5c6270);
}

.portal-main__content {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3vw, 2.5rem);
}

.portal-hero {
    display: grid;
    gap: clamp(1.5rem, 2.5vw, 3rem);
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    background: linear-gradient(135deg, rgba(95, 102, 242, 0.16), rgba(255, 107, 77, 0.12));
    border-radius: 28px;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(95, 102, 242, 0.18);
    box-shadow: var(--shadow-md, 0 10px 30px -20px rgba(17, 24, 39, 0.45));
}

.portal-hero__primary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-hero__eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(17, 24, 39, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
}

.portal-hero__text {
    font-size: 1.05rem;
    color: rgba(17, 24, 39, 0.7);
    max-width: 60ch;
}

.portal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portal-hero__secondary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 1.25rem;
    border: 1px solid rgba(95, 102, 242, 0.12);
}

.portal-status__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(140deg, #5F66F2, #932DFD);
}

.portal-status__body h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.portal-status__body p {
    margin-top: 0.4rem;
    color: rgba(17, 24, 39, 0.65);
}

.portal-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    padding: 0.9rem 1.1rem;
}

.portal-notice__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #FF6B4D, #E75AA9);
}

.portal-notice__text {
    color: rgba(17, 24, 39, 0.72);
}

.portal-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portal-section--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.portal-section--highlight {
    margin-top: -0.5rem;
}

.portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.portal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 20px 45px -35px rgba(17, 24, 39, 0.45);
}

.portal-card__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
}

.portal-card__title {
    font-size: 1.25rem;
    font-weight: 600;
}

.portal-card__subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted, #5c6270);
}

.portal-card__link {
    font-size: 0.95rem;
    color: var(--color-primary, #5F66F2);
    text-decoration: none;
}

.portal-card--stat {
    position: relative;
    overflow: hidden;
}

.portal-card--stat::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% 30%;
    height: 140px;
    background: radial-gradient(circle at center, rgba(95, 102, 242, 0.35), transparent 65%);
    transform: rotate(12deg);
}

.portal-card--tone-warning {
    border-color: rgba(255, 107, 77, 0.35);
}

.portal-card--tone-success {
    border-color: rgba(82, 196, 60, 0.35);
}

.portal-card--tone-info {
    border-color: rgba(95, 102, 242, 0.35);
}

.portal-card__eyebrow {
    font-size: 0.85rem;
    color: var(--color-text-muted, #5c6270);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.portal-card__value {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

.portal-card__meta {
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.7);
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-button:hover {
    transform: translateY(-1px);
}

.portal-button--primary {
    background: linear-gradient(140deg, #5F66F2, #7B69D0);
    color: white;
    box-shadow: 0 12px 25px -15px rgba(95, 102, 242, 0.8);
}

.portal-button--secondary {
    background: rgba(95, 102, 242, 0.12);
    color: var(--color-primary, #5F66F2);
    border-color: rgba(95, 102, 242, 0.25);
}

.portal-button--ghost {
    background: transparent;
    border-color: rgba(17, 24, 39, 0.12);
    color: var(--color-text, #182034);
}

.portal-list,
.portal-documents,
.portal-steps {
    display: grid;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-list__item,
.portal-documents__item,
.portal-steps__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.portal-list__item:last-child,
.portal-documents__item:last-child,
.portal-steps__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.portal-list__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(95, 102, 242, 0.12);
    color: var(--color-primary, #5F66F2);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.portal-list__meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.portal-list__meta time {
    font-size: 0.85rem;
    color: var(--color-text-muted, #5c6270);
}

.portal-list__cta {
    font-size: 0.9rem;
    color: var(--color-primary, #5F66F2);
    text-decoration: none;
}

.portal-documents__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-text-muted, #5c6270);
}

.portal-steps__item {
    align-items: center;
    position: relative;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.portal-steps__marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(140deg, #FF6B4D, #E75AA9);
    box-shadow: 0 0 0 6px rgba(255, 107, 77, 0.18);
}

.portal-steps__item h3 {
    font-size: 1rem;
    font-weight: 600;
}

.portal-steps__item p,
.portal-steps__item time {
    font-size: 0.85rem;
    color: var(--color-text-muted, #5c6270);
}

.portal-card--highlight {
    background: linear-gradient(150deg, rgba(95, 102, 242, 0.18), rgba(147, 45, 253, 0.12));
    border: none;
    color: rgba(17, 24, 39, 0.9);
}

.portal-quick-access {
    display: grid;
    gap: 0.85rem;
}

.portal-quick-access__item {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-quick-access__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -25px rgba(17, 24, 39, 0.45);
}

.portal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.portal-filters__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: clamp(160px, 22vw, 220px);
}

.portal-filters label {
    font-weight: 600;
    font-size: 0.85rem;
}

.portal-filters input,
.portal-filters select {
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.15);
    font: inherit;
    background: white;
}

.portal-ticket-list {
    display: grid;
    gap: 1.5rem;
}

.portal-ticket {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    display: grid;
    gap: 1.25rem;
}

.portal-ticket__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.portal-ticket__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portal-tag {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(17, 24, 39, 0.08);
    color: rgba(17, 24, 39, 0.85);
}

.portal-tag--hoch {
    background: rgba(255, 107, 77, 0.18);
    color: #d15134;
}

.portal-tag--mittel {
    background: rgba(95, 102, 242, 0.16);
    color: #4b4fc3;
}

.portal-tag--niedrig {
    background: rgba(82, 196, 60, 0.18);
    color: #3b7d26;
}

.portal-ticket__body {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

.portal-ticket__body dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 0;
}

.portal-ticket__body dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(17, 24, 39, 0.55);
}

.portal-ticket__body dd {
    margin: 0.25rem 0 0;
    font-weight: 500;
}

.portal-ticket__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.portal-card--inline {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.portal-card--inline .portal-button {
    white-space: nowrap;
}

.portal-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.portal-document-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: clamp(1.25rem, 2vw, 1.75rem);
}

.portal-document-card__icon {
    width: 44px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(95, 102, 242, 0.2), rgba(255, 107, 77, 0.2));
}

.portal-document-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.portal-document-card__category {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(17, 24, 39, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-document-card__body dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.9rem;
    margin: 0.2rem 0 0;
}

.portal-document-card__body dt {
    font-size: 0.75rem;
    color: rgba(17, 24, 39, 0.55);
    text-transform: uppercase;
}

.portal-document-card__body dd {
    margin: 0.2rem 0 0;
    font-weight: 500;
}

.portal-document-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.portal-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.portal-form__field--full {
    grid-column: 1 / -1;
}

.portal-form__field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.portal-form__field input,
.portal-form__field select,
.portal-form__field textarea,
.portal-form__input,
.portal-form__label + .portal-form__input {
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.15);
    background: white;
    font: inherit;
}

.portal-form__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
}

.portal-login-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(160deg, rgba(95, 102, 242, 0.18), rgba(255, 107, 77, 0.12));
    display: flex;
    align-items: stretch;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.portal-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: min(1100px, 92vw);
    margin: auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 120px -60px rgba(17, 24, 39, 0.45);
}

.portal-login__card {
    padding: clamp(1.75rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-login__brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.portal-login__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.portal-login__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(17, 24, 39, 0.6);
}

.portal-login__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.portal-login__form {
    display: grid;
    gap: 1rem;
}

.ticket-form-card .input-group {
    flex-wrap: nowrap;
    align-items: stretch;
}

.ticket-form-card .input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.ticket-form-card .input-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 44px;
}

.portal-login__form .input-group {
    flex-wrap: nowrap !important;
    align-items: stretch;
}

.portal-login__form .input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.portal-login__form .input-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    flex: 0 0 auto;
    width: auto;
}

.portal-form__label {
    font-weight: 600;
    font-size: 0.9rem;
}

.portal-form__feedback {
    border-radius: 14px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.portal-form__feedback--error {
    background: rgba(255, 107, 77, 0.18);
    color: #b33a1d;
    border: 1px solid rgba(255, 107, 77, 0.35);
}

.portal-login__submit {
    margin-top: 0.5rem;
}

.portal-login__meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.6);
}

.portal-login__aside {
    background: linear-gradient(140deg, rgba(95, 102, 242, 0.8), rgba(147, 45, 253, 0.8));
    color: white;
    padding: clamp(2rem, 5vw, 3.5rem);
    display: flex;
    align-items: flex-end;
}

.portal-login__message {
    display: grid;
    gap: 1rem;
}

.portal-login__message h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

.portal-login__message ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.portal-login__message li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.portal-login__message li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

.portal-form__input {
    width: 100%;
}

.portal-sidebar-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .portal-shell {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 991px) {
    .portal-shell {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: fixed;
        inset: 72px auto 0 0;
        transform: translateX(-100%);
        width: min(280px, 86vw);
        max-height: calc(100vh - 72px);
        z-index: 1100;
        transition: transform 0.3s ease;
        box-shadow: 0 20px 40px -25px rgba(17, 24, 39, 0.45);
    }

    .portal-app[data-sidebar-open='true'] .portal-sidebar {
        transform: translateX(0);
    }

    .portal-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .portal-header__inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .portal-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .portal-main {
        padding: 1.5rem 1.1rem 2rem;
    }

    .portal-card,
    .portal-ticket,
    .portal-document-card {
        border-radius: 18px;
    }

    .portal-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-ticket__body {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-document-card {
        grid-template-columns: 1fr;
    }

    .portal-document-card__actions {
        flex-direction: row;
    }

    .portal-login {
        grid-template-columns: 1fr;
    }

    .portal-login__aside {
        order: -1;
        border-bottom-left-radius: 32px;
        border-bottom-right-radius: 32px;
    }
}

@media (max-width: 575px) {
    .portal-header__menu {
        order: 1;
    }

    .portal-header__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-card--inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-login__card {
        padding: 1.5rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.portal-section__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portal-alert {
    border-radius: 18px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(17, 24, 39, 0.1);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 15px 35px -30px rgba(17, 24, 39, 0.35);
}

.portal-alert--success {
    border-left: 6px solid rgba(82, 196, 60, 0.85);
    background: rgba(231, 250, 232, 0.9);
}

.portal-alert--error {
    border-left: 6px solid rgba(255, 107, 77, 0.85);
    background: rgba(255, 235, 232, 0.92);
}

.portal-ticket-header .portal-card {
    align-items: center;
    gap: 1.5rem;
}

.portal-ticket-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
}

.portal-ticket-meta {
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.65);
}

.portal-ticket-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 0;
}

.portal-ticket-contact dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(17, 24, 39, 0.55);
}

.portal-ticket-contact dd {
    margin: 0.35rem 0 0;
    font-weight: 500;
}

.portal-ticket-form .portal-field-hint {
    font-size: 0.8rem;
    color: rgba(17, 24, 39, 0.5);
}

.portal-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portal-ticket-item {
    border: none;
    background: transparent;
}

.portal-ticket-item summary {
    list-style: none;
    cursor: pointer;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: 1.5rem;
    box-shadow: 0 15px 40px -30px rgba(17, 24, 39, 0.5);
}

.portal-ticket-item[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.portal-ticket-item summary::-webkit-details-marker {
    display: none;
}

.portal-ticket-item__header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.portal-ticket-item__header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.portal-ticket-item__header p {
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.6);
}

.portal-ticket-item__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portal-ticket-item__body {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-top: none;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.portal-ticket-description p {
    white-space: pre-wrap;
}

.portal-ticket-attachment a {
    color: var(--color-primary, #5F66F2);
    font-weight: 500;
}

.portal-ticket-timeline {
    display: grid;
    gap: 1rem;
}

.portal-ticket-updates {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.portal-ticket-update {
    padding-left: 1.5rem;
    position: relative;
}

.portal-ticket-update::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(140deg, #5F66F2, #FF6B4D);
}

.portal-ticket-update__meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(17, 24, 39, 0.6);
}

.portal-ticket-update-form {
    display: grid;
    gap: 1rem;
}

.portal-ticket-update-form .portal-form__actions {
    justify-content: flex-start;
}

.portal-ticket-close-form {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .portal-ticket-item summary {
        padding: 1.1rem;
    }
    .portal-ticket-item__body {
        padding: 1.1rem;
    }
    .portal-ticket-close-form {
        justify-content: flex-start;
    }
}
.portal-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.portal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(17, 24, 39, 0.08);
    color: rgba(17, 24, 39, 0.75);
    border: 1px solid transparent;
    white-space: nowrap;
}

.portal-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.portal-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portal-chip--highlight {
    background: linear-gradient(140deg, rgba(95, 102, 242, 0.2), rgba(147, 45, 253, 0.18));
    color: #3c3f91;
    border-color: rgba(95, 102, 242, 0.3);
}

.portal-chip--muted {
    background: rgba(17, 24, 39, 0.06);
    border-color: rgba(17, 24, 39, 0.08);
}

.portal-chip--theme-info {
    background: rgba(95, 102, 242, 0.12);
    color: #3f48c1;
    border-color: rgba(95, 102, 242, 0.18);
}

.portal-chip--theme-progress {
    background: rgba(123, 105, 208, 0.15);
    color: #4a3f86;
    border-color: rgba(123, 105, 208, 0.22);
}

.portal-chip--theme-warning {
    background: rgba(255, 158, 67, 0.18);
    color: #b26528;
    border-color: rgba(255, 158, 67, 0.25);
}

.portal-chip--theme-success {
    background: rgba(82, 196, 60, 0.18);
    color: #2f7a1d;
    border-color: rgba(82, 196, 60, 0.22);
}

.portal-chip--theme-neutral {
    background: rgba(17, 24, 39, 0.05);
    border-color: rgba(17, 24, 39, 0.08);
}

.portal-chip--priority.portal-chip--priority-niedrig {
    background: rgba(82, 196, 60, 0.16);
    color: #3a7d28;
    border-color: rgba(82, 196, 60, 0.22);
}

.portal-chip--priority.portal-chip--priority-mittel {
    background: rgba(95, 102, 242, 0.16);
    color: #464cb8;
    border-color: rgba(95, 102, 242, 0.22);
}

.portal-chip--priority.portal-chip--priority-hoch {
    background: rgba(255, 158, 67, 0.2);
    color: #b26528;
    border-color: rgba(255, 158, 67, 0.26);
}

.portal-chip--priority.portal-chip--priority-dringend {
    background: rgba(255, 107, 77, 0.2);
    color: #b33a1d;
    border-color: rgba(255, 107, 77, 0.28);
}

.portal-ticket-overview__card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: space-between;
    align-items: flex-start;
}

.portal-ticket-overview__primary {
    max-width: 52ch;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-ticket-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.portal-ticket-insights__group {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 1.25rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 40px -34px rgba(17, 24, 39, 0.55);
}

.portal-ticket-insights__group h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.portal-ticket-compose {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.portal-ticket-compose__aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-ticket-hints {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.7);
}

.portal-ticket-hints li {
    position: relative;
    padding-left: 1.4rem;
}

.portal-ticket-hints li::before {
    content: '-';
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(95, 102, 242, 0.9);
}

.portal-ticket-help {
    display: grid;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.65);
}

.portal-ticket-item summary {
    position: relative;
    padding-right: 3rem;
}

.portal-ticket-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: rgba(17, 24, 39, 0.35);
    transition: transform 0.2s ease, color 0.2s ease;
}

.portal-ticket-item[open] summary::after {
    content: '-';
    color: rgba(95, 102, 242, 0.7);
}

.portal-ticket-item__summary {
    display: grid;
    gap: 1rem;
}

.portal-ticket-item__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portal-ticket-item__title h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.portal-ticket-item__title p {
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.6);
}

.portal-ticket-item__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.6);
}

.portal-ticket-update-form__header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.portal-ticket-update-form__header span {
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.55);
}

@media (max-width: 991px) {
    .portal-ticket-compose {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .portal-ticket-item summary {
        padding-right: 2.5rem;
    }
    .portal-ticket-overview__card {
        gap: 1.25rem;
    }
    .portal-chip-row {
        gap: 0.45rem;
    }
}
.portal-ticket-hero {
    margin-top: -0.5rem;
}

.portal-ticket-hero__card {
    display: grid;
    gap: 1.5rem;
}

.portal-ticket-hero__content h1 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 0.4rem;
}

.portal-ticket-hero__content p {
    color: rgba(17, 24, 39, 0.65);
    max-width: 60ch;
}

.portal-ticket-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: rgba(17, 24, 39, 0.8);
}

.portal-ticket-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portal-ticket-list__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.portal-link-button {
    background: none;
    border: none;
    color: var(--color-primary, #5F66F2);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.portal-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-ticket-item {
    border: none;
    background: transparent;
}

.portal-ticket-item summary {
    position: relative;
    padding: 1.25rem 2.75rem 1.25rem 1.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 14px 32px -28px rgba(17, 24, 39, 0.55);
    list-style: none;
    cursor: pointer;
}

.portal-ticket-item[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.portal-ticket-item summary::-webkit-details-marker {
    display: none;
}

.portal-ticket-item summary::after {
    content: '+';
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: rgba(17, 24, 39, 0.35);
    transition: transform 0.2s ease, color 0.2s ease;
}

.portal-ticket-item[open] summary::after {
    content: '-';
    color: rgba(95, 102, 242, 0.7);
}

.portal-ticket-item__summary {
    display: grid;
    gap: 0.65rem;
}

.portal-ticket-item__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.portal-ticket-item__title h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.portal-ticket-item__title p {
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.6);
}

.portal-ticket-item__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(17, 24, 39, 0.55);
}

.portal-ticket-item__body {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-top: none;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem;
    display: grid;
    gap: 1.25rem;
}

.portal-ticket-timeline {
    display: grid;
    gap: 0.75rem;
}

.portal-ticket-updates {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.portal-ticket-update {
    padding-left: 1.35rem;
    position: relative;
}

.portal-ticket-update::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.4rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5F66F2, #FF6B4D);
}

.portal-ticket-update__meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(17, 24, 39, 0.6);
}

.portal-ticket-update-form__header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portal-ticket-update-form__header span {
    font-size: 0.8rem;
    color: rgba(17, 24, 39, 0.55);
}

.portal-ticket-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.portal-ticket-steps li::marker {
    display: none;
}

.portal-ticket-steps li {
    counter-increment: steps;
    position: relative;
    padding-left: 1.8rem;
}

.portal-ticket-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(95, 102, 242, 0.16);
    color: #4c50b6;
    font-size: 0.8rem;
    font-weight: 600;
}

.portal-ticket-compose {
    margin-top: 1rem;
}

.portal-ticket-compose__primary {
    display: grid;
    gap: 0.75rem;
}

.portal-ticket-hints {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.65);
}

.portal-ticket-hints li {
    position: relative;
    padding-left: 1.4rem;
}

.portal-ticket-hints li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(95, 102, 242, 0.7);
}

.portal-ticket-help {
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.65);
}

@media (max-width: 767px) {
    .portal-ticket-list__heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .portal-ticket-hero__actions {
        width: 100%;
    }
    .portal-ticket-hero__actions .portal-button {
        width: 100%;
        justify-content: center;
    }
    .portal-ticket-item summary {
        padding: 1.1rem 2.5rem 1.1rem 1.2rem;
    }
}
.portal-ticket-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.portal-ticket-filter form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.portal-ticket-filter label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(17, 24, 39, 0.65);
}

.portal-ticket-filter select {
    min-width: 180px;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.15);
    background: white;
    font: inherit;
}

.portal-ticket-filter__count {
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.6);
}

.portal-link-button {
    background: none;
    border: none;
    color: var(--color-primary, #5F66F2);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.portal-link-button:hover,
.portal-link-button:focus {
    text-decoration: underline;
}

.portal-ticket-closed details {
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px -34px rgba(17, 24, 39, 0.55);
    padding: 1.1rem 1.25rem;
}

.portal-ticket-closed summary {
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.portal-ticket-closed summary::-webkit-details-marker {
    display: none;
}

.portal-ticket-closed-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.9rem;
}

.portal-ticket-closed-item {
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.9rem 1.1rem;
    display: grid;
    gap: 0.4rem;
}

.portal-ticket-closed-item__header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portal-ticket-closed-item__header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.portal-ticket-closed-item__meta {
    font-size: 0.8rem;
    color: rgba(17, 24, 39, 0.55);
}

.portal-ticket-closed-item__summary {
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.65);
}

.portal-ticket-closed-item__note {
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.7);
}

.portal-ticket-closed-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(17, 24, 39, 0.55);
}

@media (max-width: 575px) {
    .portal-ticket-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    .portal-ticket-filter__count {
        margin-top: 0.25rem;
    }
    .portal-ticket-closed details {
        padding: 1rem;
    }
}
.portal-ticket-highlights {
    margin-bottom: 1rem;
}

.portal-ticket-highlights__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.portal-ticket-highlights__list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.portal-ticket-highlights__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-ticket-highlights__link {
    font-size: 0.9rem;
}

.portal-ticket-item--highlight summary {
    border-color: rgba(95, 102, 242, 0.38);
    box-shadow: 0 16px 36px -24px rgba(95, 102, 242, 0.55);
}

.portal-ticket-update--highlight {
    border-left: 4px solid rgba(95, 102, 242, 0.45);
    padding-left: 1.6rem;
    background: rgba(95, 102, 242, 0.08);
    border-radius: 12px;
}

.portal-ticket-update--pulse {
    animation: portal-ticket-pulse 2s ease-in-out 1;
}

@keyframes portal-ticket-pulse {
    0% { background-color: rgba(95, 102, 242, 0.2); }
    50% { background-color: rgba(95, 102, 242, 0.05); }
    100% { background-color: rgba(95, 102, 242, 0); }
}
