/*
Theme Name: Risitobel-Häxe
Description: Schwarz-roter Vereinsauftritt für die Risitobel-Häxe Stäfa.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: risitobel-haexe
*/
:root {
    color-scheme: dark;
    --background: #110e10;
    --surface: #21181b;
    --text: #fcf4ea;
    --muted: #dbcdc7;
    --red: #ed625e;
    --button: #a9252c;
    --border: #4d373d;
    --heading: "Arial Narrow", "Liberation Sans", Arial, sans-serif;
    --body: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 1rem/1.65 var(--body);
    overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid #ffb08e; outline-offset: 5px; }
figure { margin: 0; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--heading);
    line-height: 1.06;
}
h1, h2 { font-weight: 900; letter-spacing: -.048em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.screen-reader-text {
    clip-path: inset(50%);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.screen-reader-text:focus {
    clip-path: none;
    inset: 1rem auto auto 1rem;
    width: auto;
    height: auto;
    padding: .75rem 1rem;
    background: var(--background);
    z-index: 50;
}
.site-header { border-bottom: 1px solid var(--border); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    min-height: 5.3rem;
}
.brand {
    display: inline-flex;
    gap: .7rem;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.08rem;
    line-height: 1.15;
}
.brand img { width: 3.1rem; }
.brand small {
    display: block;
    margin-top: .2rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: .45rem 1.75rem; }
.site-header nav a {
    padding-block: .5rem;
    text-decoration: none;
    font-size: .94rem;
    font-weight: 650;
    color: var(--muted);
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--red); }
.hero {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5.4rem);
    padding-block: clamp(2.8rem, 6vw, 6.1rem);
}
.eyebrow {
    margin-bottom: .9rem;
    color: #f4b7ab;
    font-size: .875rem;
    font-weight: 720;
    letter-spacing: .085em;
    text-transform: uppercase;
}
.eyebrow span {
    display: inline-block;
    width: 1.6rem;
    height: 2px;
    margin-right: .5rem;
    vertical-align: middle;
    background: var(--red);
}
.hero h1 {
    --hero-title-size: clamp(3.6rem, 7.7vw, 7.2rem);
    font-size: var(--hero-title-size);
    line-height: .88;
    letter-spacing: -.07em;
}
.hero h1 .accent { display: block; color: var(--red); }
.hero-welcome {
    margin: 1.65rem 0 1.85rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 2vw, 1.35rem);
}
.hero-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.85rem;
    padding: .52rem .96rem;
    border: 1px solid transparent;
    background: var(--button);
    color: #fff;
    text-decoration: none;
    font-weight: 730;
}
.button:hover { background: #912129; }
.button-outline { border-color: #9d7279; background: transparent; }
.button-outline:hover { background: #3a2229; }
.hero-photo {
    position: relative;
    isolation: isolate;
    margin: 0 .6rem .6rem 0;
}
.hero-photo::before {
    content: "";
    position: absolute;
    inset: .6rem -.6rem -.6rem .6rem;
    z-index: -1;
    border: 1px solid #e86b64;
    background: repeating-linear-gradient(135deg, #78262e 0 2px, #2b1a1f 2px 8px);
}
.hero-photo img {
    width: 100%;
    aspect-ratio: 1.32;
    object-fit: cover;
    object-position: center;
}
.home-programme {
    background: #2a161b;
    border-block: 1px solid #61373f;
    padding-block: clamp(2.4rem, 5vw, 4.5rem);
}
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
}
.next-event {
    background: #20171a;
    border: 1px solid #64464e;
    border-left: 4px solid var(--red);
    padding: clamp(1.2rem, 3.2vw, 2.1rem);
}
.next-event h3, .programme-card h3 { margin-bottom: .55rem; }
.next-event p:not(.eyebrow), .page-heading p:not(.eyebrow), .member-card p,
.agenda-row p, .home-history p:not(.eyebrow), .prose p { color: var(--muted); }
.text-link { color: #ff9d93; font-weight: 700; }
.text-link:hover { color: var(--text); }
.home-history { padding-block: clamp(3rem, 7vw, 6rem); }
.page-layout { min-height: 46vh; padding-block: clamp(2.8rem, 6vw, 5.7rem); }
.page-heading { max-width: 53rem; margin-bottom: clamp(2rem, 4.5vw, 3.65rem); }
.page-heading h1, .prose h1 {
    font-size: clamp(2.65rem, 8.2vw, 5.75rem);
    margin-bottom: .85rem;
}
.member-section + .member-section { margin-top: 2.7rem; }
.member-section h2, .programme-grid h2, .prose h2 {
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    margin-bottom: 1.25rem;
}
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.member-card { background: var(--surface); border: 1px solid var(--border); border-top: 2px solid #b7565a; }
.member-copy { padding: 1.05rem; }
.member-card p { margin: .45rem 0 0; }
.member-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.programme-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.8rem, 6vw, 5.2rem); }
.agenda-row { border-top: 1px solid #674a51; padding: 1.05rem 0 1.15rem; }
.agenda-row time { display: block; color: #ff9d93; font-weight: 720; margin-bottom: .35rem; }
.agenda-row p { margin: .4rem 0 0; }
.agenda-row .button { margin-top: .7rem; }
.programme-card { padding: 1rem; background: var(--surface); border: 1px solid var(--border); margin-bottom: 1rem; }
.flyer-image { display: block; margin-top: 1rem; }
.flyer-image img { width: 100%; }
.history-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: clamp(1.8rem, 6vw, 5.2rem); }
.history-photo { border: 1px solid var(--border); }
.prose { max-width: 70ch; }
.prose h2:not(:first-child) { margin-top: 2.2rem; }
.site-footer { padding: 2.2rem 0 1.4rem; background: #0b090a; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; }
.footer-grid p, .footer-grid a { color: var(--muted); }
.footer-grid p { margin: .35rem 0; }
.footer-grid a:hover { color: var(--text); }
.footer-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .65rem; }
.footer-socials, .footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.footer-socials { gap: .55rem; }
.footer-socials a {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    text-decoration: none;
}
.footer-socials a:hover { border-color: var(--red); color: var(--red); }
.footer-grid .copyright { grid-column: 1 / -1; margin-top: .7rem; border-top: 1px solid var(--border); padding-top: .8rem; font-size: .875rem; }
@media (max-width: 52rem) {
    .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.4rem; }
    .hero h1 { --hero-title-size: clamp(3.05rem, 8vw, 5rem); }
    .site-header nav { gap: .25rem 1rem; }
}
@media (max-width: 41rem) {
    .wrap { width: calc(100% - 2rem); }
    .header-inner { flex-direction: column; align-items: flex-start; padding-block: .8rem .55rem; gap: .3rem; }
    .site-header nav { column-gap: .75rem; }
    .site-header nav a { font-size: .875rem; }
    .hero, .section-grid, .programme-grid, .history-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero { gap: 2rem; }
    .hero h1 { --hero-title-size: clamp(3.5rem, 14vw, 5.4rem); }
    .hero-photo img { aspect-ratio: 1.35; }
    .footer-actions { align-items: flex-start; }
}

@supports (font-size: 1cqi) {
    .hero-copy, .page-heading, .section-grid > div:first-child { container-type: inline-size; }
    .hero h1, .page-heading h1, .section-grid h2 { overflow-wrap: normal; }
    .hero h1 { font-size: min(var(--hero-title-size), 20cqi); }
    .page-heading h1 { font-size: min(clamp(2.65rem, 8.2vw, 5.75rem), 10cqi); }
    .section-grid h2 { font-size: min(clamp(1.8rem, 4.5vw, 3.8rem), 16cqi); }
}
