/* ==========================================================================
   ines2026.css -- INES im Erscheinungsbild von www.integral.co.at
   Entwurf 17.09.2026

   Farben aus dem integral-Logo (logo-intergral@2x.png) und styles.css von
   integral.co.at. Schriften selbst gehostet (keine Google-/Adobe-Anbindung):
     Jost        -- freier Nachbau der Futura, steht fuer futura-pt (Fliesstext)
     EB Garamond -- dieselbe Schrift wie auf integral.co.at (Ueberschriften)
   Beide SIL Open Font License, Lizenztexte in css/fonts/.
   ========================================================================== */

@font-face {
    font-family: "Jost";
    src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}
@font-face {
    font-family: "EB Garamond";
    src: url("fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --blau:        #0ea6e0;   /* integral-Blau (Logo) -- nur Flaechen, grosse Zahlen */
    --blau-text:   #0174a4;   /* Links/Text in Blau, Kontrast 5,3:1 auf Weiss */
    --rot:         #e9473d;   /* integral-Rot (Logo-Punkte) -- Aktion, Akzent */
    --rot-dunkel:  #c8352c;   /* Hover */
    --schwarz:     #111418;
    --text:        #23282f;
    --grau:        #6b7280;
    --linie:       #e6e6e6;
    --flaeche:     #f7f7f7;
    --weiss:       #ffffff;
    --gruen:       #2f9e5b;
    --schatten:    0 1px 2px rgba(35,40,47,.08), 0 4px 16px rgba(35,40,47,.08);
    --radius:      6px;
    --serif:       "EB Garamond", Georgia, serif;
    --sans:        "Jost", "Futura", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: var(--flaeche);
}

a { color: var(--blau-text); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--schwarz); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-family: var(--sans); font-size: 19px; font-weight: 500; }

.klein { font-size: 15px; color: var(--grau); }

/* --- Seitenrahmen --------------------------------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.topbar { background: var(--flaeche); font-size: 14px; color: var(--grau); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { color: var(--text); }

.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.kopf .logo img { height: 46px; width: auto; display: block; }
.kopf .nutzer { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.kopf .nutzer .name { color: var(--grau); }

/* Navigation: Unterstrich in Rot wie der Slider auf integral.co.at */
.nav { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.nav ul { list-style: none; margin: 0 -12px; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
    display: block; padding: 14px 12px 12px; white-space: nowrap;
    color: var(--schwarz); font-size: 15.5px; font-weight: 500; letter-spacing: .01em;
    border-bottom: 3px solid transparent;
}
.nav a:hover { text-decoration: none; border-bottom-color: var(--linie); }
.nav a[aria-current="page"] { border-bottom-color: var(--rot); }

main { padding: 40px 0 64px; }

.fuss { background: var(--weiss); border-top: 1px solid var(--linie); padding: 28px 0; font-size: 14px; color: var(--grau); }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.fuss a { color: var(--grau); }
.fuss img { height: 22px; vertical-align: middle; }

/* --- Bausteine ------------------------------------------------------------ */
.karte { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 28px; }

.raster { display: grid; gap: 24px; }
.raster-3 { grid-template-columns: repeat(3, 1fr); }
.raster-2-1 { grid-template-columns: 2fr 1fr; }

.kennzahl .wert { font-size: 44px; font-weight: 500; line-height: 1.1; color: var(--schwarz); font-variant-numeric: tabular-nums; }
.kennzahl .wert.blau { color: var(--blau); }
.kennzahl .label { font-size: 15px; color: var(--grau); margin-top: 4px; }

.fortschritt { height: 8px; background: var(--linie); border-radius: 4px; overflow: hidden; margin: 14px 0 8px; }
.fortschritt span { display: block; height: 100%; background: var(--blau); border-radius: 4px; }

/* Buttons: Pillenform wie "Mehr dazu" auf integral.co.at */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 500 16px/1 var(--sans); letter-spacing: .02em;
    padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--rot);
    background: var(--rot); color: var(--weiss); cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); text-decoration: none; }
.btn-rand { background: transparent; color: var(--rot); }
.btn-rand:hover { background: var(--rot); color: var(--weiss); }
.btn-klein { padding: 9px 18px; font-size: 15px; }
.btn[disabled], .btn.aus { background: var(--linie); border-color: var(--linie); color: var(--grau); cursor: not-allowed; }
.btn-voll { width: 100%; }

/* Formulare */
.feld { margin-bottom: 18px; }
.feld label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.feld input {
    width: 100%; font: 400 17px var(--sans); color: var(--text);
    padding: 12px 14px; border: 1.5px solid #cfd3d8; border-radius: var(--radius); background: var(--weiss);
}
.feld input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(14,166,224,.2); }

.hinweis { padding: 12px 16px; border-radius: var(--radius); font-size: 15px; margin-bottom: 18px; }
.hinweis-fehler { background: #fdecea; color: #a3261e; border-left: 4px solid var(--rot); }
.hinweis-ok { background: #e8f5ee; color: #1e6b3d; border-left: 4px solid var(--gruen); }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.tabelle th { text-align: left; font-weight: 500; font-size: 14px; color: var(--grau); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 2px solid var(--linie); }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--linie); }
.tabelle .zahl { text-align: right; }
.tabelle .plus { color: var(--gruen); }
.tabelle .minus { color: var(--text); }

.marke { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--flaeche); color: var(--grau); }

.liste-links { list-style: none; margin: 0; padding: 0; }
.liste-links li { border-bottom: 1px solid var(--linie); }
.liste-links li:last-child { border-bottom: 0; }
.liste-links a { display: flex; justify-content: space-between; padding: 12px 0; color: var(--text); }
.liste-links a::after { content: "\203A"; color: var(--rot); font-size: 22px; line-height: 1; }
.liste-links a:hover { text-decoration: none; color: var(--blau-text); }

/* Login-Seite */
.login { min-height: calc(100vh - 36px - 89px - 80px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding: 56px 0; }
.login .einleitung p { font-size: 19px; color: var(--grau); max-width: 30em; }
.login .punkte-deko { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.login .punkte-deko i { width: 14px; height: 14px; border-radius: 50%; background: var(--rot); display: block; }

/* --- Seiten-Bausteine (echte Seiten, ab 17.09.2026) ------------------------ */
.kopf .integral-logo img { height: 30px; width: auto; display: block; }

.seitenkopf { margin-bottom: 28px; }
.seitenkopf h1 { margin-bottom: 8px; }
.seitenkopf p { margin: 0; color: var(--grau); max-width: 46em; }

.abschnitt { margin-top: 24px; }
.karte > h2:first-child, .karte > h3:first-child { margin-top: 0; }
.karte p:last-child { margin-bottom: 0; }

.feld select, .feld textarea {
    width: 100%; font: 400 17px var(--sans); color: var(--text);
    padding: 12px 14px; border: 1.5px solid #cfd3d8; border-radius: var(--radius); background: var(--weiss);
}
.feld select:focus, .feld textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(14,166,224,.2); }
.feld input[readonly], .feld input:disabled, .feld select:disabled { background: var(--flaeche); color: var(--grau); }
.feld .hilfe { font-size: 14px; color: var(--grau); margin-top: 4px; }
.feld-wert { padding: 12px 0; }

.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.formular .ganz { grid-column: 1 / -1; }
.formular-titel { grid-column: 1 / -1; font: 500 14px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--grau); margin: 8px 0 14px; padding-top: 14px; border-top: 1px solid var(--linie); }
.formular-titel:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.formular-aktion { grid-column: 1 / -1; margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.haken { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0 0 16px; font-size: 16px; }
.haken input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rot); }

.optionen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.option { display: flex; flex-direction: column; }
.option h3 { margin-bottom: 6px; }
.option .schwelle { font-size: 14px; color: var(--grau); margin-bottom: 18px; flex: 1; }
.option.gesperrt h3 { color: var(--grau); }

.btn-reihe { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabelle a { font-weight: 500; }
.tabelle td.aktion { text-align: right; white-space: nowrap; }
.tabelle tfoot td { font-weight: 500; border-bottom: 0; }
.tabelle-kompakt { font-size: 15px; }
.tabelle-kompakt td, .tabelle-kompakt th { padding: 8px 10px; }
.leer { color: var(--grau); padding: 18px 0; }

.hinweis-info { background: #e7f5fc; color: #0b5474; border-left: 4px solid var(--blau); }

.summe { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 18px; font-size: 16px; }
.summe strong { font-weight: 500; }

/* Lange Texte (Regelwerk, FAQ, Datenschutz) */
.text { max-width: 52em; }
.text h2 { margin-top: 1.6em; }
.text h3 { margin-top: 1.2em; margin-bottom: .3em; }
.text ul { padding-left: 1.3em; margin: .4em 0 1em; }
.text li { margin: .25em 0; }
.text li::marker { color: var(--rot); }
.text ul ul li::marker { color: var(--grau); }

.logos { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 12px; }
.logos img { height: 44px; width: auto; }

.inhalt-zentriert { max-width: 560px; margin: 24px auto; }

/* --- Mobil ---------------------------------------------------------------- */
@media (max-width: 860px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .topbar { display: none; }
    .kopf .wrap { min-height: 64px; }
    .kopf .logo img { height: 34px; }
    .kopf .nutzer .name { display: none; }
    main { padding: 24px 0 40px; }
    .raster-2-1 { grid-template-columns: 1fr; }
    .raster-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .raster-3 > :first-child { grid-column: 1 / -1; }
    .raster-3 .kennzahl:not(:first-child) .wert { font-size: 28px; }
    .nav ul { margin: 0 -4px; }
    .karte { padding: 20px; }
    .kennzahl .wert { font-size: 36px; }
    .login { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; min-height: 0; }
    .login .punkte-deko { display: none; }
    .tabelle .opt { display: none; }
    .kopf .integral-logo img { height: 24px; }
    .formular { grid-template-columns: 1fr; }
    .optionen { grid-template-columns: 1fr; gap: 12px; }
    .btn-reihe .btn { flex: 1 1 auto; }
    .logos img { height: 34px; }
}
