/*
Theme Name: Fundus
Description: Theme für die Theater-Börse Fundus. Gehört zum Plugin „Fundus – Theater-Börse“, das Mitgliederbereich, Inserate und Suche liefert.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: fundus-theme
*/

:root {
  --bg: #F2F3F6; --surface: #FFFFFF; --ink: #191B26; --muted: #5B5F70; --line: #D9DBE3;
  --accent: #6B1E4E; --on-accent: #FFFFFF; --accent-soft: #F2E4EC;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111219; --surface: #1A1C26; --ink: #ECEDF3; --muted: #A2A6B7; --line: #2D3040;
    --accent: #DA86BA; --on-accent: #22101B; --accent-soft: #3A2232; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 1rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--surface); padding: .5rem 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; flex-wrap: wrap; padding-block: .5rem; }
.site-logo { display: flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.site-logo svg { width: 28px; height: 28px; color: var(--accent); }
.site-logo img { max-height: 40px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.main-nav a { display: block; padding: .4rem .8rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--ink); background: var(--bg); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--ink); background: var(--accent-soft); }
.header-account { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: .5rem 1rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Inhalt */
.site-main { padding-block: 2rem 4rem; }
.page-head { margin-bottom: 1.5rem; }
.entry-content > * { max-width: 100%; }
.entry-content p, .entry-content li { max-width: 70ch; }
.entry-content .fundus p, .entry-content .fundus li { max-width: none; }

/* Startseite */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: 1.5rem 2.5rem; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-search { display: flex; gap: .5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-search input { flex: 1; min-width: 200px; padding: .8rem 1rem; font: inherit; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.hero-search button { border: 0; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: .8rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; display: grid; gap: .8rem; }
.hero-card h2 { font-size: 1.25rem; margin: 0; }
.hero-card p { margin: 0; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin-bottom: 2.5rem; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; text-decoration: none; color: var(--ink); display: grid; gap: .2rem; }
.cat:hover { border-color: var(--accent); }
.cat b { font-family: var(--f-display); font-size: 1.1rem; }
.cat span { color: var(--muted); font-size: .85rem; }
.section { margin-bottom: 3rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.step { border-top: 2px solid var(--ink); padding-top: .8rem; }
.step .n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.step h3 { margin: .3rem 0; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.site-footer ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Beiträge */
.post-list { display: grid; gap: 1.5rem; }
.post-list article { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
