/*
Theme Name: Bruchhagen Hofladen
Description: Schlichtes Theme auf weißem Grund für einen Hofladen. Keine externen Schriften, keine Skripte, keine Abhängigkeiten.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bruchhagen
License: GPL-2.0-or-later
*/

:root {
  --ink: #1c1c1a;
  --muted: #5c5c57;
  --line: #e3e3de;
  --accent: #3d5a3a;
  --bg: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
}

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }

/* Kopfbereich */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .75rem 2rem; padding-top: 1.5rem; padding-bottom: 1.25rem;
}
.site-title {
  font-family: var(--sans); font-weight: 600; font-size: 1.125rem;
  letter-spacing: .01em; color: var(--ink); text-decoration: none;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.main-nav a {
  font-family: var(--sans); font-size: .95rem; color: var(--muted); text-decoration: none;
  padding: .25rem 0; border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav .current_page_item > a, .main-nav .current-menu-item > a, .main-nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--ink);
}

/* Inhalt */
.site-main { padding: 4rem 0 5rem; }
.entry { max-width: var(--measure); }
.entry-title, .hero-title, .section-title {
  font-family: var(--sans); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 1.5rem;
}
.entry-title { font-size: clamp(2rem, 5vw, 2.75rem); }
.entry-content > * { margin-top: 0; margin-bottom: 1.4rem; }
.entry-content h2, .entry-content h3 { font-family: var(--sans); font-weight: 600; line-height: 1.25; margin-top: 2.5rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content blockquote, .entry-content .is-style-lead {
  border-left: 2px solid var(--accent); margin-left: 0; padding-left: 1.25rem; font-style: italic;
}
.entry-content .wp-block-image figcaption { font-family: var(--sans); font-size: .875rem; color: var(--muted); }
.entry-meta { font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-bottom: 2rem; }

/* Startseite */
.hero { padding: 1rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.hero-title { font-size: clamp(2.25rem, 7vw, 4rem); max-width: 18ch; margin-bottom: 1.25rem; }
.hero-text { max-width: var(--measure); font-size: 1.25rem; color: var(--muted); margin: 0; }

.topic-list { list-style: none; margin: 0; padding: 0; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 3rem; padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) {
  .topic { grid-template-columns: 18rem minmax(0, 1fr); }
}
.topic h2 { font-family: var(--sans); font-size: 1.35rem; font-weight: 600; line-height: 1.25; margin: 0; }
.topic h2 a { color: var(--ink); text-decoration: none; }
.topic h2 a:hover { text-decoration: underline; }
.topic p { margin: 0 0 .75rem; max-width: var(--measure); }
.topic .more { font-family: var(--sans); font-size: .95rem; }

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

/* Beitragsliste / Navigation */
.post-list article { margin-bottom: 3rem; }
.post-list h2 { font-family: var(--sans); font-size: 1.5rem; margin: 0 0 .5rem; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.pagination { font-family: var(--sans); display: flex; gap: 1.5rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; word-wrap: normal !important;
}
