/*
 * Späth – kompakte Darstellungsstufe
 * Verkleinert Typografie und Abstände websiteweit, ohne die Lesbarkeit zu opfern.
 */
:root {
    --container: 1200px;
    --content: 720px;
    --header-height: 78px;
    --gutter: clamp(1.1rem, 3vw, 3rem);
}

body {
    font-size: 1rem;
    line-height: 1.68;
}
p, ul, ol, blockquote, pre, table, figure { margin-block-end: 1.15rem; }
h1 { font-size: clamp(2.4rem, 4.7vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.65rem); }
h3 { font-size: clamp(1.28rem, 1.9vw, 1.7rem); }
h4 { font-size: clamp(1.08rem, 1.4vw, 1.35rem); }

.site-header.is-scrolled { height: 68px; }
.custom-logo { max-height: 50px; max-width: min(205px, 42vw); }
.site-branding__name { font-size: 1.5rem; }

.story-panel { min-height: 104svh; }
.story-panel__stage { min-height: 560px; }
.story-panel__layout {
    padding-bottom: clamp(3.5rem, 7vh, 5.5rem);
    padding-top: calc(var(--header-height) + 2rem);
}
.story-panel__content { max-width: 575px; }
.story-panel:not(.story-panel--hero) .story-panel__content {
    border-radius: clamp(1rem, 1.8vw, 1.5rem);
    padding: clamp(1.6rem, 3.2vw, 2.75rem);
}
.story-panel__title {
    font-size: clamp(2.7rem, 5.5vw, 5.15rem);
    margin-bottom: 1rem;
}
.story-panel:not(.story-panel--hero) .story-panel__title {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1.02;
    margin-bottom: .9rem;
}
.story-panel:not(.story-panel--hero) .story-panel__number {
    margin-bottom: clamp(1rem, 2vw, 1.6rem);
    min-height: 30px;
    padding: .35rem .72rem;
}
.story-panel__text,
.story-panel:not(.story-panel--hero) .story-panel__text {
    font-size: clamp(.94rem, 1.05vw, 1.03rem);
    line-height: 1.62;
    margin-bottom: 1.35rem;
}
.story-panel:not(.story-panel--hero) .story-panel__link {
    padding: .68rem .75rem .68rem 1.05rem;
}

.entry-hero,
.listing-hero {
    min-height: clamp(310px, 43vh, 460px);
}
.entry-hero__inner,
.listing-hero > .site-container {
    padding-bottom: clamp(2.5rem, 5vh, 3.75rem);
    padding-top: 3.5rem;
}
.entry-hero__title,
.listing-hero h1 {
    font-size: clamp(2.5rem, 5.1vw, 4.6rem);
}
.entry-hero__lead {
    font-size: 1.02rem;
    line-height: 1.62;
    margin-top: 1rem;
}
.entry-content { padding-block: clamp(3.25rem, 6.5vw, 6rem); }
.entry-content h2 { margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.25em; }
.entry-content h4 { margin-top: 1.2em; }
.entry-content blockquote,
.wp-block-quote {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    margin-block: 2rem;
}
.wp-block-group.is-style-spaeth-surface { padding: clamp(1.35rem, 3vw, 2.75rem); }
.wp-block-cover { min-height: 420px; }
.wp-block-columns { gap: clamp(1.25rem, 3vw, 2.75rem); }

.listing { padding-block: clamp(3rem, 6vw, 5.5rem); }
.post-card__body { padding: clamp(1.25rem, 2.5vw, 1.9rem); }
.post-card h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }

.site-footer { padding-top: clamp(3.25rem, 5vw, 4.75rem); }
.site-footer__masthead { padding-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.site-footer__statement {
    font-size: clamp(2.1rem, 4.1vw, 3.8rem);
    max-width: 12ch;
}
.site-footer__grid {
    gap: 2rem;
    padding-block: clamp(2.5rem, 4vw, 3.75rem);
}

/* Team kompakter: auf grossen Bildschirmen vier Karten statt drei. */
.spaeth-team-section {
    margin-block: clamp(2.75rem, 5vw, 4.5rem);
    padding: clamp(1.5rem, 3.2vw, 3rem);
}
.entry-content .spaeth-team-title,
.spaeth-team-title {
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    margin-bottom: .7rem;
}
.spaeth-team-intro {
    font-size: clamp(1rem, 1.35vw, 1.15rem) !important;
    line-height: 1.48 !important;
}
.spaeth-team-grid {
    gap: clamp(1rem, 1.8vw, 1.4rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
    margin-top: clamp(2rem, 4vw, 3rem);
}
.spaeth-team-member__body { padding: 1.1rem 1.15rem 1.25rem; }
.entry-content .spaeth-team-member h3,
.spaeth-team-member h3 {
    font-size: clamp(1.18rem, 1.5vw, 1.38rem);
    margin-bottom: .25rem;
}
.entry-content .spaeth-team-member p,
.spaeth-team-member p {
    font-size: .86rem;
    line-height: 1.55;
}
.entry-content .spaeth-team-member .spaeth-team-funktion,
.spaeth-team-member .spaeth-team-funktion {
    font-size: .61rem;
    margin-bottom: .75rem;
}

/* Gleiche, kompakte Massstäbe im Blockeditor. */
.editor-styles-wrapper {
    font-size: 16px;
    line-height: 1.68;
    padding-inline: clamp(18px, 3vw, 48px) !important;
}
.editor-styles-wrapper .wp-block-post-title { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.editor-styles-wrapper h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); margin-top: 1.4em; }
.editor-styles-wrapper h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); margin-top: 1.25em; }
.editor-styles-wrapper blockquote { font-size: 1.3rem; }
.editor-styles-wrapper .is-style-spaeth-surface { padding: clamp(1.3rem, 3vw, 2.5rem); }
.editor-styles-wrapper .spaeth-team-section { padding: clamp(1.5rem, 3vw, 2.75rem); }
.editor-styles-wrapper .spaeth-team-title { font-size: clamp(2rem, 3.5vw, 3rem); }
.editor-styles-wrapper .spaeth-team-grid {
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    margin-top: 2.25rem;
}
.editor-styles-wrapper .spaeth-team-member__body { padding: 1.1rem; }
.editor-styles-wrapper .spaeth-team-member h3 { font-size: 1.3rem; }
.editor-styles-wrapper .spaeth-team-member p { font-size: .84rem; }

@media (min-width: 1100px) {
    .site-nav__list { gap: clamp(.1rem, .65vw, .65rem); }
    .site-nav__list > li > a { font-size: .65rem; padding-inline: .55rem; }
    .story-panel__content { margin-left: 4vw; }
    .story-panel:nth-of-type(even) .story-panel__content { margin-right: 4vw; }
}

@media (max-width: 699px) {
    :root { --header-height: 70px; --gutter: 1.15rem; }
    h1 { font-size: clamp(2.2rem, 11vw, 3.25rem); }
    h2 { font-size: clamp(1.7rem, 8vw, 2.35rem); }
    .custom-logo { max-height: 43px; max-width: 170px; }
    .site-nav__list a { font-size: clamp(1.5rem, 8vw, 2.2rem); }
    .story-panel { min-height: 100svh; }
    .story-panel__stage { min-height: 520px; }
    .story-panel__layout { padding-bottom: 3.5rem; }
    .story-panel__title { font-size: clamp(2.45rem, 12vw, 3.9rem); }
    .story-panel:not(.story-panel--hero) .story-panel__content { padding: 1.35rem; }
    .story-panel:not(.story-panel--hero) .story-panel__title { font-size: clamp(1.9rem, 9vw, 2.65rem); }
    .entry-hero,
    .listing-hero { min-height: 350px; }
    .entry-hero__inner,
    .listing-hero > .site-container { padding-bottom: 2.5rem; }
    .entry-content { padding-block: 3rem; }
    .wp-block-cover { min-height: 340px; }
    .spaeth-team-section { padding: 1.25rem; }
    .spaeth-team-grid { grid-template-columns: 1fr; }
    .site-footer { padding-top: 3rem; }
}
