/* ============================================================
   IRIS - Insolvenz-, Recherche- und Informationssystem
   Portal der Peano GmbH

   Farben direkt aus dem IRIS-Logo entnommen:
     Karmin  #8D2327   (traegt die Marke, auf Weiss > 7:1 Kontrast,
                        darf deshalb auch Text sein)
     Grau    #6E6E6E

   Bewusst nur Hellmodus: beide Markenzeichen tragen Weiss in der
   Zeichnung und verlieren auf dunklem Grund ihre Form.
   ============================================================ */

:root {
    color-scheme: light;

    /* Marke */
    --karmin: #8D2327;
    --karmin-hell: #A82D32;
    --karmin-tief: #6E1B1E;
    --karmin-hauch: #FAF3F3;

    /* Flaechen */
    --canvas: #F4F4F5;
    --flaeche: #FFFFFF;
    --linie: #E4E4E6;
    --linie-stark: #CFCFD2;

    /* Text */
    --text: #1A1A1C;
    --text-leise: #5B5B5F;
    --text-sehr-leise: #8A8A8F;

    --radius: 12px;
    --radius-klein: 7px;

    --schrift: "Segoe UI Variable Display", "Segoe UI", -apple-system,
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

    --heben: 0 1px 2px rgba(26, 26, 28, .05),
             0 8px 24px rgba(26, 26, 28, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: clip;
    background: var(--canvas);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Das IRIS-Auge als stille Signatur der Seite.
   Vollstaendig sichtbar statt angeschnitten, sonst wirkt es wie ein Fehler. */
body::after {
    content: "";
    position: fixed;
    right: 3vw;
    bottom: 84px;
    width: min(38vw, 460px);
    aspect-ratio: 1112 / 651;
    background: url("../img/iris-auge.png") no-repeat center / contain;
    opacity: .06;
    pointer-events: none;
    z-index: 0;
}

body > * { position: relative; z-index: 1; }

:focus-visible {
    outline: 2px solid var(--karmin);
    outline-offset: 3px;
    border-radius: var(--radius-klein);
}

.huelle {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 28px;
}

/* ---------------- Kopfzeile ---------------- */

.kopf {
    background: var(--flaeche);
    border-bottom: 1px solid var(--linie);
    border-top: 3px solid var(--karmin);
}

.kopf__zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.marke {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.marke__auge {
    height: 30px;
    width: auto;
    display: block;
    flex: none;
}

.marke__wort {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--karmin);
    line-height: 1;
}

.marke__trenner {
    width: 1px;
    height: 22px;
    background: var(--linie-stark);
    flex: none;
}

.marke__zusatz {
    font-size: 15px;
    color: var(--text-leise);
    white-space: nowrap;
}

/* ---------------- Benutzerbereich ---------------- */

.nutzer {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.nutzer__name {
    font-size: 14px;
    color: var(--text-leise);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 9px 18px;
    border: 1px solid var(--linie-stark);
    border-radius: var(--radius-klein);
    background: var(--flaeche);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.knopf:hover {
    border-color: var(--karmin);
    color: var(--karmin);
    background: var(--karmin-hauch);
}

.knopf:active { transform: translateY(1px); }

/* Ausgegraut, aber weiterhin lesbar: der Knopf bleibt sichtbar, damit man
   sieht, DASS es diese Seite geben sollte -- sie antwortet nur nicht. */
.knopf--tot {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.knopf--voll {
    background: var(--karmin);
    border-color: var(--karmin);
    color: #FFFFFF;
}

.knopf--voll:hover {
    background: var(--karmin-hell);
    border-color: var(--karmin-hell);
    color: #FFFFFF;
}

/* ---------------- Hauptbereich ---------------- */

.inhalt {
    flex: 1;
    padding-block: 52px 80px;
}

.seitenkopf { margin-bottom: 30px; }

.seitenkopf h1 {
    margin: 0;
    font-size: clamp(27px, 3.2vw, 33px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.seitenkopf__zaehler {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-leise);
}

/* ---------------- Verfahren ---------------- */

.verfahren {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    grid-auto-rows: 1fr;          /* alle Kacheln einer Reihe gleich hoch */
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.verfahren > li { display: flex; }

.verfahren__karte {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 22px 24px 20px 26px;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

/* Karminstreifen, faehrt beim Zeigen aus */
.verfahren__karte::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: var(--karmin);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.verfahren__karte:hover {
    border-color: var(--linie-stark);
    box-shadow: var(--heben);
    transform: translateY(-2px);
}

.verfahren__karte:hover::before { transform: scaleY(1); }
.verfahren__karte:active { transform: translateY(0); }

.verfahren__text { min-width: 0; }

/* Aktenzeichen: der Anker beim Ueberfliegen vieler Verfahren */
.verfahren__zeichen {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .07em;
    color: var(--karmin);
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.verfahren__name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.008em;
    word-break: break-word;
}

/* Fusszeile der Kachel: sagt, was der Klick bewirkt */
.verfahren__oeffnen {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-sehr-leise);
    transition: color .16s ease;
}

.verfahren__karte:hover .verfahren__oeffnen { color: var(--karmin); }

.verfahren__winkel {
    flex: none;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .16s ease;
}

.verfahren__karte:hover .verfahren__winkel {
    transform: rotate(-45deg) translate(2px, 2px);
}

/* ---------------- Leerzustand ---------------- */

.leer {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 64px 32px;
    text-align: center;
}

.leer__auge {
    width: 96px;
    height: auto;
    opacity: .3;
    margin-bottom: 24px;
}

.leer__titel {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.leer__text {
    margin: 0 auto;
    max-width: 48ch;
    color: var(--text-leise);
    font-size: 15px;
}

/* ---------------- Meldungsseite ---------------- */

.meldung {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-left: 4px solid var(--karmin);
    border-radius: var(--radius);
    padding: 40px 38px;
    max-width: 640px;
}

.meldung h1 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.meldung p {
    margin: 0 0 26px;
    color: var(--text-leise);
    max-width: 60ch;
}

.meldung p:last-of-type { margin-bottom: 0; }

/* ---------------- Fusszeile ---------------- */

.fuss {
    border-top: 1px solid var(--linie);
    background: var(--flaeche);
    padding-block: 22px;
}

.fuss__zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    color: var(--text-sehr-leise);
}

.fuss__hersteller {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fuss__peano {
    height: 15px;
    width: auto;
    display: block;
    opacity: .75;
}

/* ---------------- Klein ---------------- */

@media (max-width: 680px) {
    .huelle { padding-inline: 18px; }
    .kopf__zeile { height: 60px; gap: 12px; }
    .marke__trenner, .marke__zusatz { display: none; }
    .nutzer__name { display: none; }
    .inhalt { padding-block: 34px 56px; }
    .verfahren { grid-template-columns: 1fr; }
    body::after { width: 70vw; right: 2vw; bottom: 120px; opacity: .05; }
    .fuss__zeile { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    .verfahren__karte:hover { transform: none; }
}

/* ---------------- Landeseite vor der Anmeldung ---------------- */

.willkommen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: clamp(48px, 12vh, 110px) 40px;
}

.willkommen__auge {
    width: clamp(140px, 26vw, 220px);
    height: auto;
    margin-bottom: 30px;
}

.willkommen__titel {
    margin: 0 0 10px;
    font-size: clamp(38px, 7vw, 54px);
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1;
    color: var(--karmin);
}

.willkommen__satz {
    margin: 0 0 38px;
    max-width: 40ch;
    font-size: 17px;
    color: var(--text-leise);
}

.knopf--gross {
    padding: 13px 26px;
    font-size: 15.5px;
}

/* ---------------- Vorstellung auf der Landeseite ---------------- */

.vorstellung {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 56px;
    border-top: 1px solid var(--linie);
}

.vorstellung__titel {
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 27px);
    font-weight: 600;
    letter-spacing: -.015em;
    text-align: center;
}

.vorstellung__text {
    margin: 0 auto 16px;
    max-width: 62ch;
    text-align: center;
    color: var(--text-leise);
    font-size: 16px;
}

.vorteile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2px;
    list-style: none;
    margin: 38px 0 0;
    padding: 0;
    background: var(--linie);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    overflow: hidden;
}

.vorteile li {
    background: var(--flaeche);
    padding: 20px 22px;
}

.vorteile b {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.vorteile span {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-leise);
}

.zugang {
    margin-top: 34px;
    padding: 24px 26px;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-left: 4px solid var(--karmin);
    border-radius: var(--radius);
}

.zugang__titel {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.zugang__text {
    margin: 0;
    color: var(--text-leise);
    font-size: 15.5px;
    max-width: 62ch;
}

@media (max-width: 680px) {
    .willkommen { padding-block: 40px 32px; }
    .vorstellung { padding-top: 42px; }
}

/* Herstellerhinweis in der Fusszeile ist verlinkt */
a.fuss__hersteller {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}

a.fuss__hersteller:hover { color: var(--karmin); }

.zugang__text a { color: var(--karmin); }
