/* Geschenke-Manager – klassisches UI. Keine externen Schriften oder Skripte. */
:root {
    --page: #f4f5f7;
    --surface: #fff;
    --ink: #243043;
    --muted: #647084;
    --line: #e1e5eb;
    --accent: #315c91;
    --accent-dark: #234873;
    --nav: #1d2c42;
    --radius: 10px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--page);
    width: calc(100% - 48px);
    max-width: 1080px;
    margin: 120px auto 64px;
}
.page-container {
    max-width: 880px;
    margin: 40px auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 4px 20px rgb(29 44 66 / 3%);
}
h1 {
    margin: 0 0 30px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 650;
}
h2 { margin-top: 32px; font-size: 1.25rem; line-height: 1.4; font-weight: 650; }
a, summary {
    display: block;
    padding: 12px 16px;
    margin: 10px 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    text-decoration: none;
    color: var(--accent);
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: background-color .15s, border-color .15s;
}
a:hover, summary:hover { background: #f0f4f9; border-color: #b6c7da; }
a:focus-visible, summary:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #4780bd;
    outline-offset: 3px;
}
ul { list-style: none; padding-left: 0; }
li { padding: 10px; border-bottom: 1px solid var(--line); }
form { display: flex; flex-direction: column; gap: 12px; }
label { font-weight: 600; }
input, select, textarea {
    box-sizing: border-box;
    max-width: 100%;
    padding: 11px 13px;
    border: 1px solid #bac5d3;
    border-radius: 6px;
    background: white;
    color: var(--ink);
    font: inherit;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #718095; }
button {
    padding: 11px 18px;
    margin-top: 10px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button:disabled { opacity: .55; cursor: default; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 0 max(24px, calc((100vw - 1080px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav);
    color: #f6f8fb;
    border-bottom: 1px solid #31445f;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.02em;
}
.navbar-logo:hover { background: transparent; }
.logo-icon {
    padding: 7px 10px;
    border: 1px solid #526c8d;
    border-radius: 7px;
    background: #304965;
    color: white;
    font-size: 15px;
    letter-spacing: .02em;
}
.logo-text { color: #f6f8fb; }
.navbar-right { display: flex; align-items: center; gap: 24px; }
.home-button,
.back-button {
    margin: 0;
    padding: 8px 16px;
    border: 1px solid #52667f;
    border-radius: 6px;
    background: #2b3f59;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.back-button {
    cursor: pointer;
}

.home-button:hover,
.back-button:hover {
    background: #3a5270;
    border-color: #7d91ab;
}
.benachrichtigung { text-align: right; }
.glocke {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.glocke:hover { background: transparent; }
.glocke .benachrichtigungs-anzahl {
    position: absolute;
    top: -5px;
    right: -7px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ad433b;
    color: white;
    font-size: 10px;
    font-weight: bold;
    line-height: 16px;
}
.benachrichtigungs-fenster {
    position: fixed;
    top: 88px;
    right: 20px;
    left: auto;
    bottom: auto;
    box-sizing: border-box;
    width: 390px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    box-shadow: 0 12px 40px rgb(29 44 66 / 16%);
}
/* Bestaetigungsdialog (z. B. Person loeschen) - natives popover, vom Browser mittig platziert. */
.bestaetigungs-fenster {
    box-sizing: border-box;
    width: 440px;
    max-width: calc(100vw - 32px);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    box-shadow: 0 12px 40px rgb(29 44 66 / 16%);
}
.bestaetigungs-fenster::backdrop { background: rgb(29 44 66 / 35%); }
.bestaetigungs-fenster .fenster-buttons { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.bestaetigungs-fenster .fenster-buttons button { margin: 0; }
.gefahr-button { background: #a12d25; border-color: #a12d25; color: white; }
.gefahr-button:hover { background: #87241e; border-color: #87241e; }
.fenster-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fenster-kopf h2 { margin: 0; font-size: 1.1rem; }
.fenster-buttons { display: flex; align-items: center; gap: 8px; }
.schliessen, .einstellungen-button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}
.schliessen:hover, .einstellungen-button:hover { background: #edf1f6; }
.fehler { padding: 12px 16px; border: 1px solid #dfb0ab; border-radius: 6px; background: #fff2f0; color: #a12d25; }
.hinweis { padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: #f4f6f9; color: var(--muted); }
/* Interessen bei Person anlegen/bearbeiten: kompaktes Raster statt 20 Checkboxen untereinander. */
.interessen-auswahl { margin: 8px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; }
.interessen-auswahl legend { padding: 0 6px; font-weight: 600; }
.hinweis-klein { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.interessen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 16px; }
.interessen-raster .anlass-checkbox { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: normal; }
/* Personenliste: Name links, Geburtsdatum und Alter rechts im selben Link statt als zweite Textzeile. */
.personen-eintrag { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.personen-name { font-weight: 600; }
.personen-info { color: var(--muted); font-size: 14px; }
/* Weihnachtsstatus in der Glocke: Namenslisten nur aufklappbar, damit viele Personen die Glocke nicht fluten. */
.weihnachts-details summary { padding: 6px 10px; margin: 4px 0; font-size: 14px; }
.weihnachts-details p { margin: 6px 0; font-size: 14px; }
.debug-details { margin-top: 12px; }
.debug-details summary { cursor: pointer; font-weight: 600; }
.debug-details pre {
    margin-top: 8px;
    padding: 12px;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f4f6f9;
    font-family: monospace;
    font-size: 0.85rem;
}
.anlass-dialog {
    box-sizing: border-box;
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    margin: 32px auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    box-shadow: 0 12px 40px rgb(29 44 66 / 16%);
}
.anlass-dialog .anlass-checkbox { display: block; font-weight: normal; margin: 6px 0; }

/* Vorhandene Formular- und Listenklassen */
.ideen-formular { gap: .9rem; }
.ideen-formular label { font-weight: 600; }
.ideen-formular input, .ideen-formular select, .ideen-formular textarea { width: 100%; }
.ideen-formular input[type="url"], .ideen-formular select { height: 2.9rem; padding: 0 .7rem; }
.ideen-formular textarea { height: 6rem; padding: .7rem; resize: vertical; }
.ideen-formular button { width: fit-content; }
.ideen-liste { display: flex; flex-direction: column; gap: .6rem; list-style: none; padding: 0; }
.ideen-liste li { display: block; }
.ideen-liste-extras { display: flex; flex-wrap: wrap; gap: .8rem; margin: .2rem 0 .6rem; }
.ideen-liste-extras a { display: inline; padding: 0; margin: 0; border: none; border-radius: 0; background: transparent; text-decoration: underline; }
.gesamtliste-person { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.gesamtliste-drucken { margin-bottom: 16px; }

/* Startseite: ruhiger Kopfbereich, eine gemeinsame Übersicht mit vier Zeilen. */
.startseite { max-width: 1080px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.startseite > h1 { padding: 10px 0 32px; margin: 0 0 28px; border-bottom: 1px solid #d7dfe8; }
.startseite-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid #dce3eb;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 28px rgb(29 44 66 / 5%);
}
.startseite-karte {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 218px;
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 6px;
    align-content: center;
    padding: 30px 32px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: white;
}
.startseite-karte:last-child { border-bottom: 0; }
.startseite-karte::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background-color: #edf2f9;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px;
}
.startseite-karte:nth-child(2)::before { background-color: #edf5f3; }
.startseite-karte:nth-child(3)::before { background-color: #f5f0e8; }
.startseite-karte:nth-child(4)::before { background-color: #f0eef7; }
.startseite-karte h2 { grid-column: 2; grid-row: 1; margin: 0; font-size: 20px; letter-spacing: -.02em; }
.startseite-karte p { grid-column: 2; grid-row: 2; max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.startseite-aktionen { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; align-self: center; gap: 8px; }
.startseite-aktionen a {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d5dfea;
    border-radius: 6px;
    background: white;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.startseite-aktionen a:first-child { background: var(--accent); border-color: var(--accent); color: white; }
.startseite-aktionen a:hover { background: #edf2f9; border-color: #a3b9d2; }
.startseite-aktionen a:first-child:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

@media (max-width: 760px) {
    body { width: calc(100% - 32px); margin-top: 100px; }
    .page-container { padding: 24px; }
    .startseite { padding: 0; }
    .startseite-karte { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 24px; }
    .startseite-karte::before { width: 44px; height: 44px; background-size: 23px; }
    .startseite-aktionen { grid-column: 2; grid-row: 3; margin-top: 12px; align-items: stretch; }
    .startseite-karte p { max-width: none; }
    .navbar { padding: 0 20px; }
    .navbar-right { gap: 18px; }
}
@media (max-width: 440px) {
    .navbar { height: 68px; padding: 0 14px; }
    .navbar-logo { font-size: 13px; gap: 8px; }
    .logo-icon { padding: 6px; font-size: 12px; }
    .navbar-right { gap: 12px; }
    .home-button, .back-button { padding: 7px 9px; font-size: 12px; white-space: nowrap; }
    .page-container { padding: 18px; }
    .startseite { padding: 0; }
    .startseite > h1 { padding-bottom: 24px; margin-bottom: 22px; }
    .startseite-karte { padding: 22px 18px; column-gap: 12px; }
    .startseite-karte h2 { font-size: 18px; }
    .startseite-aktionen { grid-column: 1 / -1; }
    .startseite-aktionen a { padding: 11px; }
    .benachrichtigungs-fenster { top: 80px; }
}
/* Sehr schmale Handys: mit Zurück-Button passt der Schriftzug neben den Buttons nicht mehr. */
@media (max-width: 380px) {
    .logo-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { a, summary { transition: none; } }
@media print {
    .navbar, .gesamtliste-drucken { display: none; }
    body { width: 100%; max-width: none; margin: 0; background: white; color: black; }
    .page-container { margin: 0; padding: 0; border: none; box-shadow: none; }
    .startseite-menu { box-shadow: none; }
    .startseite-karte { break-inside: avoid; }
}

.startseite-karte:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23315c91%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2021v-3a6%206%200%200%201%2012%200v3M16%205a3%203%200%200%201%200%206M18%2015a5%205%200%200%201%203%205%22%2F%3E%3C%2Fsvg%3E"); }

.startseite-karte:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23397566%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%203v4M17%203v4M3%2011h18M7%2015h3M14%2015h3M7%2018h3%22%2F%3E%3C%2Fsvg%3E"); }

.startseite-karte:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2392713b%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%2218%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M5%2012v9h14v-9M12%208v13M12%208H8a3%203%200%201%201%203-3l1%203Zm0%200h4a3%203%200%201%200-3-3l-1%203Z%22%2F%3E%3C%2Fsvg%3E"); }

.startseite-karte:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2374628e%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%209h18M9%209v12M13%2013h4M13%2017h4%22%2F%3E%3C%2Fsvg%3E"); }

/* Geschenkideen: Formular, Auswahlfelder und gespeicherte Einträge. */
body:has(.ideen-formular) { max-width: 880px; }

.ideen-formular {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    row-gap: 12px;
    width: 100%;
    max-width: 880px;
    margin: 24px auto 38px;
    padding: 32px;
    border: 1px solid #dce3eb;
    border-top: 3px solid var(--accent);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 6px 24px rgb(29 44 66 / 5%);
}

.ideen-formular > * { grid-column: 1 / -1; min-width: 0; }
.ideen-formular label {
    margin: 8px 0 0;
    color: #35445a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}
.ideen-formular > label:first-child { margin-top: 0; }
.ideen-formular input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ideen-formular select,
.ideen-formular textarea {
    width: 100%;
    border: 1px solid #c8d2df;
    border-radius: 6px;
    background-color: #fbfcfe;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    box-shadow: inset 0 1px 2px rgb(29 44 66 / 2%);
}
.ideen-formular input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    min-height: 46px;
    padding: 10px 13px;
}
.ideen-formular select:not([multiple]) { min-height: 46px; padding: 0 12px; }
.ideen-formular textarea { min-height: 110px; height: 110px; padding: 12px 14px; resize: vertical; }
.ideen-formular input:hover, .ideen-formular select:hover, .ideen-formular textarea:hover { border-color: #97aac2; }
.ideen-formular input:focus, .ideen-formular select:focus, .ideen-formular textarea:focus {
    border-color: var(--accent);
    background-color: white;
}

/* Mehrfachauswahl erhält genügend Höhe; die native Bedienung bleibt bestehen. */
.ideen-formular select[multiple] {
    height: auto;
    min-height: 132px;
    padding: 6px;
    background-color: #fbfcfe;
}
.ideen-formular select[multiple] option { padding: 9px 12px; border-radius: 4px; }
.ideen-formular select[multiple] option:checked { background-color: #dce8f6; color: #234873; font-weight: 600; }

/* Checkboxen dürfen nicht die für Textfelder gesetzte volle Breite übernehmen. */
.ideen-formular input[type="checkbox"],
.ideen-formular input[type="radio"] {
    box-sizing: border-box;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
/* Unterstützt sowohl umschließende Labels als auch getrennte Label-Elemente. */
.ideen-formular label:has(input[type="checkbox"]),
.ideen-formular label:has(input[type="radio"]) {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    margin: 4px 0 0;
    border: 1px solid #e1e7ef;
    border-radius: 6px;
    background: #f5f7fa;
    font-weight: 500;
    cursor: pointer;
}
.ideen-formular label:has(input:checked) { background: #edf3fa; border-color: #bbcee3; }
.ideen-formular > input[type="checkbox"],
.ideen-formular > input[type="radio"] { grid-column: 1; margin-top: 7px; }
.ideen-formular > input[type="checkbox"] + label,
.ideen-formular > input[type="radio"] + label {
    grid-column: 2;
    margin: 3px 0 6px;
    font-weight: 500;
    cursor: pointer;
}
.ideen-formular button {
    justify-self: start;
    margin-top: 12px;
    min-height: 46px;
    padding: 11px 24px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgb(29 44 66 / 9%);
}
.ideen-liste { gap: 16px; margin-top: 20px; }
.ideen-liste > li {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 3px 12px rgb(29 44 66 / 3%);
    overflow-wrap: anywhere;
}
.ideen-liste > li > a { margin: 0; padding: 20px 22px; border: 0; border-radius: 8px; }
.ideen-liste > li > .ideen-liste-extras { margin: 0; padding: 0 22px 18px; font-size: 14px; }

@media (max-width: 600px) {
    .ideen-formular { padding: 22px 18px; margin-top: 20px; row-gap: 10px; }
    .ideen-formular label { font-size: 14px; }
    .ideen-formular input, .ideen-formular select, .ideen-formular textarea { font-size: 16px; }
    .ideen-formular button { width: 100%; justify-self: stretch; }
    .ideen-formular label:has(input[type="checkbox"]),
    .ideen-formular label:has(input[type="radio"]) { padding: 12px; }
}
@media print {
    .ideen-formular { box-shadow: none; }
    .ideen-liste > li { box-shadow: none; break-inside: avoid; }
}

/* Personenansicht und Geschenklisten: durchgängige Abstände und klare Hierarchie. */
body:has(.ideen-liste) { max-width: 880px; }

.ideen-liste {
    gap: 18px;
    margin: 20px 0 36px;
}
.ideen-liste > li {
    box-sizing: border-box;
    padding: 22px 24px;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    background: white;
    color: #526176;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: 0 4px 16px rgb(29 44 66 / 4%);
}
/* Der Titel erhält eine eigene Kopfzeile; alle Details haben dieselbe linke Kante. */
.ideen-liste > li > a:first-child {
    display: block;
    margin: 0 0 16px;
    padding: 0 0 15px;
    border: 0;
    border-bottom: 1px solid #e7ecf2;
    border-radius: 0;
    background: transparent;
    color: #294f7e;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
}
.ideen-liste > li > a:first-child:hover {
    color: #18385f;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.ideen-liste > li > p { margin: 10px 0; }
.ideen-liste > li > p strong,
.ideen-liste > li > p b { color: #293c54; font-weight: 650; }
.ideen-liste > li > .ideen-liste-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 15px 0 0;
    border-top: 1px solid #e7ecf2;
}
.ideen-liste-extras a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 36px;
    margin: 0;
    padding: 5px 13px;
    border: 1px solid #d6e0ec;
    border-radius: 5px;
    background: #f4f7fb;
    color: #315c91;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.ideen-liste-extras a:hover { background: #e8eff8; border-color: #adbed4; }

/* Abschnittsüberschriften von Seiten mit Geschenklisten. */
body:has(.ideen-liste) > h2,
.page-container:has(.ideen-liste) > h2 {
    margin: 36px 0 18px;
    color: #24364f;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.02em;
}

/* Anlass-Verweise bleiben normale Links mit unverändertem Ziel. */
body:has(.ideen-liste) a[href^="anlass-bearbeiten.php"],
body:has(.ideen-liste) a[href^="./anlass-bearbeiten.php"] {
    padding: 15px 18px;
    border: 1px solid #dce3eb;
    border-left: 3px solid #819bb9;
    border-radius: 7px;
    background: white;
    color: #354e70;
    font-size: 14px;
    line-height: 1.6;
}
body:has(.ideen-liste) a[href^="anlass-bearbeiten.php"]:hover,
body:has(.ideen-liste) a[href^="./anlass-bearbeiten.php"]:hover {
    border-color: #a8bbd1;
    background: #f0f4fa;
}
/* Rücknavigation wird als sekundäre Aktion dargestellt. */
body:has(.ideen-liste) > a[href="person-anzeigen.php"],
.page-container:has(.ideen-liste) > a[href="person-anzeigen.php"] {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    box-sizing: border-box;
    margin: 24px 0 0;
    padding: 9px 16px;
    border: 1px solid #cbd6e4;
    border-radius: 6px;
    background: white;
    color: #3d5677;
    font-size: 14px;
    font-weight: 600;
}
@media (max-width: 600px) {
    .ideen-liste > li { padding: 18px; }
    .ideen-liste > li > a:first-child { font-size: 16px; }
    .ideen-liste-extras a { min-height: 42px; padding: 8px 15px; }
}
@media print {
    .ideen-liste > li { box-shadow: none; break-inside: avoid; }
    .ideen-liste-extras a { background: white; }
}
