/*
Theme Name: Pusteblume Ratgeber
Theme URI: https://www.logopaedie-doebeln.de/ratgeber/
Author: Logopädie Pusteblume
Description: Ruhiges, barrierearmes Ratgeber-Theme passend zur Website der Logopädie Pusteblume in Döbeln.
Version: 1.0.0
Text Domain: pusteblume-ratgeber
*/

:root {
  --brown: #705e54;
  --brown-deep: #4b3d38;
  --brown-ink: #2d2623;
  --lilac: #ab93b3;
  --lilac-deep: #80688a;
  --lilac-soft: #eee8f0;
  --cream: #f8f5f3;
  --paper: #fffefd;
  --line: rgba(75, 61, 56, .18);
  --shadow: 0 22px 55px rgba(64, 49, 44, .13);
  --radius: 1.15rem;
  --shell: min(1160px, calc(100% - 2.25rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--brown-ink);
  background: var(--paper);
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lilac-deep); text-underline-offset: .2em; }
a:hover, a:focus-visible { color: var(--brown-deep); }
button, input, textarea, select { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.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;
}
.screen-reader-text:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 9999; width: auto; height: auto;
  clip: auto; padding: .75rem 1rem; margin: 0; color: white; background: var(--brown-ink);
}

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,254,253,.96);
  border-bottom: 1px solid var(--line); box-shadow: 0 8px 30px rgba(54,42,37,.06);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 5.6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; color: var(--brown-deep); text-decoration: none; }
.brand img { width: 3.4rem; height: 4.25rem; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.brand-copy small { margin-top: .25rem; color: var(--brown); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--brown-deep); font-size: .93rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--lilac-deep); }
.practice-link {
  display: inline-flex; align-items: center; min-height: 2.8rem; padding: .55rem 1rem;
  color: white !important; background: var(--brown-deep); border-radius: 999px;
}
.practice-link:hover, .practice-link:focus-visible { background: var(--lilac-deep); }
.menu-toggle { display: none; border: 1px solid var(--line); padding: .6rem .8rem; background: white; border-radius: .6rem; }

.guide-hero { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); background: var(--cream); }
.guide-hero-inner { max-width: 830px; }
.eyebrow { margin: 0 0 .85rem; color: var(--lilac-deep); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--brown-deep); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { margin-bottom: 1.1rem; font-size: clamp(2.7rem, 7vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
.guide-hero p:not(.eyebrow) { max-width: 700px; margin: 0; color: #5f544e; font-size: clamp(1.05rem, 2vw, 1.25rem); }

.content-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.3rem; }
.section-heading h2 { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.post-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: white;
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--lilac-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.post-card-meta { margin-bottom: .75rem; color: var(--lilac-deep); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card h2 { margin-bottom: .8rem; font-size: 1.6rem; }
.post-card h2 a { color: var(--brown-deep); text-decoration: none; }
.post-card-excerpt { margin: 0 0 1.2rem; color: #625852; }
.read-more { margin-top: auto; font-weight: 800; }
.empty-state { padding: 2rem; background: var(--cream); border-radius: var(--radius); }
.navigation.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.page-numbers { display: grid; place-items: center; min-width: 2.7rem; height: 2.7rem; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.page-numbers.current { color: white; background: var(--lilac-deep); border-color: var(--lilac-deep); }

.article-hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0 3rem; background: var(--cream); }
.breadcrumb { margin-bottom: 1.2rem; font-size: .9rem; }
.article-hero h1 { max-width: 950px; font-size: clamp(2.45rem, 6vw, 4.8rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; color: #6b605a; font-size: .92rem; }
.featured-image { width: var(--shell); max-height: 620px; margin: -1rem auto 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.featured-image img { width: 100%; max-height: 620px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.article-content { font-size: 1.08rem; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.article-content h3 { margin: 2.2rem 0 .8rem; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 1.35rem; }
.article-content li + li { margin-top: .45rem; }
.article-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--lilac-soft); border-left: 4px solid var(--lilac-deep); }
.article-content a { font-weight: 700; }
.article-content img { border-radius: .8rem; }
.article-sidebar { position: sticky; top: 7.2rem; display: grid; gap: 1rem; }
.info-card { padding: 1.35rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h2 { margin-bottom: .7rem; font-size: 1.4rem; }
.info-card p { margin: 0 0 .8rem; font-size: .94rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .65rem 1rem;
  color: white; background: var(--brown-deep); border-radius: 999px; font-weight: 800; text-decoration: none;
}
.button:hover, .button:focus-visible { color: white; background: var(--lilac-deep); }
.practice-banner { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.practice-banner a { display: block; }
.practice-banner img { width: 100%; border-radius: 0; }
.article-note { margin-top: 2.2rem; padding-top: 1.2rem; color: #6b605a; border-top: 1px solid var(--line); font-size: .9rem; }

.page-content { max-width: 820px; }
.page-content h2 { margin-top: 2.5rem; }
.site-footer { padding: 3.8rem 0 2rem; color: rgba(255,255,255,.86); background: var(--brown-ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 3.8rem; height: 4.6rem; object-fit: contain; }
.site-footer h2, .site-footer h3 { color: white; }
.site-footer h2 { margin-bottom: .5rem; font-size: 1.5rem; }
.site-footer h3 { margin-bottom: .7rem; font-size: 1.1rem; }
.site-footer p { margin: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #e4d6e8; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 1.35rem, 1160px); }
  .header-inner { min-height: 5rem; }
  .brand img { width: 3rem; height: 3.8rem; }
  .brand-copy small { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: .675rem; right: .675rem; top: calc(100% + .25rem); display: none; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: .8rem; box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: .25rem; }
  .main-nav a { display: block; padding: .65rem .7rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
  .article-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
