/* Startseite (Default.aspx) - 03.12.2026 (Augustin): der Ablauf in vier Bildern statt des Übersichtsbilds von 2018.
   Gilt nur, solange die Cloud keine eigenen Startseitenbilder hat (Einstellung DefaultPageUseUserImages).
   Farben der Schritte fest, weil sie zu den Bildern gehören; Verweise und Fokus in der Akzentfarbe der Cloud.
   Die Bilder sind gerendert (1600 x 800). KI-Hinweis und DSGVO-Schild liegen als HTML darüber, damit sie auf
   jeder Größe lesbar bleiben - sie wachsen mit der Bildbreite (Containerabfrage, cqw).
----------------------------------------------------------*/

.startseite {
    margin-top: 6px;
    color: var(--r-text, #334155);
}

.startseite h2 {
    margin: 22px 0 6px;
    font-size: 19px;
    font-weight: 600;
    color: var(--r-text-stark, #0f172a);
}

.startseite-einleitung {
    margin: 0 0 16px;
    line-height: 1.6;
}

/* Vier Schritte ---------------------------------------------------------------------------- */

.startseite-ablauf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1400px;
}

/* Vier Schritte als 2 x 2, erst bei schmalem Fenster untereinander - 3 + 1 ließe eine Lücke. */
@media (max-width: 1000px) {
    .startseite-ablauf { grid-template-columns: 1fr; }
}

.startseite-schritt {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--r-rand, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.startseite-schritt-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px 20px;
}

.startseite-schritt h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--r-text-stark, #0f172a);
}

.startseite-nummer {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
}

.startseite-nummer.schritt-1 { background: #2f6b24; }
.startseite-nummer.schritt-2 { background: #2b78b8; }
.startseite-nummer.schritt-3 { background: #2b78b8; }
.startseite-nummer.schritt-4 { background: #9a5a0c; }

.startseite-schritt p {
    margin: 0;
    line-height: 1.6;
}

/* Bild als Knopf zum Vergrößern ------------------------------------------------------------- */

.startseite-bild {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: #dfe7ee;
    cursor: zoom-in;
    font: inherit;
}

.startseite-bild:focus-visible {
    outline: 3px solid var(--r-akzent, #2563eb);
    outline-offset: -3px;
}

/* display: block ist nötig: Auf einem Inline-Element (span) wirkt container-type nicht, cqw nähme dann die Fensterbreite. */
.startseite-bildflaeche {
    position: relative;
    display: block;
    container-type: inline-size;
    aspect-ratio: 2 / 1;
}

.startseite-bildflaeche img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.startseite-lupe {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* KI-Kennzeichnung: die Fotos sind mit KI erzeugt. */
.startseite-ki {
    position: absolute;
    right: 1.4cqw;
    bottom: 1.4cqw;
    display: flex;
    align-items: center;
    gap: .35em;
    padding: .3em .7em .3em .5em;
    border-radius: 999px;
    background: rgba(22, 50, 74, .62);
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(10px, 1.1cqw, 14px);
    letter-spacing: .04em;
    line-height: 1;
}

.startseite-ki svg { width: 1.1em; height: 1.1em; }

/* Serverstandort, nur auf dem Bild der Synchronisation. */
.startseite-dsgvo {
    position: absolute;
    left: 53%;
    bottom: 4.5%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .5em;
    padding: .45em 1em .45em .7em;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    white-space: nowrap;
    font-weight: 600;
    font-size: clamp(10px, 1.2cqw, 15px);
    color: #16324a;
    line-height: 1.2;
}

.startseite-dsgvo svg { width: 1.35em; height: 1.35em; flex: none; }

/* Store-Knöpfe ----------------------------------------------------------------------------- */

.startseite-stores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.startseite-stores a { display: inline-flex; }

/* Die Google-Vorlage hat einen Rand im Bild - so sind beide Knöpfe sichtbar gleich hoch (wie in der Online-Hilfe). */
.startseite-store-play { height: 57px; width: auto; margin: -6.5px 0; }
.startseite-store-apple { height: 44px; width: auto; }

.startseite-store-folgt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--r-leise, #64748b);
    font-size: 13px;
}

.startseite-store-folgt img { opacity: .4; }

/* Außerdem --------------------------------------------------------------------------------- */

.startseite-mehr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 16px;
    max-width: 1400px;
}

.startseite-mehr > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--r-rand, #e2e8f0);
    border-radius: 14px;
}

.startseite-mehr h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--r-text-stark, #0f172a);
}

.startseite-mehr p { margin: 0; line-height: 1.6; }

.startseite-mehr .startseite-symbol { width: 28px; height: 28px; color: var(--r-akzent, #2563eb); }

/* Vergrößerte Ansicht (dialog) ------------------------------------------------------------- */

.startseite-gross {
    width: min(94vw, calc((94vh - 70px) * 2));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0f1c2b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.startseite-gross::backdrop { background: rgba(10, 22, 36, .86); }

.startseite-gross figure { margin: 0; }

.startseite-gross figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 70px 14px 18px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
}

.startseite-gross-zu {
    position: absolute;
    right: 12px;
    bottom: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.startseite-gross-zu:focus-visible {
    outline: 3px solid var(--r-akzent, #2563eb);
    outline-offset: 2px;
}

/* Nur für Bildschirmleser: aus „KI“ wird „Foto mit KI erzeugt“. */
.startseite-unsichtbar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
