/* Fotos (fotos.niedringhaus.net): Gestaltung aus der bisherigen Website übernommen
   (25.11.2026) – der Admin-Bereich sah dort schon aus wie das Benutzerkonto (ums). */
/* ------------------------------------------------------------
   Farbkonzept (60 / 30 / 10)
   60 %  ruhige Basis:  Sand-Weiß, Weiß
   30 %  Troyer-Navy:   Schrift, Porträt-Platzhalter, Footer-Text
   10 %  Leuchtturm:    Rot als einziger Akzent (aktiver Tab, Links),
                        Gelb nur als Mini-Detail (Hover, Fokus, Initialen)
   Das Titelbild selbst bringt die kräftigen Farben mit.
   ------------------------------------------------------------ */
:root {
    --navy:        #1c2840;  /* Troyer                     */
    --navy-soft:   #3a4a66;
    --blue:        #3d6a96;  /* Fischerhemd-Streifen       */
    --blue-pale:   #e9eff5;
    --red:         #b8322b;  /* Leuchtturm-Rot, gedeckt    */
    --yellow:      #eebf3d;  /* Leuchtturm-Gelb            */
    --sand:        #f5f2ec;
    --line:        #e3ded4;
    --muted:       #6f7a86;  /* Wattgrau                   */
    --white:       #ffffff;

    --radius: 12px;
    --max-width: 1100px;
    --portrait: 168px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--sand);
    color: var(--navy);
    line-height: 1.6;
}

a { color: var(--red); }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

/* ---------------- Profil-Header ---------------- */
.profile {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.profile-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.cover {
    position: relative;
    aspect-ratio: 16 / 6;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    background: var(--blue-pale);
}
.cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #dfe8f1 0%, #c9d7e6 100%);
}
.cover-placeholder span {
    background: rgba(255, 255, 255, .85);
    color: var(--navy-soft);
    font-size: .9rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    text-align: center;
}

/* Logo als Briefmarke oben rechts, Stempel halb darüber */
.briefmarke {
    --marke: clamp(84px, 12vw, 136px);
    position: absolute;
    top: calc(var(--marke) * .58);
    right: calc(var(--marke) * .6);
    width: var(--marke);
    height: var(--marke);
    pointer-events: none;
}
.briefmarke-logo {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(28, 40, 64, .28);
    position: relative;
    z-index: 1;
    transform: rotate(-10deg);   /* Logo leicht nach links gedreht */
}
/* Stempel oben links über dem Logo, wie eine abgestempelte Briefmarke */
.briefmarke-stempel {
    position: absolute;
    z-index: 2;
    width: calc(var(--marke) * 1.33);
    left: calc(var(--marke) * -.83);
    top: calc(var(--marke) * -.19);
    transform: rotate(8deg);
    opacity: .85;
    mix-blend-mode: multiply;
}

/* Porträt liegt halb über der Unterkante des Titelbilds */
.profile-bar {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    padding: 0 2rem 1rem;
}
.portrait {
    flex: 0 0 auto;
    width: var(--portrait);
    height: var(--portrait);
    margin-top: calc(var(--portrait) / -2);
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow:
        0 0 0 5px var(--blue),               /* blauer Ring außen, gleiche Stärke */
        0 6px 16px rgba(28, 40, 64, .22);
    overflow: hidden;
    background: var(--navy);
    position: relative;
    z-index: 1;
}
.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--yellow);
    background: var(--navy);
}

.identity { padding-bottom: .5rem; }
.identity h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.tagline {
    margin: .15rem 0 0;
    color: var(--muted);
}

/* ---------------- Tabs ---------------- */
.tabs {
    display: flex;
    gap: .25rem;
    border-top: 1px solid var(--line);
    margin: 0 1rem;
    overflow-x: auto;
}
.tabs a {
    position: relative;
    padding: .9rem 1rem;
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
}
.tabs a:hover  { color: var(--red); background: var(--sand); }
.tabs a.active { color: var(--red); font-weight: 700; }
.tabs a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--red);
    border-radius: 3px 3px 0 0;
}

/* ---------------- Inhalt ---------------- */
.content {
    max-width: var(--max-width);
    margin: 1.25rem auto;
    padding: 0 1rem;
    display: grid;
    gap: 1rem;
}
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}
.card h2 {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
}
.placeholder-card p { color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding: 1.25rem 1rem 2rem;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}

.footer-links { margin-top: .35rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--red); text-decoration: underline; }
.footer-links span { margin: 0 .4rem; }

/* ---------------- Impressum / Datenschutz ---------------- */
.legal > * { max-width: 72ch; }
.legal h3 {
    margin: 1.4rem 0 .35rem;
    font-size: 1rem;
    color: var(--navy);
}
.legal p,
.legal ul { margin: 0 0 .75rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .2rem; }
.anbieter {
    font-style: normal;
    margin-bottom: .75rem;
    padding: .75rem 1rem;
    background: var(--sand);
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
}
.legal .stand { color: var(--muted); font-size: .85rem; margin-top: 1.5rem; }

/* ---------------- Mobil ---------------- */
@media (max-width: 700px) {
    :root { --portrait: 132px; }
    .profile-inner { padding: 0; }
    .cover { aspect-ratio: 16 / 8; border-radius: 0; }
    .cover-placeholder span { font-size: .8rem; margin: 0 1rem; }
    .profile-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: .5rem;
        padding: 0 1rem .75rem;
    }
    .identity h1 { font-size: 1.6rem; }
    .tabs { justify-content: center; }
}

/* ---------------- Kontaktformular ---------------- */
.muted { color: var(--muted); margin-top: 0; }

.contact-form { display: grid; gap: 1rem; margin-top: 1rem; max-width: 640px; }
.field label {
    display: block;
    font-weight: 600;
    margin-bottom: .3rem;
}
.field input,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .6rem .75rem;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(61, 106, 150, .18);
}
.field-error { color: var(--red); font-size: .9rem; margin: .3rem 0 0; }

.form-hinweis { color: var(--muted); font-size: .9rem; margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

altcha-widget {
    --altcha-border-radius: 8px;
    --altcha-color-border: var(--line);
    --altcha-color-text: var(--navy);
    --altcha-color-border-focus: var(--blue);
    --altcha-color-error-text: var(--red);
    --altcha-max-width: 100%;
}

.button {
    justify-self: start;
    font: inherit;
    font-weight: 600;
    color: var(--yellow);
    background: var(--red);
    border: 0;
    border-radius: 8px;
    padding: .7rem 1.4rem;
    cursor: pointer;
    transition: background .15s;
}
.button:hover { background: #9e2a24; color: var(--yellow); }

.notice { padding: .8rem 1rem; border-radius: 8px; margin: .5rem 0 0; }
.notice-ok    { background: #e8f2ea; color: #245a32; }
.notice-error { background: #f8e6e4; color: var(--red); }

/* ---------------- Wartungsseite ---------------- */
body.wartung {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.wartung-box {
    max-width: 460px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
}
.wartung-box h1 { margin: 0 0 .5rem; font-size: 1.5rem; }
.wartung-box p  { margin: 0; color: var(--muted); }

/* ---------------- Steckbrief (Über mich) ---------------- */
.steckbrief {
    display: grid;
    grid-template-columns: minmax(9rem, max-content) 1fr;
    gap: .6rem 1.5rem;
    margin: .75rem 0 0;
}
.steckbrief dt { font-weight: 600; color: var(--blue); }
.steckbrief dd { margin: 0; }
@media (max-width: 700px) {
    .steckbrief { grid-template-columns: 1fr; gap: .1rem; }
    .steckbrief dd { margin-bottom: .7rem; }
}

/* ---------------- Fotos ---------------- */
.rubriken { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.rubriken a {
    padding: .35rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.rubriken a:hover  { background: var(--sand); }
.rubriken a.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* Kacheln in Zeilen: Breite nach Seitenverhältnis (--r), Höhe je Zeile gleich */
.galerie { display: flex; flex-wrap: wrap; gap: .75rem; }
.galerie::after { content: ""; flex-grow: 999; }   /* letzte Zeile nicht strecken */
.foto {
    --zeile: 220px;
    flex: var(--r) 1 calc(var(--r) * var(--zeile));
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.foto a { display: block; }
.foto img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--r);
    object-fit: cover;
    background: var(--blue-pale);
    transition: opacity .15s;
}
.foto a:hover img { opacity: .9; }
.foto figcaption {
    padding: .55rem .75rem;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Großansicht */
.lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 3rem 3.5rem;
    border: 0;
    background: rgba(28, 40, 64, .97);
    color: var(--white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}
.lightbox img {
    max-width: 100%;
    max-height: calc(100dvh - 8rem);
    object-fit: contain;
    border-radius: 6px;
}
.lightbox figcaption { font-weight: 600; text-align: center; }
.lightbox button {
    position: absolute;
    padding: .4rem .8rem;
    border: 0;
    background: none;
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
}
.lightbox button:hover,
.lightbox button:focus-visible { opacity: 1; color: var(--yellow); }
.lb-schliessen { top: .5rem; right: .75rem; }
.lb-zurueck    { left: .25rem;  top: 50%; transform: translateY(-50%); }
.lb-weiter     { right: .25rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
    .galerie { gap: .5rem; }
    .foto { --zeile: 130px; }
    .lightbox { padding: 3rem .5rem 4rem; }
    .lb-zurueck, .lb-weiter { top: auto; bottom: .5rem; transform: none; }
}

/* ---------------- Admin (/admin/) ---------------- */
/* Alle Knöpfe einheitlich: Leuchtturm-Rot mit gelber Schrift (23.11.2026) */
.button-leise { background: var(--red); color: var(--yellow); border: 0; }
.button-leise:hover { background: #9e2a24; }

.admin-titel { margin: 0; font-size: 1.3rem; }

.ums-login { display: grid; gap: .75rem; max-width: 420px; }
.ums-form { display: grid; gap: 1rem; }
.ums-form .muted { margin: 0; }
.ums-abbrechen { margin: 0; }

.admin-foto {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}
.admin-foto:first-of-type { border-top: 0; }
.admin-bild img {
    display: block;
    width: 180px;
    height: 125px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--blue-pale);
}
.admin-felder {
    display: grid;
    grid-template-columns: auto 1fr 200px;
    gap: .5rem 1rem;
    align-items: end;
}
.admin-datei {
    grid-column: 1 / -1;
    margin: 0;
    font-size: .85rem;
    color: var(--muted);
    word-break: break-all;
}
.marke {
    display: inline-block;
    margin-left: .4rem;
    padding: .05rem .5rem;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-size: .75rem;
    font-weight: 700;
}
.schalter { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; padding-bottom: .6rem; white-space: nowrap; }
.field select {
    width: 100%;
    font: inherit;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .6rem .5rem;
}
.speichern-leiste {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 -1.5rem -1.25rem;
    padding: .75rem 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
}
.seiten { display: flex; gap: .6rem; }

.admin-rubriken, .admin-rubrik-neu { display: grid; gap: .6rem; margin-top: .75rem; }
.admin-rubrik { display: grid; grid-template-columns: 1fr 5rem auto; gap: .75rem; align-items: center; }
.admin-rubrik-neu { grid-template-columns: minmax(0, 1fr) auto; }
.admin-rubrik-neu input, .admin-rubrik input { min-width: 0; width: 100%; }
.admin-rubrik input[type="text"],
.admin-rubrik input[type="number"],
.admin-rubrik-neu input {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .5rem .7rem;
}
.admin-rubrik .schalter { padding: 0; font-weight: 400; }
.admin-fehlend { font-size: .9rem; color: var(--muted); }

/* Breite Inhalte (Bilder, Eingabefelder) dürfen das Raster nicht aufweiten */
.admin-inhalt { grid-template-columns: minmax(0, 1fr); }
.admin-foto > *, .admin-felder > * { min-width: 0; }

@media (max-width: 700px) {
    .admin-name { display: none; }
    .admin .card { padding: 1rem; }
    .admin-inhalt { padding: 0 .75rem; }
    .speichern-leiste { margin: 0 -1rem -1rem; padding: .75rem 1rem; }

    /* kleines Vorschaubild links, Felder rechts untereinander */
    .admin-foto { grid-template-columns: 88px minmax(0, 1fr); gap: .75rem; }
    .admin-bild img { width: 88px; height: 66px; }
    .admin-felder { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .admin-datei { font-size: .8rem; }
    .schalter { padding-bottom: 0; }
    .field label { margin-bottom: .15rem; font-size: .9rem; }

    .admin-rubrik { grid-template-columns: minmax(0, 1fr) 4rem auto; gap: .5rem; }
}

/* ---------------- Anmeldung und Menüs über das ums ---------------- */
/* Login-Formular (kommt fertig vom ums, Klassen wie im Heiligendorf-UMS) */
.ums-login { display: grid; gap: .75rem; max-width: 440px; }
.ums-login p { margin: 0; }
.ums-login form.card { display: grid; gap: .35rem; }
.ums-login form.card label { font-weight: 600; margin-top: .5rem; }
.ums-login form.card label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.ums-login form.card input[type="text"],
.ums-login form.card input[type="password"] {
    width: 100%;
    font: inherit;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .6rem .75rem;
}
.ums-login form.card input:focus {
    outline: none;
    border-color: var(--navy-soft, var(--navy));
    box-shadow: 0 0 0 3px rgba(61, 106, 150, .18);
}
.ums-login .btn {
    justify-self: start;
    display: inline-block;
    margin-top: .75rem;
    font: inherit;
    font-weight: 600;
    color: var(--yellow);
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 8px;
    padding: .65rem 1.3rem;
    text-decoration: none;
    cursor: pointer;
}
.ums-login .btn:hover { background: #9e2a24; border-color: #9e2a24; }
.ums-login .btn-secondary { margin-top: 0; background: var(--red); color: var(--yellow); border-color: var(--red); }
.ums-login .btn-secondary:hover { background: #9e2a24; border-color: #9e2a24; }
.ums-login .klein { font-size: .9rem; }
.ums-login .flash { padding: .8rem 1rem; border-radius: 8px; }
.ums-login .flash.error { background: #f8e6e4; color: var(--red); }
.ums-login .flash.success { background: #e8f2ea; color: #245a32; }

/* Menüs „Meine Tools“ und Konto in der Kopfzeile */
.nav-menu { position: relative; }
.nav-menu > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    padding: .35rem .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    white-space: nowrap;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: " ▾"; font-size: .8em; }
.nav-menu[open] > summary { background: var(--sand); }
.nav-menu > nav {
    position: absolute;
    right: 0;
    top: calc(100% + .4rem);
    z-index: 50;
    display: grid;
    min-width: 220px;
    padding: .4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(28, 40, 64, .15);
}
.nav-menu > nav a {
    padding: .5rem .7rem;
    border-radius: 6px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
}
.nav-menu > nav a:hover,
.nav-menu > nav a.active { background: var(--sand); }
.nav-menu > nav hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }

.nav-menu > nav a { border-bottom: 0; }
.nav-menu > summary small { color: var(--muted); font-weight: 400; }

/* ---------------- Admin: Kopf- und Fußzeile wie im Benutzerkonto (ums) ----------------
   Troyer-Navy, rundes Logo, Menüs rechts. Übernommen am 23.11.2026;
   gilt nur im Admin-Bereich (body.admin), die öffentliche Seite bleibt. */
body.admin { min-height: 100vh; display: flex; flex-direction: column; }
body.admin .admin-inhalt { width: 100%; flex: 1 0 auto; align-content: start; margin: 56px auto 2rem; }

header.topbar {
    background: var(--navy);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 64px;
}
header.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-logo-link {
    position: absolute;
    left: 16px;
    top: 8px;
    width: 96px;
    height: 96px;
    z-index: 11;
    display: block;
}
.topbar-logo {
    display: block; width: 100%; height: 100%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0, 0, 0, 0.35);
}
.topbar-brand { font-weight: 700; margin-left: 124px; font-size: 18px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

header.topbar .nav-menu > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #fff;
    user-select: none;
}
header.topbar .nav-menu > summary::after { content: '▾'; font-size: 10px; opacity: 0.85; transition: transform 0.15s ease; }
header.topbar .nav-menu[open] > summary { background: none; }
header.topbar .nav-menu[open] > summary::after { transform: rotate(180deg); }
header.topbar .nav-menu > summary:hover { background: rgba(255, 255, 255, 0.15); }
.nav-menu-user { font-weight: 400; opacity: 0.85; }
header.topbar .nav-menu nav {
    top: calc(100% + 8px);
    display: flex;
    flex-direction: column;
    min-width: 240px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
}
header.topbar .nav-menu nav a,
header.topbar .nav-logout {
    color: var(--navy);
    font-weight: 400;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    display: block;
    text-decoration: none;
}
header.topbar .nav-menu nav a:hover { background: var(--sand); }
header.topbar .nav-menu nav a.active { color: var(--red); font-weight: 700; background: var(--sand); }
header.topbar .nav-menu.ums-tools nav a.ums-tool { display: flex; }
.nav-group-title {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    padding: 4px 10px 6px;
}
.nav-group + .nav-group,
.nav-logout-form { margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.nav-group a { padding-left: 20px !important; }
header.topbar button.nav-logout {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    cursor: pointer;
}
header.topbar button.nav-logout:hover { background: var(--sand); }

.admin-footer {
    flex-shrink: 0;
    background: var(--navy);
    padding: 20px 16px;
    text-align: center;
}
.admin-footer p { margin: 0; font-size: 13px; color: #fff; }
.admin-footer a { color: #fff; text-decoration: underline; }
.admin-footer a:hover { opacity: 0.85; }

@media (max-width: 700px) {
    /* Auf dem Handy scrollt die Kopfzeile mit */
    header.topbar { position: relative; flex-wrap: wrap; row-gap: 10px; padding: 10px 14px; }
    .topbar-logo-link { width: 40px; height: 40px; left: 12px; top: 10px; }
    .topbar-logo { box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.3); }
    .topbar-brand { margin-left: 58px; font-size: 16px; }
    .topbar-right { gap: 8px; margin-top: 4px; margin-left: auto; }
    header.topbar .nav-menu { position: static; }
    header.topbar .nav-menu nav { top: calc(100% + 4px); left: 12px; right: 12px; min-width: 0; max-height: calc(100vh - 140px); }
    body.admin .admin-inhalt { margin-top: 1.25rem; }
}

/* ---------------- Anmeldeseite wie im Benutzerkonto (ums) ----------------
   Gleiche Maße wie ums/public/assets/style.css (24.11.2026). */
.login-wrap { max-width: 380px; width: 100%; margin: 80px auto 40px; padding: 0 16px; text-align: center; line-height: 1.45; }
.login-wrap h1 { color: var(--red); font-size: 28px; margin: 10px 0 4px; }
.login-wrap > p { margin: 16px 0; }
.login-wrap .ums-login { display: block; max-width: none; }
.login-wrap .ums-login p { margin: 16px 0; }
.login-wrap .ums-login form.card {
    display: block; text-align: left; max-width: 560px; margin: 18px auto 0;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px;
}
.login-wrap .ums-login form.card label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.login-wrap .ums-login form.card label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.login-wrap .ums-login form.card label.check input { margin-top: 3px; accent-color: var(--red); }
.login-wrap .ums-login form.card input[type="text"],
.login-wrap .ums-login form.card input[type="password"] {
    width: 100%; height: 44px; line-height: 24px; padding: 9px 10px;
    border: 1px solid var(--line); border-radius: 6px; font-size: 16px; font-family: inherit;
    background: #fff; color: var(--navy);
}
.login-wrap .ums-login form.card input:focus { outline: 2px solid rgba(200, 16, 46, 0.35); border-color: var(--red); box-shadow: none; }
.login-wrap .ums-login .btn {
    display: inline-block; margin-top: 18px; padding: 10px 18px; font-size: 15px; font-weight: 600; line-height: 1.2;
    font-family: inherit; color: var(--yellow); background: var(--red); border: 1px solid var(--red); border-radius: 6px;
    cursor: pointer; text-decoration: none;
}
.login-wrap .ums-login .btn:hover { background: #9e2a24; border-color: #9e2a24; }
.login-wrap .ums-login .btn-voll { width: 100%; }
.login-wrap .ums-login .btn.klein { padding: 5px 12px; font-size: 13px; border-radius: 999px; }
.login-wrap .ums-login .klein { font-size: 13px; }
.login-wrap .ums-login .ums-hinweis { margin: 12px 0; }
.login-wrap .ums-login .ums-hinweis a { color: var(--red); font-weight: 600; }
.login-wrap .ums-login .ums-abbrechen { margin-top: 8px; }
.login-wrap .ums-login .flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; text-align: left; }
.login-wrap .ums-login .flash.error { background: #fdecec; border: 1px solid var(--red); color: #9e2a24; }
.login-wrap .ums-login .flash.success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
@media (max-width: 700px) {
    .login-wrap { margin-top: 40px; }
}
