/* ── Strawanzerin Theme — global reset & variables ──────────────── */
:root {
  --straw-orange:      #F0A000;
  --straw-orange-dark: #C88000;
  --straw-text:        #1A1A1A;
  --straw-muted:       #666666;
  --straw-bg:          #F0EDE8;
  --straw-surface:     #ffffff;
  --straw-border:      #D8D4CE;
  --straw-font:        system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--straw-bg);
  color: var(--straw-text);
  font-family: var(--straw-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--straw-orange); }
a:hover { color: var(--straw-orange-dark); }

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

/* ── Site wrapper ────────────────────────────────────────────────── */
.straw-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Hamburger button ────────────────────────────────────────────── */
.straw-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: none;
  border: 2px solid var(--straw-text);
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.straw-hamburger:hover {
  background: var(--straw-text);
}
.straw-hamburger:hover span { background: #fff; }
.straw-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--straw-text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s, background .15s;
  transform-origin: center;
}
.straw-hamburger.is-open { background: var(--straw-text); }
.straw-hamburger.is-open span { background: #fff; }
.straw-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.straw-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.straw-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav overlay backdrop ────────────────────────────────────────── */
.straw-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.straw-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Navigation (slide-in from right) ───────────────────────────── */
.straw-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--straw-text);
  color: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex !important;
  flex-direction: column;
  padding-top: 80px;
  box-shadow: -4px 0 24px rgba(0,0,0,.3);
  border-left: 4px solid var(--straw-orange);
}
.straw-nav.is-open { transform: translateX(0); }
.straw-nav[hidden] { transform: translateX(100%); }

.straw-nav-inner { padding: 0; }
.straw-nav-menu {
  list-style: none;
  margin: 0;
  padding: 16px 0 32px;
  display: flex;
  flex-direction: column;
}
.straw-nav-menu li a {
  display: block;
  padding: 14px 28px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .15s, background .15s;
}
.straw-nav-menu li a:hover,
.straw-nav-menu li.current-menu-item > a,
.straw-nav-menu li.current_page_item > a {
  color: var(--straw-orange);
  background: rgba(255,255,255,.04);
}
.straw-nav-menu .sub-menu { display: none; }

/* Close X button inside nav */
.straw-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
.straw-nav-close:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

/* ── Site Header — the big print banner ──────────────────────────── */
.straw-site-header {
  background: var(--straw-surface);
  border-bottom: 4px solid var(--straw-text);
  padding: 20px 20px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.straw-site-header-link {
  text-decoration: none;
  color: inherit;
}
.straw-site-header-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.straw-site-header-logo {
  height: clamp(28px, 4.5vw, 44px);
  width: auto;
  display: block;
}
.straw-site-header-title {
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 900;
  color: var(--straw-text);
  letter-spacing: -.025em;
  line-height: .9;
}
.straw-site-header-meta {
  text-align: right;
  font-size: 13px;
  color: var(--straw-muted);
  line-height: 1.6;
  padding-bottom: 4px;
}
.straw-site-header-subtitle {
  display: block;
  font-size: 12px;
}
.straw-site-header-dates {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--straw-text);
}
@media (max-width: 540px) {
  .straw-site-header { padding: 14px 16px 12px; }
  .straw-site-header-meta { text-align: left; width: 100%; }
}

/* Desktop: centre the brand lockup and pin the hamburger to the right edge,
   taking it out of flow so it cannot pull the logo off-centre. */
@media (min-width: 768px) {
  .straw-site-header {
    position: relative;
    justify-content: center;
    align-items: center;
  }
  .straw-site-header-brand {
    justify-content: center;
  }
  .straw-hamburger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ── Main content area ───────────────────────────────────────────── */
.straw-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* On the homepage the block renders edge-to-edge inside .straw-main */
.straw-main > .wp-block-group,
.straw-main > .entry-content,
.straw-main > .wp-site-blocks {
  padding: 0;
  margin: 0;
}

/* ── Standard page layout ────────────────────────────────────────── */
.straw-page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.straw-page-title {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--straw-text);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--straw-orange);
}
.straw-page-body {
  font-size: 16px;
  line-height: 1.7;
}
.straw-page-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--straw-text);
}
.straw-page-body p { margin: 0 0 16px; }
.straw-page-body a { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────── */
.straw-footer {
  background: var(--straw-text);
  color: rgba(255,255,255,.7);
  margin-top: auto;
  padding: 24px 20px;
  border-top: 4px solid var(--straw-orange);
}
.straw-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.straw-footer-brand {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.straw-footer-augustins {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--straw-orange);
  text-transform: uppercase;
  font-size: 13px;
}
.straw-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.straw-footer-menu li a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  transition: color .15s;
}
.straw-footer-menu li a:hover { color: var(--straw-orange); }
.straw-footer-copy {
  font-size: 11px;
  margin: 0;
  color: rgba(255,255,255,.4);
}
.straw-footer-copy a { color: rgba(255,255,255,.6); }
@media (max-width: 540px) {
  .straw-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── WordPress Core block compatibility ──────────────────────────── */
.wp-block-group { margin: 0; padding: 0; }

/* ── Plugin: hide StrawHeader inside theme (theme handles branding) */
.straw-header { display: none !important; }

/* ── Venue page (/veranstaltungsort/…) ────────────────────────────── */
.straw-venue {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.straw-venue-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--straw-orange);
  text-decoration: none;
}
.straw-venue-back:hover { text-decoration: underline; }
.straw-venue-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.straw-venue-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-bottom: 20px;
}
.straw-venue-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}
.straw-venue-fact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--straw-muted);
}
.straw-venue-fact a { color: var(--straw-orange); }
.straw-venue-map,
.straw-venue-map-canvas {
  height: 300px;
  width: 100%;
}
.straw-venue-map {
  border: 1px solid var(--straw-border);
  position: relative;
  z-index: 0;
}
.straw-venue-route {
  display: inline-block;
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--straw-orange);
  text-decoration: none;
}
.straw-venue-route:hover { text-decoration: underline; }
.straw-venue-description { margin-top: 16px; line-height: 1.6; }
.straw-venue-events-heading {
  margin: 36px 0 4px;
  font-size: 26px;
  font-weight: 800;
  color: var(--straw-orange);
}
.straw-venue-month {
  margin: 24px 0 10px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--straw-muted);
  border-bottom: 1px solid var(--straw-border);
  padding-bottom: 6px;
}
/* The cards themselves are styled by the app stylesheet (.straw-card), which is
   enqueued site-wide. Here they are anchors rather than Vue components, so only
   the link reset is needed. */
.straw-venue .straw-card {
  text-decoration: none;
  color: inherit;
}
.straw-venue .straw-list-cards { margin-bottom: 8px; }
.straw-venue-empty { color: var(--straw-muted); }
