/*
Theme Name: Herzensfunken – Weil es dich gibt
Theme URI: https://weil-es-dich-gibt.com/
Author: OpenAI
Description: Ein eigenständiges, minimalistisches und verspieltes WordPress-Theme für Sprüche, Gedichte, Geschichten und Märchen. Enthält ein responsives Off-Canvas-Menü mit nebeneinanderliegenden Menü-/Shop-Tabs.
Version: 1.4.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: herzensfunken
*/
:root {
  --hf-ink: #292536;
  --hf-muted: #77717e;
  --hf-paper: #fffdf9;
  --hf-soft: #f6f0ed;
  --hf-accent: #c9536a;
  --hf-gold: #c9a84c;
  --hf-line: #e9e1df;
  --hf-radius: 22px;
  --hf-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--hf-ink); background: var(--hf-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.75;
}
a { color: var(--hf-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hf-ink); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, .button, input[type=submit] {
  cursor: pointer; border: 0; border-radius: 999px; padding: .8rem 1.25rem;
  background: var(--hf-accent); color: white; font-weight: 700;
}
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--hf-gold); outline-offset: 3px; }
.hf-wrap { width: min(calc(100% - 40px), var(--hf-width)); margin-inline: auto; }
.site-header { position: relative; z-index: 20; background: var(--hf-paper); border-bottom: 1px solid var(--hf-line); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.site-branding { min-width: 150px; }
.site-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.15; font-weight: 700; letter-spacing: -.04em; margin: 0; }
.site-title a { color: var(--hf-ink); text-decoration: none; }
.site-description { margin: 4px 0 0; color: var(--hf-muted); font-size: .8rem; }
.custom-logo { max-height: 70px; width: auto; }
.desktop-navigation { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.desktop-navigation .menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.desktop-navigation .menu > li { position: relative; }
.desktop-navigation .menu li ul { display: none; position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 230px; max-width: min(340px, 80vw); max-height: 70vh; overflow-y: auto; padding: 10px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--hf-line); border-radius: 14px; box-shadow: 0 16px 45px #29253620; }
.desktop-navigation .menu li:hover > ul, .desktop-navigation .menu li:focus-within > ul { display: block; }
.desktop-navigation .menu li ul li { display: block; }
.desktop-navigation .menu li ul a { display: block; padding: 8px 11px; border-radius: 8px; white-space: normal; }
.desktop-navigation .menu li ul a:hover { background: var(--hf-soft); }
.desktop-navigation a { text-decoration: none; color: var(--hf-ink); font-weight: 650; font-size: .93rem; }
.desktop-navigation a:hover { color: var(--hf-accent); }
.shop-nav { border-top: 1px solid var(--hf-line); padding-top: 5px; width: 100%; }
.shop-nav .menu { gap: 4px 14px; }
.shop-nav a { font-size: .82rem; color: var(--hf-muted); }
.mobile-menu-trigger { display: none; background: var(--hf-ink); padding: .65rem .95rem; }
.hf-mobile-panel, .hf-menu-backdrop { display: none; }
.site-main { min-height: 55vh; }
.home-intro { padding: clamp(46px, 8vw, 100px) 0 58px; overflow: hidden; }
.intro-inner { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.intro-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--hf-accent); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; }
.eyebrow:before { content: "✳"; font-size: 1.2rem; }
.home-intro h1 { font: 700 clamp(2.7rem, 6.5vw, 5.7rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.065em; margin: 20px 0; max-width: 750px; }
.home-intro h1 em { color: var(--hf-accent); font-weight: 500; }
.intro-text { max-width: 600px; color: var(--hf-muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button.button-ghost { background: transparent; color: var(--hf-ink); border: 1px solid var(--hf-line); }
.intro-art { min-height: 340px; position: relative; display: grid; place-items: center; }
.intro-art:before { content: ""; position: absolute; width: min(95%, 440px); aspect-ratio: 1; background: var(--hf-soft); border-radius: 46% 54% 62% 38% / 44% 40% 60% 56%; transform: rotate(-8deg); }
.intro-art:after { content: "♡"; position: absolute; right: 6%; top: 0; color: var(--hf-accent); font: 100px/1 Georgia,serif; transform: rotate(14deg); }
.art-note { position: relative; width: min(82%, 360px); background: white; border: 1px solid var(--hf-line); border-radius: 8px 26px 8px 26px; padding: 34px 28px; box-shadow: 0 20px 60px #29253612; transform: rotate(3deg); text-align: center; }
.art-note .scribble { display: block; color: var(--hf-gold); font-size: 2rem; line-height: 1; }
.art-note p { font: italic 1.7rem/1.3 Georgia,serif; margin: 14px 0; }
.art-note small { color: var(--hf-muted); letter-spacing: .08em; font-size: .7rem; text-transform: uppercase; }
.section { padding: 54px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font: 700 clamp(1.9rem, 4vw, 3.1rem)/1.05 Georgia,serif; letter-spacing: -.045em; }
.section-heading p { margin: 7px 0 0; color: var(--hf-muted); }
.topic-grid, .post-grid, .book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.topic-card { min-height: 205px; padding: 27px; border: 1px solid var(--hf-line); border-radius: var(--hf-radius); background: white; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:nth-child(3n+2) { background: var(--hf-soft); }
.topic-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 16px 40px #29253612; }
.topic-symbol { font-size: 1.7rem; display: block; margin-bottom: 14px; }
.topic-card h3 { margin: 0 0 8px; font: 700 1.55rem/1.15 Georgia,serif; }
.topic-card p { color: var(--hf-muted); margin: 0; font-size: .95rem; }
.topic-card a { color: inherit; text-decoration: none; }
.post-card { overflow: hidden; background: white; border: 1px solid var(--hf-line); border-radius: var(--hf-radius); transition: transform .2s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-card .thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--hf-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .thumb img { transform: scale(1.035); }
.post-card-body { padding: 22px; }
.post-meta { color: var(--hf-muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.post-card h3 { margin: 8px 0; font: 700 1.45rem/1.2 Georgia,serif; }
.post-card h3 a { color: var(--hf-ink); text-decoration: none; }
.post-card p { color: var(--hf-muted); margin: 0; font-size: .95rem; }
.daily-thought { background: var(--hf-ink); color: white; border-radius: 30px; padding: clamp(30px, 6vw, 70px); position: relative; overflow: hidden; }
.daily-thought:after { content: "✳"; position: absolute; right: 3%; bottom: -100px; color: #ffffff12; font-size: 300px; line-height: 1; }
.daily-thought .eyebrow { color: #f0d98c; }
.daily-thought blockquote { margin: 20px 0 10px; max-width: 850px; font: italic clamp(1.8rem, 4.6vw, 3.8rem)/1.15 Georgia,serif; letter-spacing: -.035em; }
.daily-thought cite { color: #e6dfe9; font-style: normal; }
.entry-header { padding: 54px 0 25px; }
.entry-header h1 { font: 700 clamp(2.4rem, 5.6vw, 4.6rem)/1.05 Georgia,serif; letter-spacing: -.055em; margin: 10px 0; }
.entry-hero { max-height: 620px; overflow: hidden; border-radius: 28px; background: var(--hf-soft); margin: 20px auto 42px; }
.entry-hero img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.entry-content { max-width: 780px; margin: 0 auto; padding: 0 20px 70px; font-size: 1.08rem; }
.entry-content h2, .entry-content h3 { font-family: Georgia,serif; line-height: 1.2; }
.entry-content blockquote { border-left: 4px solid var(--hf-accent); margin: 1.8em 0; padding: .4em 0 .4em 1.2em; font: italic 1.5rem/1.45 Georgia,serif; }
.entry-content figure { margin: 2rem 0; }
.archive-header { padding: 60px 0 30px; }
.archive-header h1 { font: 700 clamp(2.5rem, 5vw, 4.5rem)/1.05 Georgia,serif; margin: 0; letter-spacing: -.05em; }
.archive-header p { color: var(--hf-muted); max-width: 680px; }
.pagination { padding: 40px 0 70px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--hf-line); border-radius: 99px; text-decoration: none; }
.pagination .current { background: var(--hf-ink); color: white; }
.site-footer { background: var(--hf-ink); color: #f8f4f3; padding: 56px 0 22px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2, .site-footer h3 { font-family: Georgia,serif; color: white; margin-top: 0; }
.site-footer a { color: #f4d9df; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 5px 0; }
.footer-bottom { border-top: 1px solid #ffffff24; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 15px; color: #c9c2ce; font-size: .82rem; }
.site-footer .widget { margin-bottom: 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .desktop-navigation { display: none; }
  .mobile-menu-trigger { display: inline-flex; align-items: center; gap: 8px; }
  .header-inner { min-height: 78px; }
  .intro-inner { grid-template-columns: 1fr; }
  .intro-art { min-height: 280px; }
  .topic-grid, .post-grid, .book-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hf-mobile-panel { display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002; width: min(88vw, 430px); max-width: 100%; overflow-x: hidden; background: var(--hf-paper); transform: translateX(105%); transition: transform .28s ease; flex-direction: column; box-shadow: -20px 0 60px #17131d22; }
  body.hf-menu-open .hf-mobile-panel { transform: translateX(0); }
  .hf-menu-backdrop { display: block; position: fixed; inset: 0; background: #17131d80; opacity: 0; pointer-events: none; z-index: 1001; transition: opacity .2s; }
  body.hf-menu-open .hf-menu-backdrop { opacity: 1; pointer-events: auto; }
  .mobile-panel-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 12px; }
  .mobile-panel-title { font: 700 1.45rem Georgia,serif; }
  .mobile-close { background: transparent; color: var(--hf-ink); border: 1px solid var(--hf-line); padding: 5px 13px; font-size: 1.5rem; }
  .mobile-tabs { display: flex; border-bottom: 1px solid var(--hf-line); }
  .mobile-tab { flex: 1; border-radius: 0; background: #f3efed; color: var(--hf-muted); padding: 16px 8px; border-bottom: 4px solid transparent; }
  .mobile-tab[aria-selected="true"] { background: white; color: var(--hf-ink); border-bottom-color: var(--hf-accent); }
  .mobile-tab[hidden] { display: none; }
  .mobile-menu-content { overflow-y: auto; padding: 12px 20px 35px; }
  .mobile-menu-content[hidden] { display: none; }
  .mobile-menu-content .menu { list-style: none; padding: 0; margin: 0; }
  .mobile-menu-content .menu li { border-bottom: 1px solid var(--hf-line); }
  .mobile-menu-content .menu a { display: block; padding: 14px 4px; color: var(--hf-ink); text-decoration: none; font-weight: 650; }
  .mobile-menu-content .menu a:after { content: "↗"; float: right; color: var(--hf-accent); }
  .mobile-search { display: flex; gap: 8px; padding: 15px 20px; border-bottom: 1px solid var(--hf-line); }
  .mobile-search input { min-width: 0; flex: 1; border: 1px solid var(--hf-line); border-radius: 12px; padding: 10px 12px; }
}
@media (max-width: 580px) {
  .hf-wrap { width: min(calc(100% - 28px), var(--hf-width)); }
  .site-description { display: none; }
  .site-title { max-width: 190px; }
  .home-intro { padding-top: 42px; }
  .home-intro h1 { font-size: clamp(2.7rem, 14vw, 4.1rem); }
  .intro-art { min-height: 240px; }
  .art-note { padding: 25px 18px; }
  .art-note p { font-size: 1.4rem; }
  .topic-grid, .post-grid, .book-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }


/* Relaunch refinements: keep menus within the viewport and tame long labels. */
html, body { max-width: 100%; overflow-x: clip; }
.desktop-navigation { min-width: 0; }
.desktop-navigation .menu li { min-width: 0; }
.desktop-navigation .menu a { overflow-wrap: anywhere; }
.mobile-menu-content, .mobile-menu-content .menu, .mobile-menu-content .menu li,
.mobile-menu-content .menu a { max-width: 100%; min-width: 0; }
.mobile-menu-content .menu a { overflow-wrap: anywhere; word-break: normal; }
.mobile-menu-content .menu ul { list-style: none; margin: 0 0 8px 14px; padding: 0 0 0 12px; border-left: 1px solid var(--hf-line); }
.mobile-menu-content .menu ul a { font-size: .94rem; font-weight: 500; padding-block: 10px; }
.mobile-tabs { flex: 0 0 auto; }
.mobile-panel-top { flex: 0 0 auto; }
.mobile-search { flex: 0 0 auto; }
.mobile-menu-content { overscroll-behavior: contain; }
@media (min-width: 901px) {
  .desktop-navigation { max-width: 78%; }
  .desktop-navigation > .menu { justify-content: flex-end; }
  .desktop-navigation .shop-nav .menu { justify-content: flex-end; }
}
@media (max-width: 900px) {
  .desktop-navigation { display: none !important; }
  .mobile-menu-trigger { flex: 0 0 auto; }
  .hf-mobile-panel { width: min(88vw, 410px); }
}

.hf-ad-slot { clear: both; margin: 34px auto; padding: 14px 0; text-align: center; border-block: 1px solid var(--hf-line); }
.hf-ad-label { display: block; margin-bottom: 8px; color: var(--hf-muted); font-size: .7rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.hf-ad-slot .widget { max-width: 100%; margin-inline: auto; }
.hf-ad-slot ins, .hf-ad-slot iframe { max-width: 100%; }


/* 1.2.0: one consistent slide-out menu on desktop and mobile */
.desktop-navigation { display: none !important; }
.mobile-menu-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; background: var(--hf-ink); color: #fff; border: 1px solid #ffffff18; padding: 12px 17px; box-shadow: 0 7px 20px #2925361a; }
.mobile-menu-trigger:hover { background: var(--hf-accent); }
.hf-menu-icon { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 21px; height: 18px; }
.hf-menu-icon i { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 4px; transition: transform .2s ease; }
.hf-mobile-panel { display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002; width: min( min(88vw, 460px), 100% ); max-width: 100%; overflow-x: hidden; background: var(--hf-paper); transform: translateX(105%); transition: transform .28s ease; flex-direction: column; box-shadow: -20px 0 60px #17131d22; visibility: hidden; }
body.hf-menu-open .hf-mobile-panel { transform: translateX(0); visibility: visible; }
.hf-menu-backdrop { display: block; position: fixed; inset: 0; background: #17131d80; opacity: 0; pointer-events: none; z-index: 1001; transition: opacity .2s; }
body.hf-menu-open .hf-menu-backdrop { opacity: 1; pointer-events: auto; }
@media (min-width: 901px) {
  .header-inner { min-height: 88px; }
  .hf-mobile-panel { width: min(460px, 42vw); }
  .mobile-menu-trigger { padding: 13px 19px; }
}
@media (max-width: 900px) {
  .mobile-menu-trigger { display: inline-flex; }
  .hf-mobile-panel { width: min(88vw, 420px); }
}
@media (max-width: 580px) {
  .hf-mobile-panel { width: min(91vw, 410px); }
}

/* Footer: editorial, warm and completely theme-rendered (widget areas remain optional). */
.site-footer { margin-top: 72px; padding: 52px 0 22px; background: var(--hf-ink); color: #f8f4f3; position: relative; overflow: hidden; }
.site-footer:before { content: "♡"; position: absolute; right: 3%; top: -75px; color: #ffffff0b; font: 300px/1 Georgia,serif; transform: rotate(13deg); pointer-events: none; }
.footer-topline { margin-bottom: 32px; color: #f0d98c; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 800; }
.footer-topline span { font-size: 1.35rem; vertical-align: middle; margin-right: 8px; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0,1fr)); gap: clamp(20px, 4vw, 48px); }
.footer-brand-name { display: inline-block; color: #fff !important; font: 700 clamp(1.5rem, 2.5vw, 2.1rem)/1.1 Georgia,serif; text-decoration: none; letter-spacing: -.04em; }
.footer-brand p { color: #d2cbd6; font-size: .94rem; line-height: 1.7; }
.footer-brand .footer-signoff { margin-top: 24px; color: #f0d98c; font-family: Georgia,serif; font-style: italic; font-size: 1.12rem; }
.footer-signoff span { color: #e58aa0; font-size: 1.6rem; }
.site-footer h2 { color: #fff; font: 700 1.05rem/1.3 Georgia,serif; margin: 5px 0 18px; }
.site-footer a { color: #f4d9df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; line-height: 1.5; }
.footer-little-note { margin-top: 38px; padding: 15px 20px; border: 1px solid #ffffff20; border-radius: 14px; color: #e9e0ea; font-size: .9rem; text-align: center; }
.footer-little-note span { color: #f0d98c; margin-right: 8px; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid #ffffff24; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #c9c2ce; font-size: .78rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer .widget { margin: 18px 0; color: #e6dfe9; }
.site-footer .widget-title, .site-footer .widget h3 { color: #fff; font-family: Georgia,serif; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* Future pinboard archive: varied-height cards with masonry-like CSS columns. */
@media (prefers-reduced-motion: reduce) { .hf-mobile-panel, .hf-menu-icon i { transition: none !important; } }


/* 1.3.0 – Desktop menu panel refinement */
@media (min-width: 901px) {
  .hf-mobile-panel { width: min(520px, 46vw); padding-bottom: 24px; }
}
.mobile-panel-top { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 26px 16px; border-bottom:1px solid var(--hf-line); }
.mobile-panel-title { font:700 1.45rem/1.2 Georgia,serif; color:var(--hf-ink); }
.mobile-close { display:grid; place-items:center; width:42px; height:42px; padding:0; border:1px solid var(--hf-line); border-radius:50%; background:#fff; color:var(--hf-ink); font-size:1.7rem; line-height:1; }
.mobile-close:hover { background:var(--hf-soft); }
.mobile-tabs { display:flex; gap:8px; padding:14px 24px 0; border-bottom:1px solid var(--hf-line); }
.mobile-tab { flex:1; min-width:0; border-radius:13px 13px 0 0; background:var(--hf-soft); color:var(--hf-muted); padding:13px 10px; border-bottom:3px solid transparent; font-weight:750; }
.mobile-tab[aria-selected="true"] { background:#fff; color:var(--hf-ink); border-bottom-color:var(--hf-accent); }
.mobile-tab[hidden] { display:none; }
.mobile-search { display:flex; align-items:center; gap:10px; padding:18px 24px; border-bottom:1px solid var(--hf-line); }
.mobile-search input { min-width:0; flex:1; width:100%; border:1px solid var(--hf-line); border-radius:13px; padding:12px 14px; background:#fff; color:var(--hf-ink); }
.mobile-search button { flex:0 0 46px; width:46px; height:46px; padding:0; display:grid; place-items:center; }
.mobile-menu-content { overflow-y:auto; overflow-x:hidden; padding:12px 24px 36px; overscroll-behavior:contain; }
.mobile-menu-content[hidden] { display:none; }
.mobile-menu-content .menu, .mobile-menu-content .sub-menu { list-style:none; margin:0; padding:0; }
.mobile-menu-content .menu > li { margin:8px 0; border:1px solid var(--hf-line); border-radius:13px; background:#fff; overflow:hidden; }
.mobile-menu-content .menu a { display:block; padding:13px 15px; color:var(--hf-ink); text-decoration:none; font-weight:650; line-height:1.45; overflow-wrap:anywhere; }
.mobile-menu-content .menu > li > a { font-size:1rem; }
.mobile-menu-content .menu a:hover, .mobile-menu-content .menu a:focus-visible { background:var(--hf-soft); color:var(--hf-accent); }
.mobile-menu-content .menu a:after { content:"↗"; float:right; margin-left:10px; color:var(--hf-accent); }
.mobile-menu-content .menu .sub-menu { padding:3px 12px 12px; background:#fcf8f6; }
.mobile-menu-content .menu .sub-menu li { border-top:1px solid #eee6e3; }
.mobile-menu-content .menu .sub-menu a { padding:10px 9px; font-size:.92rem; font-weight:500; }
.mobile-menu-content .menu .sub-menu .sub-menu { padding:0 0 5px 12px; background:transparent; }
@media (max-width:900px) {
 .mobile-panel-top { padding:18px 18px 13px; }
 .mobile-tabs { padding-inline:16px; }
 .mobile-search { padding:14px 16px; }
 .mobile-menu-content { padding:10px 16px 28px; }
}
@media (min-width:901px) {
 .mobile-panel-top { padding:26px 30px 18px; }
 .mobile-tabs { padding-inline:26px; }
 .mobile-search { padding:20px 30px; }
 .mobile-menu-content { padding:14px 30px 38px; }
 .mobile-menu-content .menu > li { margin:10px 0; }
 .mobile-menu-content .menu > li > a { padding:15px 17px; font-size:1.02rem; }
}
.related-content { background:linear-gradient(135deg,#fff 0%,var(--hf-soft) 100%); border:1px solid var(--hf-line); border-radius:24px; padding:clamp(22px,4vw,38px); margin:30px auto 48px; }
.related-content-heading { margin:0 0 7px; font:700 clamp(1.7rem,3.5vw,2.45rem)/1.1 Georgia,serif; letter-spacing:-.04em; }
.related-content-intro { color:var(--hf-muted); margin:0 0 22px; }
.related-content-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.related-content-card { background:#fff; border:1px solid var(--hf-line); border-radius:16px; overflow:hidden; }
.related-content-card a { color:var(--hf-ink); text-decoration:none; }
.related-content-card a:hover h3 { color:var(--hf-accent); }
.related-content-card img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; }
.related-content-card h3 { font:700 1.12rem/1.25 Georgia,serif; margin:0; padding:15px 16px 17px; }
.related-content-card .related-no-image { display:block; padding:22px 16px 5px; font-size:1.5rem; color:var(--hf-accent); }
@media(max-width:700px) { .related-content-grid { grid-template-columns:1fr; } .related-content-card { display:grid; grid-template-columns:110px minmax(0,1fr); align-items:center; } .related-content-card img { height:100%; aspect-ratio:1; } .related-content-card h3 { padding:12px; } }


/* 1.4.0: tidy related suggestions; links remain comfortably readable. */
.related-content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.related-content-card { min-width: 0; display: block; }
.related-content-card > a { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.related-content-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.related-content-card h3 { display: block; width: 100%; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 700px) {
  .related-content-grid { grid-template-columns: 1fr; }
  .related-content-card { display: block; }
  .related-content-card > a { display: grid; grid-template-columns: minmax(92px, 30%) minmax(0,1fr); align-items: center; }
  .related-content-card img { width: 100%; height: 100%; min-height: 105px; aspect-ratio: 1/1; object-fit: cover; }
  .related-content-card h3 { padding: 13px 15px; font-size: clamp(1rem, 4vw, 1.2rem); }
}

/* Calm, editorial story teaser: floated beside the reading column on wide screens. */
.hf-story-discovery { float: left; width: min(235px, 34%); margin: .45rem 26px 22px max(0px, calc((780px - 100vw) / 2)); padding: 12px; background: #fff; border: 1px solid var(--hf-line); border-radius: 7px 24px 7px 24px; box-shadow: 7px 8px 0 var(--hf-soft); transform: rotate(-1.2deg); }
.hf-story-kicker { display: block; color: var(--hf-accent); font-size: .66rem; line-height: 1.35; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; margin: 1px 4px 10px; }
.hf-story-link { display: block; color: var(--hf-ink); text-decoration: none; }
.hf-story-thumb { display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 4px 15px 4px 15px; background: var(--hf-soft); }
.hf-story-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hf-story-placeholder { display: grid; place-items: center; color: var(--hf-accent); font: 4rem Georgia,serif; }
.hf-story-copy { display: block; padding: 13px 5px 5px; line-height: 1.35; }
.hf-story-copy strong { display: block; font: 700 1.12rem/1.18 Georgia,serif; }
.hf-story-title { display: block; margin-top: 8px; font-weight: 700; font-size: .9rem; }
.hf-story-excerpt { display: block; margin-top: 6px; color: var(--hf-muted); font-size: .8rem; line-height: 1.45; }
.hf-story-cta { display: inline-block; margin-top: 11px; padding: 5px 10px; background: var(--hf-soft); border-radius: 99px; color: var(--hf-accent); font-size: .75rem; font-weight: 750; }
.hf-story-link:hover .hf-story-cta { background: var(--hf-accent); color: #fff; }
.entry-content:after { content: ""; display: table; clear: both; }
@media (max-width: 900px) {
  .hf-story-discovery { width: min(205px, 36%); margin: .4rem 20px 18px 0; }
}
@media (max-width: 620px) {
  .hf-story-discovery { float: none; width: min(100%, 430px); margin: 26px auto; transform: rotate(-.4deg); }
  .hf-story-link { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 13px; align-items: center; }
  .hf-story-thumb { aspect-ratio: 1/1; }
  .hf-story-copy { padding: 6px 2px; }
  .hf-story-copy strong { font-size: 1rem; }
}


/* Herzensfundstücke: theme entry points */
.header-inner{flex-wrap:wrap}
.hf-header-gallery-search{display:flex;align-items:center;gap:6px;border:1px solid var(--hf-line);border-radius:999px;padding:4px 5px 4px 14px;background:#fff;max-width:270px}
.hf-header-gallery-search input{width:185px;min-width:0;border:0;background:transparent;padding:7px 0;outline-offset:2px}
.hf-header-gallery-search button{padding:6px 12px;line-height:1.2}
.hf-header-gallery-link{font-size:.88rem;font-weight:700;text-decoration:none;white-space:nowrap}
.hf-home-gallery-promo{padding:34px 0;background:var(--hf-soft);text-align:center}
.hf-home-gallery-promo h2{font:700 clamp(1.8rem,4vw,2.8rem)/1.1 Georgia,serif;margin:.35rem 0}
.hf-home-gallery-promo p{color:var(--hf-muted);margin:.5rem auto 1rem;max-width:650px}
.hf-home-gallery-promo form{display:flex;gap:8px;max-width:650px;margin:0 auto 12px;background:#fff;border:1px solid var(--hf-line);border-radius:999px;padding:5px}
.hf-home-gallery-promo input{flex:1;min-width:0;border:0;background:transparent;padding:8px 14px}
.hf-home-gallery-promo button{white-space:nowrap}
.hf-gallery-browse{font-weight:650;text-decoration:none}
@media(max-width:760px){
 .header-inner{gap:10px;padding-block:12px}
 .hf-header-gallery-search{order:3;flex:1 1 100%;max-width:none}
 .hf-header-gallery-search input{width:100%}
 .hf-header-gallery-link{display:none}
 .hf-home-gallery-promo form{border-radius:18px;flex-direction:column;padding:9px}
 .hf-home-gallery-promo button{width:100%}
}

/* Herzensfundstücke: keep the story recommendation out of the gallery columns. */
body.page-herzensfundstuecke .hf-story-discovery {
  float: none;
  clear: both;
  width: min(100% - 32px, 680px);
  margin: 28px auto 36px;
  transform: none;
  box-sizing: border-box;
}
body.page-herzensfundstuecke .hf-story-link {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
body.page-herzensfundstuecke .hf-story-thumb { aspect-ratio: 4/3; }
body.page-herzensfundstuecke .hf-story-copy { padding: 8px 4px; }
@media (max-width: 520px) {
  body.page-herzensfundstuecke .hf-story-link { grid-template-columns: 92px minmax(0,1fr); gap: 12px; }
  body.page-herzensfundstuecke .hf-story-copy strong { font-size: .98rem; }
  body.page-herzensfundstuecke .hf-story-excerpt { font-size: .76rem; }
}
