﻿/* ============================================================
   Anmeldeseite - eigenes Layout statt des CIAM-Bildschirms.
   External ID erlaubt kein eigenes HTML auf der Anmeldeseite und
   stellt föderierte Anbieter immer unter das lokale Formular.
   Diese Seite dreht die Reihenfolge um: Firmenkonto zuerst.

   Gestaltung nach den Konventionen des Portals: eckig (kein
   border-radius), Akzent #D4F000, Ticket-Abriss als wiederkehrendes
   Motiv, Poppins für Überschriften, Source Sans 3 im Fließtext.

   Kontraste bewusst kräftiger als im Portal: die Seite wird oft
   auf Handys und in schlecht beleuchteten Bühnenbereichen geöffnet.
   Alle Textfarben erreichen mindestens 4.5:1 auf Weiß.
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    color: #1d1d1d;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    background: #1d1d1d;
}

/* ---------- Bühne ---------- */
.anm-seite {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    overflow: hidden;
    background: linear-gradient(rgba(17, 17, 17, 0.58), rgba(17, 17, 17, 0.66)), url('/Images/BuehnenGrazBackground.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

    /* Diagonale Signatur im Hintergrund - sehr weit zurückgenommen,
       damit sie die Karte nicht optisch stört. */
    .anm-seite::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(circle at top left, rgba(212,240,0,.08), transparent 45%), radial-gradient(circle at bottom right, rgba(255,255,255,.03), transparent 35%);
    }

/* ---------- Karte ---------- */
.anm-karte {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-top: 5px solid #D4F000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    overflow: hidden;
}

    /* leichter "Papier"-Effekt ohne deine klare Form zu zerstören */
    .anm-karte::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0));
        pointer-events: none;
        z-index: 0;
    }

.anm-kopf,
.anm-inhalt,
.anm-fuss {
    position: relative;
    z-index: 1;
}

/* ---------- Kopf mit Ticket-Abriss ---------- */
.anm-kopf {
    padding: 32px 34px 26px 34px;
    text-align: center;
    border-bottom: 1px dashed rgba(0,0,0,.22);
}

.anm-logo {
    height: 40px;
    margin-bottom: 20px;
}

.anm-titel {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.15;
    color: #111;
    letter-spacing: -0.02em;
}

.anm-sub {
    display: inline-block;
    margin: 12px 0 0 0;
    padding: 4px 11px;
    background: #1d1d1d;
    color: #D4F000;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* ---------- Inhalt ---------- */
.anm-inhalt {
    padding: 28px 34px 0 34px;
}

.anm-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anm-block-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3a3a3a;
}

    /* Kurzer Akzentstrich vor der Beschriftung */
    .anm-block-label::before {
        content: "";
        flex: 0 0 16px;
        height: 3px;
        background: #D4F000;
    }

/* ---------- Schaltflächen ---------- */
.anm-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .14s ease, border-color .14s ease, transform .08s ease, box-shadow .14s ease;
}

    .anm-btn:active {
        transform: translateY(1px);
    }

    /* Chevron als Fortsetzungshinweis - wie in den Karten des Portals */
    .anm-btn::after {
        content: "";
        flex: 0 0 9px;
        width: 9px;
        height: 9px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: .7;
        transition: transform .14s ease, opacity .14s ease;
    }

    .anm-btn:hover::after {
        opacity: 1;
        transform: rotate(45deg) translate(2px, -2px);
    }

.anm-btn--primaer {
    background: #D4F000;
    border: 1px solid #9cb800;
    color: #111;
    box-shadow: 0 10px 20px rgba(212, 240, 0, .12);
}

    .anm-btn--primaer:hover {
        background: #c2dd00;
        border-color: #1d1d1d;
        box-shadow: 0 12px 22px rgba(0, 0, 0, .14);
    }

.anm-btn--sekundaer {
    background: #fff;
    border: 1px solid rgba(0,0,0,.28);
    color: #232323;
}

    .anm-btn--sekundaer:hover {
        background: #fbffe4;
        border-color: #1d1d1d;
    }

.anm-btn:focus-visible {
    outline: 3px solid #1d1d1d;
    outline-offset: 3px;
}

/* ---------- Hinweistexte ---------- */
.anm-hinweis {
    font-size: .82rem;
    line-height: 1.5;
    color: #5a5a5a;
}

/* ---------- Trenner ---------- */
.anm-trenner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
}

.anm-trenner-linie {
    flex: 1 1 auto;
    height: 1px;
    background: rgba(0,0,0,.14);
}

.anm-trenner-text {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a8a8a;
}

/* ---------- Fuß ---------- */
.anm-fuss {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 32px;
    padding: 20px 34px 26px 34px;
    background: #f7f7f3;
    border-top: 1px dashed rgba(0,0,0,.18);
    font-size: .78rem;
    line-height: 1.5;
    color: #5a5a5a;
    text-align: center;
}

.anm-fuss-titel {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 3px;
}

.anm-fuss a {
    color: #2f4a00;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(212,240,0,.7);
}

    .anm-fuss a:hover {
        color: #111;
        border-bottom-color: #D4F000;
    }

@media (max-width: 480px) {
    .anm-seite {
        padding: 16px 12px;
        background-attachment: scroll;
        background-position: center top;
    }

    .anm-kopf {
        padding: 26px 22px 22px 22px;
    }

    .anm-inhalt {
        padding: 24px 22px 0 22px;
    }

    .anm-fuss {
        padding: 18px 22px 22px 22px;
    }

    .anm-titel {
        font-size: 1.45rem;
    }

    .anm-btn {
        font-size: .82rem;
        min-height: 56px;
    }
}

@media (max-width: 380px) {
    .anm-kopf,
    .anm-inhalt,
    .anm-fuss {
        padding-left: 18px;
        padding-right: 18px;
    }

    .anm-btn {
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anm-btn,
    .anm-btn::after {
        transition: none;
    }
}
