@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}

:root {
    /* Neutrale Rampe von Levius – bläulich temperiert statt neutralgrau */
    --tinte:    #2b3444;
    --papier:   #fbfcfd;
    --flaeche:  #f4f6f9;
    --trenner:  #e9ecf1;
    --rahmen:   #d9dee7;
    --leise:    #565e6b;

    /* ITESP */
    --gruen:      #5a9e3a;
    --gruen-text: #3f7527;

    /* Levius */
    --navy:        #1f355d;
    --navy-tief:   #16263f;
    --turkis:      #4cc3b6;
    --turkis-text: #26766b;

    --radius: 3px;
    --schrift: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --breite: 64rem;
    --rand: clamp(1.25rem, 5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: var(--schrift);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-synthesis-weight: none;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.015em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--gruen-text); }

:focus-visible {
    outline: 2px solid var(--turkis-text);
    outline-offset: 3px;
    border-radius: var(--radius);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
    left: var(--rand); top: .75rem; z-index: 20;
    background: var(--navy); color: #fff;
    padding: .6rem 1rem; text-decoration: none; border-radius: var(--radius);
}

/* --- Setup-Hinweis --------------------------------------------------- */
.setup {
    background: var(--navy-tief);
    color: rgba(255, 255, 255, .85);
    font-size: .8125rem;
    line-height: 1.5;
    padding: .75rem var(--rand);
}
.setup strong { color: #fff; }
.setup span { display: block; color: rgba(255, 255, 255, .6); }

/* --- Kopf ------------------------------------------------------------ */
.kopf {
    max-width: var(--breite);
    margin-inline: auto;
    padding: 1.75rem var(--rand);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2rem;
    align-items: baseline;
    justify-content: space-between;
}

.wortmarke {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -.03em;
    text-decoration: none;
}
/* p = Pokorny in ITESP-Gruen, gp = Geiger & Pauly in einer Levius-Farbe */
.wortmarke .pokorny { color: var(--gruen-text); }
.wortmarke .levius  { color: var(--navy); }
.wortmarke .rest    { color: var(--tinte); }

.kopf__nav { display: flex; gap: 1.5rem; font-size: .95rem; }
.kopf__nav a { text-decoration: none; color: var(--leise); }
.kopf__nav a:hover { color: var(--tinte); text-decoration: underline; }

/* --- Hero ------------------------------------------------------------ */
.hero {
    max-width: var(--breite);
    margin-inline: auto;
    padding: clamp(2.5rem, 7vw, 5rem) var(--rand) clamp(2.5rem, 6vw, 4rem);
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    letter-spacing: -.028em;
    line-height: 1.06;
    max-width: 15ch;
}

.hero__text {
    margin-top: 1.5rem;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--leise);
    max-width: 50ch;
}

/* Zwei Felder, die sich in der Mitte überlagern */
.bogen { margin-top: clamp(2.5rem, 6vw, 4rem); }

.bogen__balken {
    position: relative;
    height: 1.1rem;
    border-radius: 1px;
}

.bogen__a, .bogen__b {
    position: absolute;
    top: 0; bottom: 0;
    width: 64%;
    mix-blend-mode: multiply;
}
.bogen__a { left: 0;  background: var(--gruen); animation: wachsen .9s cubic-bezier(.22,.7,.3,1) both; }
.bogen__b { right: 0; background: var(--navy);  animation: wachsen .9s cubic-bezier(.22,.7,.3,1) .12s both; }

@keyframes wachsen { from { width: 0; } to { width: 64%; } }

.bogen__namen {
    max-width: none;          /* sonst greift die Lesebreite der p-Regel */
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: .7rem 0 0;
    font-size: .9rem;
    font-weight: 500;
}
.bogen__namen .links  { color: var(--gruen-text); }
.bogen__namen .rechts { color: var(--navy); }

/* --- Abschnitte ------------------------------------------------------ */
.abschnitt {
    max-width: var(--breite);
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 4rem) var(--rand);
}
.abschnitt h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    margin-bottom: 1.1rem;
    max-width: 22ch;
}

.band {
    background: var(--flaeche);
    border-top: 1px solid var(--trenner);
    border-bottom: 1px solid var(--trenner);
}
.band .abschnitt { padding-block: clamp(3rem, 7vw, 4.5rem); }

/* --- Arbeitsfelder --------------------------------------------------- */
.felder { margin-top: 2.5rem; display: grid; gap: 2.25rem; }
.feld h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feld p { color: var(--leise); }

@media (min-width: 52rem) {
    .felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
    .feld--breit { grid-column: 1 / -1; max-width: 46rem; }
}

/* --- Betriebe -------------------------------------------------------- */
.betriebe { margin-top: 2.25rem; display: grid; gap: 2rem; }
@media (min-width: 52rem) {
    .betriebe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

.betrieb { padding-left: 1.1rem; border-left: 3px solid var(--kante, var(--gruen)); }
.betrieb--a { --kante: var(--gruen); }
.betrieb--b { --kante: var(--navy); }
.betrieb h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.betrieb p { color: var(--leise); }
.betrieb__link { display: inline-block; margin-top: .6rem; font-size: .95rem; font-weight: 500; }

/* --- Kontakt --------------------------------------------------------- */
.kontakt__daten {
    display: grid;
    gap: .3rem;
    margin-top: 1.5rem;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -.02em;
}
.kontakt__daten a { text-decoration-color: var(--rahmen); }

/* --- Rechtstexte ----------------------------------------------------- */
.rechtstext {
    max-width: 46rem;
    margin-inline: auto;
    padding: clamp(2rem, 6vw, 3.5rem) var(--rand) 4rem;
}
.rechtstext h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: .6rem; }
.rechtstext > p:first-of-type { color: var(--leise); }
.rechtstext h2 {
    font-size: 1.15rem;
    margin: 2.5rem 0 .7rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--trenner);
}
.rechtstext h3 { font-size: 1rem; margin: 1.4rem 0 .3rem; }
.rechtstext ul { padding-left: 1.1rem; max-width: 60ch; }
.rechtstext li { margin-bottom: .3rem; }
.rechtstext address { font-style: normal; margin-bottom: 1.25rem; }
.rechtstext .stand { font-size: .9rem; color: var(--leise); margin-top: 3rem; }

.anbieter { display: grid; gap: 1.75rem; margin-bottom: 1rem; }
@media (min-width: 46rem) {
    .anbieter--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
.anbieter__block { padding-left: 1.1rem; border-left: 3px solid var(--kante, var(--gruen)); }
.anbieter__block--b { --kante: var(--navy); }
.anbieter__block h3 { margin-top: 0; }

/* --- Fuss ------------------------------------------------------------ */
.fuss { border-top: 1px solid var(--trenner); margin-top: 1rem; }
.fuss__inner {
    max-width: var(--breite);
    margin-inline: auto;
    padding: 2rem var(--rand) 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2rem;
    justify-content: space-between;
    align-items: baseline;
    font-size: .9rem;
    color: var(--leise);
}
.fuss__betreiber { margin: 0; max-width: 46ch; }
.fuss__nav { display: flex; gap: 1.5rem; }
.fuss__nav a { color: var(--tinte); text-decoration: none; }
.fuss__nav a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .bogen__a, .bogen__b { animation: none; }
}
