/* =============================================================================
   Startseite - die Abschnitte unter dem Ablauf.

   Datengrundlage, Für wen, Freigabelink, Abschluss und Fußzeile. Palette und
   Grundeinstellungen stehen in startseite-seite.css.
   ============================================================================= */

/* --- Datengrundlage --- */
.grundlage {
    padding: clamp(80px, 12vw, 150px) 0;
}

.grundlage h2,
.wen h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    max-width: 22ch;
    margin-bottom: 16px;
}

.lead {
    max-width: 46rem;
    margin-bottom: 52px;
    font-size: 1.05rem;
    color: var(--tinte-weich);
}

.karten-gitter {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.karte {
    grid-column: span 5;
    padding: 26px;
    border: 1px solid var(--linie);
    border-radius: var(--rund-gross);
    background: var(--karte);
    box-shadow: var(--schatten-flach);
}

.karte-gross {
    grid-column: span 7;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.karte-dunkel {
    background: var(--tanne);
    border-color: var(--tanne);
    color: #e8efe9;
}

.karte h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.karte-unter {
    margin-bottom: 16px;
    font-size: 0.86rem;
    color: var(--tinte-weich);
}

.karte-dunkel .karte-unter,
.karte-dunkel .karte-einheit {
    color: #9dbcac;
}

.karte-riese {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    line-height: 1;
    color: var(--tanne);
}

.karte-dunkel .karte-riese {
    color: var(--bernstein);
}

.karte-einheit {
    font-size: 0.82rem;
    color: var(--tinte-leise);
}

.skala-block {
    margin-top: auto;
    padding-top: 20px;
}

.skala {
    position: relative;
    height: 14px;
    border-radius: 7px;
    background: var(--papier-tief);
    overflow: hidden;
}

.skala i {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--tanne-hell), var(--bernstein));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s var(--kurve) 0.2s;
}

.auf.da .skala i {
    transform: scaleX(0.81);
}

.skala-legende {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--tinte-leise);
}

.katalog-reihe {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.katalog-reihe strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.9rem;
    color: var(--tanne);
}

.katalog-reihe span {
    font-size: 0.8rem;
    color: var(--tinte-weich);
}

/* Breite Karte ohne den doppelten Zeilenzug von `.karte-gross`: Sie steht
   neben einer Karte gleicher Höhe und soll nicht über zwei Zeilen laufen. */
.karte-breit {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
}

/* Die Aufteilung nach Ländern steht am Fuß der Karte, nicht direkt unter dem
   Text: Sonst klafft unter ihr die Lücke, die aus der gleich hohen
   Nachbarkarte entsteht. */
.katalog-reihe-unten {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--linie);
}

.katalog-reihe-unten strong {
    font-size: 1.4rem;
}

/* Die Katasterquellen: eine Zeile je Bestand, Jahreszahl rechtsbündig. Als
   Kachelreihe wie beim Gerätekatalog rissen sechs Einträge die Karte auf
   700 Pixel Höhe auseinander. */
.quellen-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quellen-liste li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    font-size: 0.84rem;
    border-top: 1px solid rgba(232, 239, 233, 0.16);
}

.quellen-liste li:first-child {
    border-top: 0;
}

.quellen-liste em {
    flex-shrink: 0;
    font-style: normal;
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--bernstein);
}

/* --- Für wen --- */
.wen {
    padding: clamp(80px, 12vw, 140px) 0;
    background: var(--papier-tief);
    border-top: 1px solid var(--linie);
}

.wen-gitter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.wen-karte {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px 26px;
    border: 1px solid var(--linie);
    border-radius: var(--rund-gross);
    background: var(--karte);
    transition: transform 0.35s var(--kurve), box-shadow 0.35s var(--kurve);
}

.wen-karte:hover {
    transform: translateY(-6px);
    box-shadow: var(--schatten);
}

.wen-karte svg {
    color: var(--tanne);
}

.wen-karte .rolle {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bernstein-tief);
}

.wen-karte h3 {
    font-size: 1.3rem;
}

.wen-karte p {
    font-size: 0.92rem;
    color: var(--tinte-weich);
}

/* --- Freigabelink --- */
.teilen {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
    margin-top: clamp(60px, 9vw, 110px);
    padding-top: clamp(50px, 8vw, 90px);
    border-top: 1px solid var(--linie);
}

.teilen h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    margin-bottom: 14px;
}

.teilen p {
    color: var(--tinte-weich);
    margin-bottom: 20px;
}

/* Hier steht eine Berichtsseite in A4 statt eines Bildschirmausschnitts. Die
   allgemeine Bildkarte schneidet auf 4:3.2 zu - das würde der Titelseite den
   halben Inhalt nehmen. */
.teilen .bildkarte img {
    aspect-ratio: 1 / 1.414;
    object-fit: contain;
    background: var(--papier-tief);
}

.link-pille {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--linie);
    border-radius: 12px;
    background: var(--karte);
    font-size: 0.85rem;
    color: var(--tinte-weich);
}

.link-pille svg {
    color: var(--tanne);
    flex: none;
}

/* --- Abschluss --- */
.schluss {
    position: relative;
    overflow: hidden;
    padding: clamp(90px, 13vw, 160px) 0;
    background: var(--tanne);
    color: #eef4ef;
}

.sonnenschein {
    position: absolute;
    left: 50%;
    top: -260px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(232, 160, 32, 0.55), rgba(232, 160, 32, 0) 65%);
    animation: atmen 6s ease-in-out infinite;
}

@keyframes atmen {
    50% {
        transform: translateX(-50%) scale(1.12);
    }
}

.schluss-innen {
    position: relative;
    text-align: center;
}

.schluss h2 {
    max-width: 24ch;
    margin: 0 auto 18px;
    font-size: clamp(2rem, 4.4vw, 3.3rem);
}

.schluss p {
    max-width: 38rem;
    margin: 0 auto 38px;
    color: #b9cec2;
}

/* Der Block für Agenten steht unter den Knöpfen, leiser als der Aufruf
   darüber: Er richtet sich an eine Maschine, nicht an den Besucher, soll aber
   im Fließtext der Seite stehen und nicht nur im Fuß. */
.agenten-block {
    max-width: 46rem;
    margin: 46px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(185, 206, 194, 0.22);
    text-align: left;
}

.agenten-block h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #e6f0ea;
}

.agenten-block p {
    margin: 0 0 16px;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #9ab3a5 !important;
    max-width: none;
}

/* Der Text zum Kopieren. Umbruch erhalten, damit er beim Einfügen so
   ankommt, wie er gemeint ist. */
.agenten-text {
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: var(--rund);
    background: rgba(6, 24, 17, 0.55);
    border: 1px solid rgba(185, 206, 194, 0.18);
    color: #cfe0d6;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.76rem;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 15rem;
    overflow-y: auto;
    user-select: all;
}

.agenten-fuss {
    margin: 14px 0 0 !important;
    font-size: 0.78rem;
}

.agenten-block a {
    color: var(--bernstein);
}

.knopf-reihe {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Fußzeile --- */
.fuss {
    padding: 40px 0;
    background: #0a2c21;
    color: #8fa89a;
    font-size: 0.82rem;
}

.fuss-innen {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.fuss-links {
    display: flex;
    gap: 18px;
}

.fuss-links a {
    color: #c3d4c9;
}

.fuss-links a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {

    .karte,
    .karte-gross {
        grid-column: span 12;
        grid-row: auto;
    }

    .wen-gitter {
        grid-template-columns: 1fr;
    }

    .teilen {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sonnenschein,
    .skala i {
        animation: none;
        transition: none;
    }

    .wen-karte {
        transition: none;
    }
}
