:root {
    --zinc: #E4E6E2;
    /* Seitengrund */
    --zinc-dark: #D6D9D3;
    /* Kopfbereich, eine Spur dunkler */
    --plate: #F6F7F4;
    --ink: #191C19;
    --ink-2: #5A605A;
    --rule: #C0C5BD;
    --rule-2: #DDE0DA;
    /* Akzente aus dem Logo */
    --violett: #5B3BE8;
    --magenta: #E0357F;
    --amber: #FF7A3C;
    --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    --sans: "IBM Plex Sans Condensed", "Helvetica Neue", Arial, sans-serif;
    --rand: clamp(20px, 5vw, 40px);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden
}

body {
    background: var(--zinc);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--rand)
}

/* ---------- Kopfleiste ---------- */
.bar {
    background: var(--zinc-dark)
}

.meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-2)
}

.logo {
    height: 52px;
    width: auto;
    display: block;
    color: var(--ink)
}

.owwm {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 62px;
    letter-spacing: -1.4px
}

@media(max-width:640px) {
    .logo {
        height: 44px
    }
}

/* ---------- Header ---------- */
header {
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
    background: var(--zinc-dark)
}

.head-inner {
    position: relative;
    z-index: 2;
    padding-top: 58px
}

h1 {
    font-size: clamp(36px, 6.6vw, 84px);
    line-height: .99;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
    text-transform: uppercase;
    max-width: 14ch
}

h1 em {
    font-style: normal;
    color: var(--violett)
}

.lede {
    margin: 22px 0 0;
    max-width: 52ch;
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--ink-2)
}

/* Legende statt fester Kennzahlen - die haengen von den Parametern ab */
.legende {
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none
}

.legende li {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 15px;
    color: var(--ink-2)
}

.legende b {
    color: var(--ink);
    font-weight: 600
}

.punkt {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: 0 0 auto;
    transform: translateY(1px)
}

.p1 {
    background: var(--violett)
}

.p2 {
    background: var(--magenta)
}

.p3 {
    background: var(--amber)
}

.stage {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    height: clamp(190px, 26vw, 300px)
}

.stage svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(1180px, 100%);
    height: auto
}

/* ---------- Textabschnitte ---------- */
section {
    padding-top: 60px;
    padding-bottom: 60px
}

.grid2 {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)
}

@media(max-width:820px) {
    .grid2 {
        grid-template-columns: 1fr;
        gap: 28px
    }
}

h2 {
    font-size: clamp(21px, 2.5vw, 29px);
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -.01em
}

p {
    margin: 0 0 16px;
    font-size: 17px;
    max-width: 58ch
}

p:last-child {
    margin-bottom: 0
}

.pull {
    border-left: 3px solid var(--violett);
    padding: 4px 0 4px 18px;
    color: var(--ink);
    font-size: 17px
}

.tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--violett);
    margin: 0 0 10px
}

/* ---------- Rechner ---------- */
.rechner {
    border-top: 2px solid var(--ink);
    background: var(--plate)
}

body>section {
    background: var(--zinc)
}

body>section.rechner {
    background: var(--plate)
}

.reiter {
    display: flex;
    gap: 2px;
    margin: 0 0 -1px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap
}

.reiter {
    border-bottom: 1px solid var(--rule)
}

.reiter button {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 2px;
    margin-right: 26px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--ink-2);
    cursor: pointer
}

.reiter button[aria-selected="true"] {
    color: var(--ink);
    font-weight: 500;
    border-bottom-color: var(--violett)
}

.reiter button[disabled] {
    opacity: .4;
    cursor: not-allowed
}

/* Kein Rahmen um den Inhalt - die Reiter deuten die Ebene oben an, mehr
     braucht es nicht. */
.tafel {
    padding-top: 26px
}

.rgrid {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr)
}

.rgrid>div {
    min-width: 0
}

.gruppe {
    min-width: 0;
    overflow-wrap: anywhere
}

@media(max-width:900px) {
    .rgrid {
        grid-template-columns: 1fr
    }
}

label.feld {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px
}

textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: .06em;
    line-height: 1.6;
    padding: 12px;
    border: 1px solid var(--rule);
    background: #fff;
    color: var(--ink)
}

textarea:focus {
    outline: 2px solid var(--violett);
    outline-offset: 1px;
    border-color: var(--violett)
}

.hinweis {
    font-size: 13px;
    color: var(--ink-2);
    margin: 8px 0 0
}

.status {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 14px;
    border-left: 3px solid var(--violett);
    background: #EEEBFB
}

.status.bad {
    border-left-color: var(--magenta);
    background: #FBEBF2
}

svg.ring {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 16px
}

.ch {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    fill: var(--ink-2)
}

.ch.on {
    fill: #fff
}

.chbg {
    fill: transparent
}

.chbg.on {
    fill: var(--violett)
}

.gruppe {
    margin-bottom: 20px
}

.gruppe h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ink)
}

table {
    width: 100%;
    border-collapse: collapse
}

tr {
    border-bottom: 1px solid var(--rule-2)
}

tr.hot {
    background: #EEEBFB
}

td {
    padding: 6px 4px;
    vertical-align: baseline
}

td.k {
    font-size: 14px
}

td.v {
    font-family: var(--mono);
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
    font-weight: 500
}

@media(max-width:560px) {
    td.v {
        white-space: normal
    }

    td.raw {
        display: none
    }
}

td.raw {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--amber);
    text-align: right;
    width: 5.5em;
    letter-spacing: .08em
}

.abgeleitet td.v {
    color: var(--violett)
}

.warnung td.v {
    color: var(--magenta)
}

/* ---------- Nachbauen ---------- */
.nachbau {
    border-top: 1px solid var(--rule);
    padding-top: 56px;
    padding-bottom: 56px
}

.nb-kopf {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: end
}

@media(max-width:760px) {
    .nb-kopf {
        grid-template-columns: 1fr;
        align-items: start
    }
}

.knopf {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: var(--zinc);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 13px 22px;
    border: 0;
    white-space: nowrap
}

/* Der Verlauf liegt als eigene Ebene darunter und wird eingeblendet.
     Ein Wechsel der Hintergrundfarbe auf einen Verlauf laesst sich nicht
     weich ueberblenden - die Deckkraft einer zweiten Ebene schon. */
.knopf::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .28s ease;
    background: linear-gradient(100deg, #3B2CD9, #7A3BE0 28%, #E0357F 58%, #FF7A3C 82%, #FFC24B)
}

.knopf:hover::before,
.knopf:focus-visible::before {
    opacity: 1
}

.knopf>* {
    position: relative;
    z-index: 1
}

.knopf svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto
}

.fakten {
    display: grid;
    gap: 24px 26px;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    margin: 34px 0 0;
    border-top: 1px solid var(--rule);
    padding-top: 26px
}

.fakt {
    display: flex;
    gap: 14px;
    min-width: 0
}

/* Auf Hoehe der grossen Zahl statt der kleinen Bezeichnung darueber -
     sonst haengt das Icon oben in der Luft. */
.fakt>svg {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    color: var(--violett);
    margin-top: 15px
}

.fakt dt {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 3px
}

.fakt dd {
    margin: 0;
    font-size: 16px
}

.fakt dd b {
    font-size: 22px;
    font-weight: 700;
    display: block;
    line-height: 1.2
}

.fakt .zusatz {
    font-size: 14px;
    color: var(--ink-2);
    display: block;
    margin-top: 2px
}

/* ---------- Fusszeile ---------- */
.fuss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap
}

.fuss a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase
}

.fuss a:hover {
    color: var(--violett)
}

.fuss a svg {
    width: 22px;
    height: 22px
}

/* ---------- Lizenzen ---------- */
.lizenzen {
    border-top: 1px solid var(--rule);
    padding-top: 56px;
    padding-bottom: 56px
}

.lgrid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 26px 0 0
}

@media(max-width:860px) {
    .lgrid {
        grid-template-columns: 1fr
    }
}

.karte {
    border-top: 2px solid currentColor;
    padding-top: 18px;
    min-width: 0
}

.k1 {
    color: var(--violett)
}

.k2 {
    color: var(--magenta)
}

.k3 {
    color: var(--amber)
}

.karte svg {
    width: 42px;
    height: 42px;
    display: block;
    margin-bottom: 14px
}

.karte .fuer {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 4px
}

.karte h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink)
}

.karte h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 1px
}

.karte h3 a:hover {
    color: inherit;
    border-bottom-color: transparent
}

.karte dl {
    margin: 0;
    color: var(--ink)
}

.karte dt {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 0 0 3px
}

.karte dd {
    margin: 0 0 14px;
    font-size: 15px;
    max-width: none
}

.karte dd:last-child {
    margin-bottom: 0
}

.nenner {
    margin: 34px 0 0;
    border-left: 3px solid var(--violett);
    padding: 6px 0 6px 18px;
    font-size: 17px;
    max-width: 70ch
}

/* ---------- Ueber mich ---------- */
.about {
    border-top: 1px solid var(--rule);
    padding-top: 56px;
    padding-bottom: 56px
}

.a-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    margin-top: 24px
}

@media(max-width:620px) {
    .a-grid {
        grid-template-columns: 1fr
    }
}

/* Platzhalter fuer das Portraet - hier spaeter ein <img> einsetzen */
.portrait {
    width: 150px;
    height: 150px;
    border: 1px dashed var(--rule);
    background: var(--zinc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2)
}

.portrait svg {
    width: 56px;
    height: 56px
}

.a-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0
}

.a-beruf {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 6px 0 16px
}

.a-mail {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 2px solid var(--violett);
    padding-bottom: 2px
}

.a-mail svg {
    width: 19px;
    height: 19px;
    color: var(--violett)
}

.a-mail:hover {
    border-bottom-color: transparent
}


/* ---------- Foerderer ---------- */
.foerderung {
    border-top: 1px solid var(--rule);
    padding-top: 34px;
    padding-bottom: 44px
}

.foerderung h3 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-2);
    font-weight: 400;
    margin: 0 0 22px
}

.logos {
    display: flex;
    align-items: center;
    gap: clamp(26px, 5vw, 56px);
    flex-wrap: wrap;
    width: 100%
}

.logos img,
.logos svg {
    display: block;
    width: auto;
    max-width: 100%
}

/* Das Fab-City-Logo bringt seinen Schutzraum im Format 2:1 mit und wird
   deshalb hoeher gesetzt, damit der Schriftzug optisch mithaelt. Die
   Hoehen sind auf gleiche WIRKUNG abgestimmt, nicht auf gleiche Zahlen -
   die vier Marken sind verschieden aufgebaut. */
.logo-fchh {
    height: 60px
}

.logo-attraktor {
    height: 62px
}

.logos img.maker {
    height: 58px
}

.logo-oseg {
    height: 64px
}

.logo-attraktor {
    height: 100px
}

.logo-link {
    display: block;
    line-height: 0
}

/* Alle Marken stehen links und in fester Reihenfolge, ohne Ausrichtung
   nach rechts - beim Umbruch bleibt die Reihe dadurch geschlossen. */
.logo-oseg-link {
    display: block;
    line-height: 0
}

@media(max-width:520px) {
    .logo-fchh {
        height: 82px
    }

    .logo-attraktor {
        height: 50px
    }

    .logos img.maker {
        height: 46px
    }

    .logo-oseg {
        height: 52px
    }
}

footer {
    border-top: 1px solid var(--rule);
    padding-top: 22px;
    padding-bottom: 60px;
    font-size: 13px;
    color: var(--ink-2)
}

/* ---------- Werkzeug-Teaser auf der Startseite ---------- */
.werkzeug {
    border-top: 1px solid var(--rule);
    padding-top: 56px;
    padding-bottom: 56px
}

.wz-grid {
    display: grid;
    gap: clamp(28px, 5vw, 56px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: center
}

@media(max-width:820px) {
    .wz-grid {
        grid-template-columns: 1fr
    }
}

.wz-ring {
    min-width: 0
}

.beispielring {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto
}

/* Der Ring ist Anschauung, kein Bedienelement - er reagiert nicht auf
   den Zeiger und traegt keinen Hinweis auf Interaktion. */
.beispielring .ch {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    fill: var(--ink-2)
}

.werkzeug .knopf {
    margin-top: 26px
}

/* ---------- Unterseiten ---------- */
.zurueck {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 26px
}

.zurueck a {
    color: var(--ink-2);
    text-decoration: none
}

.zurueck a:hover {
    color: var(--violett)
}

.baldda {
    padding-top: 64px;
    padding-bottom: 96px;
    min-height: 60vh
}

.bald-h {
    font-size: clamp(40px, 8vw, 92px);
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    max-width: 12ch
}

.bald-lede {
    font-size: clamp(17px, 1.7vw, 21px);
    color: var(--ink-2);
    max-width: 56ch;
    margin-bottom: 18px
}

.bald-knoepfe {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px
}

.knopf.hell {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--ink)
}

.knopf.hell:hover {
    color: var(--zinc)
}