/* =====================================================================
   Kulturverein Regensburg e. V. — style.css
   Eigenes, schlankes, responsives Stylesheet (kein Framework).
   Assets liegen unter htdocs/lib/ — Fonts self-hosted (woff2).
   ===================================================================== */

/* ---------- Self-hosted Fonts (Inter, OFL) ------------------------- */
/* woff2-Dateien liegen in htdocs/lib/fonts/ (per SFTP übertragen).    */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
}

/* ---------- Design-Tokens ------------------------------------------ */
:root {
  --gold:        #b49a5e;   /* Akzent (aus Logo)        */
  --gold-dark:   #9a8049;   /* Hover/Active             */
  --slate:       #54646c;   /* Text / Headlines (Logo)  */
  --slate-dark:  #3b474d;   /* dunkle Headlines         */
  --ink:         #2c3338;   /* Fließtext                */
  --rule:        #54646c;   /* kräftige Trennlinie      */
  --line:        #e2e2e2;   /* feine Linien             */
  --bg:          #ffffff;
  --bg-soft:     #f6f4ef;   /* dezenter Block-Hintergr. */

  --maxw: 1040px;
  --pad:  24px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Header / Navigation ------------------------------------ */
.site-header {
  padding: 22px 0 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand img {
  width: auto;
  height: 96px;          /* Logo-Höhe Desktop */
}

/* Trennlinie unter dem Header (kräftiger Strich aus dem Entwurf) */
.site-header__rule {
  border: 0;
  border-top: 3px solid var(--rule);
  margin: 18px 0 36px;
}

/* Navigation */
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.nav__list a {
  color: var(--slate);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .01em;
  padding: 6px 2px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav__list a:hover,
.nav__list a:focus {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.nav__list a[aria-current="page"] {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* Hamburger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--slate);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle__label { line-height: 1; }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bar::after  { position: absolute; top:  7px; left: 0; }

/* Off-canvas-Chrome (nur mobil aktiv; per JS eingefügt) */
.nav-close   { display: none; }
.nav-overlay { display: none; }

/* ---------- Inhalt -------------------------------------------------- */
main { padding-bottom: 64px; }

.content { max-width: 760px; }

h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--slate-dark);
  margin: 0 0 20px;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin: 36px 0 10px;
}

p { margin: 0 0 18px; }

.lead { font-size: 1.1rem; }

.address {
  font-style: normal;
  line-height: 1.6;
  margin: 8px 0 18px;
}

.muted { color: var(--slate); }

/* dezenter Infoblock (z. B. Bankverbindung) */
.panel {
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  margin: 0 0 22px;
}
.panel p:last-child { margin-bottom: 0; }

/* ---------- PDF-Einbindung ----------------------------------------- */
.pdf {
  margin: 18px 0 28px;
}
.pdf__frame {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
}
.pdf__actions { margin-top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover, .btn:focus {
  background: var(--gold-dark);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
}
.btn--ghost:hover, .btn--ghost:focus { background: var(--bg-soft); }

/* ---------- Footer (dezent, optional) ------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  font-size: .9rem;
  color: var(--slate);
}

/* =====================================================================
   Responsive — Breakpoint 760px
   ===================================================================== */
@media (max-width: 760px) {
  body { font-size: 17px; }

  .brand img { height: 72px; }

  .nav-toggle { display: inline-flex; }

  /* Navigation als Off-canvas-Panel (von rechts) */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: var(--bg);
    padding: 72px 22px 28px;
    z-index: 50;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
  }
  .nav.is-open {
    transform: translateX(0);
    box-shadow: -6px 0 28px rgba(0, 0, 0, .18);
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__list li { border-top: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: 1px solid var(--line); }
  .nav__list a {
    display: block;
    padding: 14px 2px;
    border-bottom: 0;
  }
  .nav__list a[aria-current="page"] { border-bottom: 0; color: var(--gold-dark); }

  /* Schließen-Button im Panel */
  .nav-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--slate);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  /* Abdunkelndes Overlay */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s;
    z-index: 40;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }

  /* Scroll-Lock, solange Panel offen */
  body.nav-open { overflow: hidden; }

  .pdf__frame { height: 60vh; min-height: 340px; }
}

/* Sichtbar machen für Tastatur-Fokus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
