/* attractively: Pastell, Pinselstriche und eine elegante Serifenschrift. Kein Build-Schritt, keine externen Anfragen. */

@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-roman.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-italic.woff2") format("woff2"); font-style: italic; font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-medium.woff2") format("woff2"); font-style: normal; font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-bold.woff2") format("woff2"); font-style: normal; font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("../fonts/kaushan-script.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
    --cream: #fff7f5;
    --rose-soft: #fbe0e8;
    --rose: #f5b5c8;
    --rose-strong: #f8bdd0;
    --lilac: #e6dcf7;
    --lilac-strong: #dcd0f3;
    --peach: #ffd9c7;
    --mint: #cfebdd;
    --ink: #3a2833;
    --ink-2: #6e5a66;
    --accent: #a63b6b;
    --white: #ffffff;
    --serif: "EB Garamond", Georgia, "Times New Roman", serif;
    --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --script: "Kaushan Script", "Brush Script MT", cursive;
    --shadow: 0 16px 36px rgba(120, 70, 100, 0.16);
    --shadow-lg: 0 30px 60px rgba(120, 70, 100, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

.at-sr, .at-skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.at-skip:focus { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: var(--cream); }
.at-muted { color: var(--ink-2); }
em { font-style: italic; }

.at-page { position: relative; overflow: hidden; }
.at-backdrop { position: absolute; left: 0; top: 0; width: 100%; height: 900px; pointer-events: none; }
.at-wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Wortmarke und Logo */
.at-wordmark { font-family: var(--script); font-size: 34px; line-height: 1; letter-spacing: 0.005em; color: var(--ink); white-space: nowrap; }
.at-wordmark-footer { font-size: 38px; }
.at-logo { height: 50px; width: auto; max-width: min(260px, 52vw); }

/* Kopfzeile */
.at-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 32px 0 8px; position: relative; }
.at-brand { display: flex; align-items: center; margin-right: auto; }
.at-nav { display: flex; flex-wrap: wrap; gap: 4px; font-weight: 600; font-size: 16px; }
.at-nav-link { padding: 12px 16px; border-radius: 24px; }
.at-nav-link:hover, .at-nav-link.is-current { background: var(--rose-soft); }
.at-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
    border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.at-burger { display: none; background: var(--ink); color: var(--cream); }

/* Buttons und Chips */
.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 30px; border-radius: 30px; border: 1.5px solid transparent; font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .25s ease; }
.at-btn:hover { transform: translateY(-3px); }
.at-btn-primary { background: var(--ink); color: var(--cream); }
.at-btn-outline { border-color: var(--ink); }
.at-btn-ghost { background: var(--white); border-color: var(--rose-soft); }
.at-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.at-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.at-chip { display: inline-block; padding: 7px 16px; border-radius: 6px 18px 8px 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.at-chip-rose { background: var(--rose-soft); }
.at-chip-lilac { background: var(--lilac); border-radius: 16px 8px 18px 6px; }
.at-eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.at-eyebrow-lilac { color: #5a3f79; }
.at-eyebrow-chip { display: inline-flex; padding: 9px 18px; border-radius: 22px; background: var(--lilac); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }

/* Überschriften */
.at-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.02em; }
.at-h3-display { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.1; }
.at-title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.at-lead { font-size: 21px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.at-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 34px; }
.at-section { padding-top: 20px; padding-bottom: 60px; }

/* Pinselstrich-Übergänge */
.at-edge { position: relative; height: 80px; background: var(--from, transparent); }
.at-edge svg { position: absolute; left: 0; top: 0; width: 100%; height: 80px; overflow: visible; }
.at-edge path { fill: var(--to, var(--cream)); }
.from-rose { --from: var(--rose-soft); } .from-lilac { --from: var(--lilac); } .from-peach { --from: var(--peach); } .from-page { --from: transparent; }
.to-rose { --to: var(--rose-soft); } .to-lilac { --to: var(--lilac); } .to-peach { --to: var(--peach); } .to-page { --to: var(--cream); }
.at-band { position: relative; padding: 10px 0 100px; }
.at-band-rose { background: var(--rose-soft); }
.at-band-lilac { background: var(--lilac); }
main:has(> .at-band-rose:last-child) + .at-edge { --from: var(--rose-soft); }
main:has(> .at-band-lilac:last-child) + .at-edge { --from: var(--lilac); }

@keyframes at-paint-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.at-paint-in { animation: at-paint-in 1.2s cubic-bezier(.3,.7,.2,1) both; }
.at-paint-in-2 { animation: at-paint-in 1.4s .25s cubic-bezier(.3,.7,.2,1) both; }
.at-paint-in-3 { animation: at-paint-in 1.3s .5s cubic-bezier(.3,.7,.2,1) both; }

/* Startseite: Einstieg */
.at-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding: 56px 0 90px; }
.at-hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.at-hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.025em; }
.at-highlight { position: relative; display: inline-block; font-style: italic; z-index: 0; white-space: nowrap; }
.at-highlight svg { position: absolute; left: -16px; top: 30%; width: calc(100% + 32px); height: 62%; z-index: -1; overflow: visible; }
.at-hero-media { position: relative; flex: 1 1 440px; min-width: 300px; max-width: 520px; margin: 0 auto; aspect-ratio: 0.86; }
.at-hero-brush { position: absolute; inset: -2% -6% 0 -2%; width: 108%; height: 102%; overflow: visible; transform: rotate(2.5deg); }
.at-hero-brush2 { position: absolute; left: -10%; bottom: -3%; width: 54%; height: 26%; overflow: visible; transform: rotate(-5deg); }
.at-hero-frame { position: absolute; left: 4%; right: 4%; top: 3%; bottom: 3%; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--rose-soft); }
.at-hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.at-hero-news { position: absolute; left: -2%; bottom: -2%; width: 70%; display: flex; align-items: center; padding: 14px 20px; border-radius: 26px; background: rgba(255, 247, 245, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(120, 70, 100, 0.22); transition: transform .25s ease; }
.at-hero-news:hover { transform: translateY(-5px); }
.at-hero-news-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.at-hero-news-title { font-family: var(--serif); font-size: 19px; line-height: 1.15; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Themen */
.at-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.at-theme { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 24px; border-radius: 30px; overflow: hidden; background: var(--cream); transition: transform .25s ease; }
.at-theme:hover { transform: translateY(-6px); }
.at-theme svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.at-theme path { fill: var(--rose); }
.at-theme-1 path { fill: var(--lilac-strong); } .at-theme-2 path { fill: var(--mint); } .at-theme-3 path { fill: var(--peach); } .at-theme-4 path { fill: var(--rose-strong); }
.at-theme-name, .at-theme-text { position: relative; }
.at-theme-name { font-family: var(--serif); font-size: 30px; line-height: 1.05; font-weight: 500; }
.at-theme-text { margin-top: 6px; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Karten und Raster */
.at-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 40px 28px; }
.at-card { display: flex; flex-direction: column; gap: 18px; transition: transform .25s ease; }
.at-card:hover { transform: translateY(-6px); }
.at-card-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: var(--rose-soft); box-shadow: var(--shadow); }
.at-card-media img, .at-card-empty { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.at-card-empty { background: linear-gradient(160deg, var(--rose-soft), var(--lilac)); }
.at-card-media .at-chip { position: absolute; left: 14px; top: 14px; }
.at-card-body { display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
.at-card-date { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.at-card-title { font-family: var(--serif); font-size: 28px; line-height: 1.12; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.at-band .at-h2 { margin-bottom: 34px; }
.at-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; }
.at-empty { padding: 40px; text-align: center; color: var(--ink-2); }

/* FAQ */
.at-faq { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.at-faq-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.at-faq-intro p { color: #4d3a55; max-width: 400px; }
.at-faq-list { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.at-faq-item { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 26px; background: var(--cream); box-shadow: 0 10px 26px rgba(90, 63, 121, 0.12); transition: transform .25s ease; }
.at-faq-item:hover { transform: translateY(-4px); }
.at-faq-q { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-size: 24px; line-height: 1.18; font-weight: 500; }
.at-faq-go { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--rose-strong); display: flex; align-items: center; justify-content: center; }
.at-faqbox { margin: 56px 0 0; padding: 32px; border-radius: 30px; background: var(--rose-soft); display: flex; flex-direction: column; gap: 16px; max-width: 940px; margin-left: auto; margin-right: auto; }

/* Beitrag */
.at-article-head { max-width: 940px; margin: 0 auto; padding: 56px 0 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.at-crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.at-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.at-byline { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.at-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--rose-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--script); font-size: 24px; color: var(--ink); }
.at-avatar img { width: 100%; height: 100%; object-fit: cover; }
.at-byline-text { display: flex; flex-direction: column; line-height: 1.3; }
.at-byline-text b { color: var(--ink); font-weight: 700; }
.at-cover { position: relative; max-width: 1040px; margin: 0 auto 70px; }
.at-cover-brush { position: absolute; inset: -4% -3% -5% -2%; width: 105%; height: 109%; overflow: visible; transform: rotate(-1.2deg); }
.at-cover-brush path { fill: var(--lilac-strong); }
.at-cover img { position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); }
.at-cover figcaption { position: relative; margin-top: 12px; font-size: 14px; color: var(--ink-2); text-align: center; }
.at-article-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; max-width: 1040px; margin: 0 auto; align-items: flex-start; }
.at-article-main { flex: 1 1 560px; min-width: 0; max-width: 720px; }
.at-summary { margin: 0 0 36px; padding: 28px 32px 30px; border-radius: 28px; background: var(--lilac); }
.at-summary p { margin-top: 8px; font-size: 18px; line-height: 1.6; }
.at-toc { flex: 1 1 240px; max-width: 280px; min-width: 220px; padding: 26px 26px 28px; border-radius: 28px; background: var(--white); box-shadow: 0 14px 34px rgba(120, 70, 100, 0.12); position: sticky; top: 24px; }
.at-toc[hidden] { display: none; }
.at-toc nav { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.at-toc a { position: relative; padding-left: 14px; color: var(--ink-2); }
.at-toc a::before { content: ""; position: absolute; left: 0; top: 3px; width: 5px; height: 18px; border-radius: 3px; background: var(--lilac); }
.at-toc a:hover, .at-toc a.is-active { color: var(--ink); }
.at-toc a.is-active::before { background: var(--rose); }
.at-toc a.is-sub { padding-left: 26px; font-weight: 600; font-size: 15px; }
.at-toc a.is-sub::before { left: 12px; }

/* Beitragstext */
.at-content { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.at-content > *:first-child { margin-top: 0; }
.at-content p { margin: 0 0 1.2em; }
.at-content h2 { margin: 1.6em 0 0.5em; font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.1; letter-spacing: -0.015em; scroll-margin-top: 24px; }
.at-content h3 { margin: 1.4em 0 0.4em; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; scroll-margin-top: 24px; }
.at-content h4 { margin: 1.2em 0 0.3em; font-weight: 800; font-size: 18px; }
.at-content a { text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.at-content a:hover { text-decoration-color: var(--accent); }
.at-content ul, .at-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.at-content li { margin: 0.35em 0; }
.at-content li::marker { color: var(--accent); }
.at-content blockquote { margin: 1.6em 0; padding: 22px 28px; border-radius: 24px; background: var(--rose-soft); font-family: var(--serif); font-size: 24px; line-height: 1.4; }
.at-content blockquote p:last-child { margin-bottom: 0; }
.at-content img, .at-content video { border-radius: 24px; box-shadow: var(--shadow); margin: 1.2em 0; }
.at-content figure { margin: 1.6em 0; }
.at-content figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); text-align: center; }
.at-content hr { border: 0; height: 14px; margin: 2.4em 0; background: radial-gradient(circle, var(--rose) 0 5px, transparent 6px) center / 36px 14px repeat-x; }
.at-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.at-content th, .at-content td { padding: 12px 16px; border-bottom: 1px solid var(--rose-soft); text-align: left; vertical-align: top; }
.at-content th { background: var(--rose-soft); font-weight: 800; }
.at-content pre, .at-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.at-content code { padding: 2px 6px; border-radius: 6px; background: var(--rose-soft); }
.at-content pre { padding: 18px 20px; border-radius: 18px; background: var(--ink); color: var(--cream); overflow-x: auto; }
.at-content pre code { background: none; padding: 0; }
.at-content .kg-width-wide { margin-left: -40px; margin-right: -40px; }
.at-content .kg-width-full { margin-left: -64px; margin-right: -64px; }
.at-content .kg-width-full img { border-radius: 0; }
.at-content .ki-widget { margin: 1.6em 0 !important; padding: 18px 24px !important; border: 0 !important; border-radius: 24px !important; background: var(--lilac) !important; color: var(--ink) !important; font-size: 0.9em !important; line-height: 1.6 !important; }
.at-content .ki-widget > p:first-child, .at-content .ki-widget-details > summary { color: var(--ink) !important; font-weight: 800; }
.at-content .ki-widget-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.at-content .ki-widget-details > summary::-webkit-details-marker { display: none; }
.at-content .ki-widget-details > summary::after { content: "Details anzeigen"; flex: 0 0 auto; color: var(--accent); font-size: 0.9em; }
.at-content .ki-widget-details[open] > summary::after { content: "Schließen"; }
.at-content .ki-widget-details-content { margin-top: 10px; }

/* Listen, Seiten, Fehler */
.at-listing-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 56px 0 24px; max-width: 940px; }
.at-simple { max-width: 800px; margin: 0 auto; padding: 56px 0 80px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.at-simple .at-content { width: 100%; }
.at-simple-image { border-radius: 28px; width: 100%; }

/* Fuß */
.at-footer { position: relative; background: var(--peach); padding: 20px 0 56px; }
.at-footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; }
.at-footer-brand { display: flex; flex-direction: column; gap: 10px; margin-right: auto; max-width: 380px; font-size: 15px; color: #4d3a35; }
.at-footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; }
.at-footer-note { margin-top: 36px; font-size: 14px; color: #4d3a35; }

/* Schmale Bildschirme */
@media (max-width: 960px) {
    .at-toc { position: static; max-width: none; flex-basis: 100%; }
    .at-article-layout { max-width: 720px; }
    .at-content .kg-width-wide, .at-content .kg-width-full { margin-left: 0; margin-right: 0; }
}

@media (max-width: 820px) {
    .at-header { padding-top: 16px; }
    .at-nav { display: none; flex-basis: 100%; order: 5; flex-direction: column; padding: 8px 0 12px; }
    .at-nav.is-open { display: flex; }
    .at-nav-link { padding: 14px 16px; }
    .at-burger { display: inline-flex; }
    .at-hero { padding: 32px 0 60px; }
    .at-edge, .at-edge svg { height: 56px; }
    .at-band { padding-bottom: 64px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .at-wrap { padding: 0 16px; }
    .at-wordmark { font-size: 28px; }
    .at-logo { height: 40px; }
    .at-title { font-size: 38px; }
    .at-lead { font-size: 18px; }
    .at-content { font-size: 17px; }
    .at-content h2 { font-size: 34px; }
    .at-content h3 { font-size: 25px; }
    .at-card-title { font-size: 26px; }
    .at-faq-q { font-size: 21px; }
    .at-hero-news { width: 82%; }
    .at-faqbox, .at-summary { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .at-paint-in, .at-paint-in-2, .at-paint-in-3 { animation: none; }
    .at-btn, .at-card, .at-theme, .at-faq-item, .at-hero-news { transition: none; }
    .at-btn:hover, .at-card:hover, .at-theme:hover, .at-faq-item:hover, .at-hero-news:hover { transform: none; }
}
