:root {
    --paper: #fffaf2;
    --ink: #293b35;
    --muted: #59655d;
    --coral: #b43d2c;
    --yellow: #f9ca55;
    --line: #dddcd0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #315cba; outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.preview { background: var(--ink); color: white; text-align: center; font-size: .78rem; padding: 8px; letter-spacing: .06em; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 29px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; font-size: 1.2rem; font-weight: 700; }
.brand b { color: var(--coral); }
.brand small { display: block; margin-top: 5px; font-size: .73rem; font-weight: 400; }
.brand-icon { font-size: 3rem; color: var(--coral); line-height: 1; }
.header-link { font-size: .88rem; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding-block: 68px 54px; align-items: center; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
h1 { font-size: clamp(2.7rem, 4.7vw, 4.7rem); line-height: 1.08; letter-spacing: -.055em; margin: 20px 0 24px; }
h1 span { color: var(--coral); }
.intro { font-size: 1.06rem; line-height: 1.8; max-width: 480px; color: var(--muted); }
.primary { background: var(--ink); color: white; padding: 16px 22px; display: inline-flex; gap: 32px; border-radius: 8px; margin-top: 15px; text-decoration: none; font-weight: 600; }
.hero-note { font-size: .77rem; margin-top: 20px; color: var(--muted); }
.illustration { height: 365px; position: relative; }
.circle { background: #f7e4b5; width: 320px; height: 320px; border-radius: 50%; position: absolute; top: 20px; left: 60px; }
.gift { position: absolute; left: 108px; top: 112px; width: 220px; height: 190px; background: #ef8269; border: 3px solid var(--ink); border-radius: 9px 9px 20px 20px; transform: rotate(-8deg); box-shadow: 7px 9px 0 #293b3522; }
.lid { position: absolute; top: -9px; left: -14px; width: 242px; height: 44px; background: #f59b83; border: 3px solid var(--ink); border-radius: 7px; }
.ribbon { position: absolute; top: -7px; bottom: 0; left: 87px; width: 37px; background: var(--yellow); border-inline: 3px solid var(--ink); }
.bow { position: absolute; top: -63px; width: 67px; height: 53px; border: 3px solid var(--ink); background: var(--yellow); }
.bow.left { left: 42px; border-radius: 50% 50% 0 50%; transform: rotate(14deg); }
.bow.right { left: 106px; border-radius: 50% 50% 50% 0; transform: rotate(-14deg); }
.face { position: absolute; bottom: 12px; right: 24px; font-size: 3.5rem; font-weight: 700; }
.sticker { position: absolute; right: 2px; top: 42px; background: #d5e7d8; border: 2px solid var(--ink); padding: 20px 25px; border-radius: 50%; font-size: .9rem; text-align: center; transform: rotate(12deg); }
.tag { position: absolute; left: 88px; bottom: 4px; background: white; border: 1px solid var(--ink); padding: 11px 18px; transform: rotate(4deg); font-size: .76rem; }
.spark { position: absolute; font-size: 3.7rem; }
.s1 { left: 7px; top: 12px; color: var(--coral); transform: rotate(10deg); }
.s2 { right: 10px; bottom: 50px; }.s3 { left: 23px; bottom: 39px; color: #b27919; }
.occasion { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.occasion > span { font-size: .86rem; font-weight: 700; margin-right: auto; }
.occasion button { background: transparent; padding: 10px 17px; border: 1px solid #b9beb2; border-radius: 30px; font-size: .84rem; }
.occasion button:hover { background: #f7e4b5; }
.collection { padding-block: 65px; scroll-margin-top: 20px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; line-height: 1.2; margin: 10px 0; }
.section-title > p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.categories button { background: #eeeee5; border: 1px solid transparent; padding: 11px 17px; border-radius: 6px; font-size: .84rem; }
.categories button[aria-pressed="true"] { background: var(--ink); color: white; }
.search-row { display: grid; grid-template-columns: 1fr 210px; gap: 20px; }
label { display: grid; gap: 9px; font-size: .81rem; font-weight: 650; }
input, select { min-width: 0; width: 100%; border: 1px solid #aeb6a8; background: #fffefb; padding: 14px; border-radius: 7px; color: var(--ink); font-weight: 400; }
.results-line { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-block: 17px; font-size: .8rem; color: var(--muted); }
.results-line button { border: 0; color: var(--coral); background: transparent; text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.card { border: 1px solid #d6d9cf; border-radius: 12px; overflow: hidden; background: #fffefb; display: flex; flex-direction: column; }
.card-art { padding: 20px 26px; height: 115px; display: flex; justify-content: space-between; align-items: center; background: #f8e4be; }
.card:nth-child(3n+2) .card-art { background: #dce9df; }.card:nth-child(3n) .card-art { background: #f4d7ce; }
.card-art span { font-size: 3rem; }.card-art small { font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.card-body { padding: 23px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.35; }
.card p { color: var(--muted); font-size: .88rem; line-height: 1.7; margin: 0 0 20px; }
.card button { text-align: left; color: var(--coral); font-weight: 700; font-size: .85rem; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; margin-top: auto; }
.more { display: block; margin: 32px auto 0; border: 1px solid var(--ink); border-radius: 7px; padding: 14px 25px; color: var(--ink); background: transparent; }
[hidden] { display: none !important; }
.closing { display: flex; gap: 40px; padding: 40px; border-radius: 15px; background: #f7e4b5; margin-bottom: 50px; }
.closing > span { font-size: 5rem; color: var(--coral); }
.closing p:last-child { line-height: 1.7; font-size: .9rem; }
footer { border-top: 1px solid var(--line); padding-block: 28px; display: flex; justify-content: space-between; gap: 25px; font-size: .78rem; }
footer p { margin: 0; line-height: 1.7; color: var(--muted); }
dialog { width: min(860px, calc(100% - 24px)); max-height: 90vh; overflow: auto; padding: clamp(20px,5vw,55px); background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 14px; }
dialog::backdrop { background: #1d302de0; }
.dialog-actions { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.dialog-actions button { padding: 10px; border: 1px solid var(--ink); border-radius: 6px; background: white; }
.original-note { font-size: .76rem; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
#article-text { font-size: 1.04rem; line-height: 1.8; overflow-wrap: anywhere; }
#article-text p { white-space: pre-wrap; }
@media (max-width: 850px) {
    .hero { gap: 10px; }.circle { width: 240px; height: 240px; left: 20px; }.gift { left: 42px; top: 85px; width: 195px; }.lid { width: 218px; }.sticker { right: 0; top: 0; padding: 13px; }.tag { left: 10px; bottom: 5px; }
    .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }.occasion > span { flex-basis: 100%; }
}
@media (max-width: 600px) {
    .wrap { width: calc(100% - 32px); }.header-link { display: none; }header { padding-block: 20px; }.brand { font-size: 1rem; }
    .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 20px; }.illustration { height: 290px; width: min(330px,100%); margin-inline: auto; }.circle { left: 32px; }.gift { left: 60px; top: 83px; height: 155px; }.tag { left: 32px; }.s1 { font-size: 2.8rem; }.s3 { bottom: 35px; }
    .occasion { gap: 8px; }.occasion button { padding: 9px 12px; }.collection { padding-top: 40px; }.section-title > p { display: none; }.search-row { grid-template-columns: 1fr; }.cards { grid-template-columns: 1fr; }
    .categories button { padding: 10px 13px; }.closing { gap: 16px; padding: 24px; }.closing > span { font-size: 2.5rem; }.closing h2 { font-size: 1.65rem; }footer { flex-direction: column; }
}

/* Gemeinsames Layout der PHP-Fassung. Der Artikeltext bleibt separat bearbeitbar. */
html { scroll-padding-top: 20px; }
.skip-link { position: absolute; left: 16px; top: -100px; background: white; padding: 12px; z-index: 20; }
.skip-link:focus { top: 10px; }
.site-header { padding-block: 22px; }
.header-actions { display: flex; gap: 20px; align-items: center; }
.search-link { font-size: .9rem; text-underline-offset: 5px; }
.menu-toggle { border: 1px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); padding: 10px 13px; }
.main-nav { padding-block: 16px; border-bottom: 1px solid var(--line); }
.main-nav ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 0; margin: 0; list-style: none; }
.main-nav a { display: block; padding: 8px 0; text-decoration: none; font-size: .88rem; font-weight: 650; }
.main-nav a[aria-current] { color: var(--coral); text-decoration: underline; text-underline-offset: 6px; }
.main-nav a:hover { color: var(--coral); }
@media (min-width: 1001px) {
    .main-nav > ul { padding-inline: 16px; }
}
.occasion a { text-decoration: none; border: 1px solid #b9beb2; border-radius: 25px; padding: 10px 17px; font-size: .84rem; }
.occasion a:hover { background: #f7e4b5; }
.section-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.section-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #f8efdf; text-decoration: none; }
.section-card:nth-child(2n) { background: #e8efe6; }
.section-card > span { font-size: 2.2rem; }
.section-card h3 { font-size: 1.1rem; line-height: 1.4; }
.section-card h2 { font-size: 1.5rem; }
.section-card p { line-height: 1.7; font-size: .87rem; color: var(--muted); }
.section-card:hover { border-color: var(--ink); }
.featured { padding-top: 0; }
.card-visual { display: flex; align-items: center; justify-content: center; position: relative; background: #f7e4b5; height: 210px; text-decoration: none; }
.card:nth-child(3n+2) .card-visual { background: #dce9df; }
.card:nth-child(3n) .card-visual { background: #f4d7ce; }
.card-visual img { width: 100%; height: 100%; object-fit: contain; padding: 14px 18px 37px; }
.card-visual small { position: absolute; bottom: 10px; left: 14px; background: #fffaf2ed; border-radius: 4px; font-size: .68rem; padding: 4px 8px; }
.card-symbol { font-size: 4rem; }
.card h3 a { text-decoration: none; }
.card-link { text-decoration: none; display: block; margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; font-size: .86rem; font-weight: 700; color: var(--coral); }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: start; gap: 16px; }
.breadcrumbs { margin-bottom: 36px; font-size: .8rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 7px; line-height: 1.7; }
.breadcrumbs li + li::before { content: '›'; margin-right: 7px; }
.listing, .article-layout { padding-top: 32px; padding-bottom: 60px; min-height: 55vh; }
.listing h1, .article h1 { font-size: clamp(2rem,4vw,3.3rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.listing .intro { max-width: 720px; }
.listing .categories { margin-top: 28px; }
.categories a { padding: 11px 17px; font-size: .84rem; background: #eeeee5; border-radius: 6px; text-decoration: none; }
.categories a[aria-current] { color: white; background: var(--ink); }
.filter-form { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto; gap: 14px; align-items: end; margin-block: 32px 22px; }
.filter-form button { border: 0; margin: 0; padding: 15px 18px; }
.result-status { font-size: .85rem; color: var(--muted); margin: 20px 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 35px; }
.pagination a { padding: 12px 17px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination [aria-current] { color: white; background: var(--ink); }
.article { max-width: 800px; margin-inline: auto; }
.article-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px; border-block: 1px solid var(--line); margin-top: 28px; font-size: .88rem; }
.article-tools button { border: 1px solid var(--ink); border-radius: 5px; padding: 10px 16px; background: transparent; color: var(--ink); }
.article-tags { list-style: none; padding: 0; margin: 24px 0 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.article-tags a { background: #e8efe6; border-radius: 15px; padding: 6px 13px; font-size: .78rem; text-decoration: none; }
.article-content { line-height: 1.85; font-size: 1.06rem; margin-top: 30px; overflow-wrap: anywhere; display: flow-root; }
.article-content h2 { margin-block: 38px 20px; font-size: 1.65rem; }
.article-content p { margin-block: 0 22px; }
.article-content li { margin-block: 5px; }
.article-content ul, .article-content ol { padding-left: 26px; }
.article-content a:not(.photo-link) { text-underline-offset: 4px; }
.photo-link { display: inline-block; max-width: 100%; margin: 12px 18px 18px 0; vertical-align: top; border-radius: 10px; border: 1px solid var(--line); padding: 8px; background: #fffefb; cursor: zoom-in; }
.photo-link img { display: block; max-width: 100%; width: auto; height: auto; max-height: 350px; object-fit: contain; border-radius: 6px; }
.photo-link::after { content: 'Bild vergrößern ↗'; display: block; font-size: .75rem; padding: 5px 2px 0; color: var(--coral); }
.article-figure { margin: 28px 0; }
.article-figure figcaption { color: var(--muted); font-size: .85rem; }
.original-article-link { display: inline-block; margin: 12px; }
.legacy-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: .95em; }
.legacy-table td, .legacy-table th { padding: 9px; border: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
.article-content img { max-width: 100%; height: auto; }
.related { padding-top: 50px; border-top: 1px solid var(--line); margin-top: 60px; }
.related h2 { margin-bottom: 28px; }
.photo-open { overflow: hidden; }
#bild-dialog { width: min(1100px,calc(100% - 24px)); max-height: 94vh; padding: 16px; background: var(--paper); border: 0; border-radius: 12px; }
#bild-dialog::backdrop { background: #16251eea; }
#bild-gross { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; margin-inline: auto; object-fit: contain; }
.lightbox-toolbar, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox-toolbar { margin-bottom: 15px; }
.lightbox-toolbar p { font-size: .86rem; margin: 0; }
.lightbox-controls { margin-top: 15px; font-size: .8rem; }
.lightbox-toolbar button, .lightbox-controls button { background: var(--ink); color: white; border: 0; border-radius: 6px; padding: 11px 14px; flex-shrink: 0; }
.lightbox-controls button:disabled { opacity: .45; }
@media (max-width: 1000px) {
    .main-nav { max-height: 65vh; overflow-y: auto; background: #f5eddf; padding: 15px; border-radius: 0 0 10px 10px; }
    .main-nav ul { display: block; }
    .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
    .section-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .site-header { flex-wrap: wrap; gap: 16px; }.header-actions { width: 100%; justify-content: space-between; }
    .hero { padding-block: 30px; }.hero h1 { font-size: clamp(2.4rem,9vw,3.2rem); }
    .section-grid, .filter-form { grid-template-columns: minmax(0,1fr); }.section-grid { gap: 12px; }
    .section-card { padding: 20px; }.section-card > span { float: right; margin-left: 12px; }
    .card-visual { height: 220px; }.section-title { align-items: start; flex-direction: column; }
    .article-content { font-size: 1rem; }.article-tools { gap: 10px; }.article-tools button { padding: 10px; }
    .photo-link { margin-right: 0; }.lightbox-controls button { padding: 10px 8px; font-size: .75rem; }
    .lightbox-toolbar { align-items: start; }.lightbox-toolbar p { overflow-wrap: anywhere; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Gemeinsames Artikellayout mit Ideenspalte. */
.article-layout--sidebar .article-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: start;
}
.article-layout--sidebar .article {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}
.article-layout--sidebar .article-content {
    line-height: 1.85;
}
.article-layout--sidebar .article-sidebar {
    position: sticky;
    top: 24px;
    border-left: 1px solid var(--line);
    padding: 4px 0 4px 26px;
}
.article-layout--sidebar .article-sidebar h2 {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: .02em;
    margin: 0 0 24px;
}
.article-layout--sidebar .article-sidebar h2 a {
    color: inherit;
    text-decoration: none;
}
.article-layout--sidebar .sidebar-category {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}
.article-layout--sidebar .sidebar-intro {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.6;
}
.article-layout--sidebar .sidebar-ideas {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}
.article-layout--sidebar .sidebar-ideas li {
    margin: 0 0 22px;
}
.article-layout--sidebar .sidebar-ideas a {
    display: block;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.article-layout--sidebar .sidebar-ideas a:hover {
    color: var(--coral);
}
.article-layout--sidebar .sidebar-ideas img {
    width: 54px;
    height: 64px;
    object-fit: contain;
}
.article-layout--sidebar .sidebar-ideas small {
    display: block;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 400;
    margin-top: 5px;
}
.article-layout--sidebar .sidebar-symbol {
    font-size: 2rem;
    color: var(--coral);
    text-align: center;
}
.article-layout--sidebar .sidebar-all {
    display: block;
    font-size: .83rem;
    line-height: 1.7;
    text-underline-offset: 4px;
    margin-top: 30px;
}
.article-layout--sidebar .article-photo {
    width: 220px;
    max-width: 40%;
    margin: 0 0 22px;
}
.article-layout--sidebar .article-photo--right {
    float: right;
    margin-left: 30px;
}
.article-layout--sidebar .article-photo .photo-link {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}
.article-layout--sidebar .article-photo .photo-link img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 8px;
}
.article-layout--sidebar .article-photo figcaption {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 5px;
}
.article-layout--sidebar .article-photo--slim {
    width: 102px;
    margin-right: 16px;
}
.article-layout--sidebar .article-photo--slim .photo-link img {
    width: auto;
    max-width: 100%;
    height: 140px;
    max-height: 140px;
    margin-inline: auto;
}
.article-layout--sidebar .article-panel {
    clear: both;
    display: flow-root;
    margin: 28px 0;
    padding: 26px 30px;
    border-radius: 10px;
}
.article-layout--sidebar .article-panel--sage {
    background: #e7eee3;
}
.article-layout--sidebar .article-panel--poem {
    border-left: 2px solid #d6aa45;
    border-radius: 0;
    padding: 0 0 0 26px;
}
.article-layout--sidebar .article-panel--tips {
    background: #f0eee5;
}
.article-layout--sidebar .article-panel .panel-label {
    margin: 0 0 16px;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.article-layout--sidebar .article-panel--poem .panel-label {
    display: inline-block;
    background: #fbefcf;
    border-radius: 3px;
    padding: 7px 12px;
    margin-bottom: 22px;
}
.article-end-tools {
    clear: both;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.article-end-tools button {
    color: var(--ink);
    background: transparent;
    border: 1px solid #aeb6a8;
    border-radius: 5px;
    padding: 11px 18px;
}
.article-layout--sidebar .article-panel > :last-child {
    margin-bottom: 0;
}
.article-layout--sidebar .article-panel ul {
    margin: 0;
}
.article-layout--sidebar .article-content h2 {
    clear: both;
}
.article-layout--sidebar .article-alternative {
    clear: both;
    padding-top: 15px;
    font-size: .85rem;
}
@media (max-width: 1050px) {
    .article-layout--sidebar .article-columns {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 28px;
    }
    .article-layout--sidebar .article-sidebar { padding-left: 22px; }
}
@media (max-width: 900px) {
    .article-layout--sidebar .article-columns { grid-template-columns: minmax(0, 1fr); }
    .article-layout--sidebar .article-sidebar { position: static; margin-top: 16px; border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
    .article-layout--sidebar .sidebar-ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 600px) {
    .article-layout--sidebar .article-photo,
    .article-layout--sidebar .article-photo--right {
        float: none;
        width: 190px;
        max-width: 100%;
        margin: 0 0 24px;
    }
    .article-layout--sidebar .article-photo--slim { width: 102px; }
    .article-layout--sidebar .sidebar-ideas { display: block; }
    .article-layout--sidebar .article-panel { padding: 20px; }
    .article-layout--sidebar .article-panel--poem { padding: 0 0 0 16px; }
}
@media (max-height: 700px) {
    .article-layout--sidebar .article-sidebar { position: static; }
}
