/* The Dubliner – Stylesheet
   Fonts are self-hosted (no Google connection → GDPR-friendly). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/fraunces-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); }
  :root {
    --bottle: #0b3d2e;
    --bottle-deep: #062519;
    --bottle-soft: #14523f;
    --brass: #c79a4c;
    --brass-light: #e3c58a;
    --cream: #f6efdf;
    --paper: #fbf7ee;
    --ink: #1f1b16;
    --ink-soft: #5b5348;
    --stout: #14100c;
    --line: rgba(31, 27, 22, .12);
    --radius: 14px;
    --max: 1120px;
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 92px; }
  body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
  h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
  .eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }

  /* ---------- Announcement bar ---------- */
  .notice { background: var(--brass); color: var(--stout); font-weight: 600; font-size: 14px; }
  .notice .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; padding-block: 9px; text-align: center; }
  .notice a { text-underline-offset: 3px; white-space: nowrap; }
  .notice button { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--stout); padding: 0 4px; }

  /* ---------- Header ---------- */
  header { position: sticky; top: 0; z-index: 40; background: rgba(6, 37, 25, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(199, 154, 76, .35); }
  header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
  .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
  .brand img { height: 56px; width: auto; }
  .brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
  .brand-name { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); }
  .brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--brass-light); margin-top: 5px; }
  nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
  nav a { color: var(--cream); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; }
  nav a:hover { opacity: 1; color: var(--brass-light); }
  .call { display: inline-flex; align-items: center; gap: 8px; background: var(--brass); color: var(--stout); text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; }
  .menu-btn { display: none; background: none; border: 1px solid rgba(227, 197, 138, .5); color: var(--cream); border-radius: 10px; padding: 8px 12px; font: inherit; }

  /* ---------- Hero ---------- */
  .hero { position: relative; color: var(--cream); background: var(--bottle-deep); overflow: hidden; }
  .hero::before { content: ""; position: absolute; inset: 0; background: url(../images/slide2.webp) center/cover; opacity: .38; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,37,25,.95) 0%, rgba(6,37,25,.7) 55%, rgba(6,37,25,.35) 100%); }
  .hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 12vw, 130px); }
  .sign { max-width: 620px; }
  .hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; color: var(--cream); margin: 14px 0 18px; }
  .hero h1 em { font-style: normal; color: var(--brass-light); }
  .hero p { font-size: clamp(16px, 2vw, 19px); opacity: .9; max-width: 52ch; margin: 0 0 28px; }
  .status { display: inline-flex; align-items: center; gap: 10px; background: rgba(251, 247, 238, .1); border: 1px solid rgba(227, 197, 138, .4); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; margin-bottom: 26px; }
  .dot { width: 9px; height: 9px; border-radius: 50%; background: #5fd08f; box-shadow: 0 0 0 4px rgba(95, 208, 143, .2); }
  .dot.closed { background: #e07a5f; box-shadow: 0 0 0 4px rgba(224, 122, 95, .2); }
  .btns { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 15px; border: 1.5px solid var(--brass); }
  .btn.solid { background: var(--brass); color: var(--stout); }
  .btn.ghost { color: var(--cream); }

  /* ---------- Sections ---------- */
  section { padding-block: clamp(56px, 8vw, 96px); }
  .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
  .head h2 { hyphens: auto; overflow-wrap: break-word; font-size: clamp(28px, 4.4vw, 46px); margin-top: 10px; color: var(--bottle); }
  .head p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
  .dark { background: var(--bottle); color: var(--cream); }
  .dark .head h2 { color: var(--cream); }
  .dark .head p { color: rgba(246, 239, 223, .75); }
  .rule { display: flex; align-items: center; gap: 14px; color: var(--brass); margin: 0 auto; width: 160px; }
  .rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }

  /* ---------- Pinnwand (announcements + flyers) ---------- */
  .board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 24px; align-items: start; }
  .flyer { position: relative; margin: 0; background: #fff; padding: 10px 10px 14px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 28px -10px rgba(31,27,22,.35); transition: transform .25s ease, box-shadow .25s ease; cursor: zoom-in; }
  .flyer:nth-child(odd) { transform: rotate(-1.2deg); }
  .flyer:nth-child(even) { transform: rotate(1deg); }
  .flyer:hover, .flyer:focus-within { transform: rotate(0) translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 22px 40px -12px rgba(31,27,22,.45); }
  .flyer::before { content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f0d39b, var(--brass) 55%, #8a6526); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
  .flyer button { all: unset; display: block; cursor: zoom-in; border-radius: 3px; overflow: hidden; }
  .flyer button:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
  .flyer img { width: 100%; height: auto; }
  .flyer figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
  .flyer small { font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
  .tag { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: var(--bottle); color: var(--cream); margin-bottom: 8px; }
  .tag.info { background: #b5553c; }
  .empty { color: var(--ink-soft); font-style: italic; }

  /* Programm: big poster + side list */
  .programm { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
  .poster { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); border: 1px solid rgba(227,197,138,.35); }
  .poster button { all: unset; cursor: zoom-in; display: block; }
  .poster img { width: 100%; height: auto; }
  .weekly { display: grid; gap: 14px; }
  .next-title { font-size: 22px; color: var(--brass-light); margin: 0 0 14px; }
  .darts-title { margin-top: 34px; }
  .weekly .vs { color: var(--cream); font-weight: 600; }
  .weekly article.today { border-color: var(--brass); background: rgba(199,154,76,.16); }
  .weekly .badge { display: inline-block; margin-left: 8px; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; background: var(--brass); color: var(--stout); vertical-align: middle; }
  .weekly .empty { color: rgba(246,239,223,.7); }
  .weekly article { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); background: rgba(251,247,238,.06); border: 1px solid rgba(227,197,138,.22); }
  .weekly .day { font-family: var(--display); font-size: 22px; color: var(--brass-light); text-align: center; line-height: 1; }
  .weekly .day span { display: block; font: 600 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(246,239,223,.6); margin-top: 4px; }
  .weekly h3 { font-size: 19px; color: var(--cream); }
  .weekly p { margin: 2px 0 0; font-size: 14px; color: rgba(246,239,223,.7); }

  /* Küche */
  .kitchen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
  .dish { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  .dish h3 { font-size: 22px; color: var(--bottle); margin-bottom: 8px; }
  .dish p { margin: 0; color: var(--ink-soft); font-size: 15px; }

  /* Darts */
  .teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
  .team { margin: 0; background: var(--bottle-deep); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(227,197,138,.25); }
  .team img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 15%; } /* portrait photos: keep heads in frame */
  .team figcaption { padding: 14px 16px; font-family: var(--display); font-size: 20px; }

  /* Impressionen */
  .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(140px, 1fr)); gap: 12px; }
  .gallery button { all: unset; cursor: zoom-in; border-radius: 12px; overflow: hidden; display: block; }
  .gallery button:first-child { grid-row: span 2; }
  .gallery button:nth-child(4) { grid-column: span 2; }
  .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
  .gallery button:hover img { transform: scale(1.04); }

  /* Besuch */
  .visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
  .card { background: rgba(251,247,238,.06); border: 1px solid rgba(227,197,138,.25); border-radius: var(--radius); padding: 26px; }
  .card h3 { font-size: 22px; color: var(--brass-light); margin-bottom: 14px; }
  .card p { margin: 0 0 12px; }
  .hours { width: 100%; border-collapse: collapse; font-size: 15px; }
  .hours td { padding: 7px 0; border-bottom: 1px dashed rgba(227,197,138,.25); }
  .hours td:last-child { text-align: right; }
  .hours tr.today td { color: var(--brass-light); font-weight: 600; }

  footer { background: var(--stout); color: rgba(246,239,223,.65); font-size: 14px; padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
  footer a { color: var(--brass-light); margin-left: 16px; }

  /* Lightbox */
  dialog { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
  dialog::backdrop { background: rgba(10, 8, 6, .86); }
  dialog img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 8px; }
  dialog p { color: var(--cream); text-align: center; margin: 12px 0 0; font-weight: 500; }
  .close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brass); color: var(--stout); font-size: 24px; cursor: pointer; }

  /* Mobile action bar */
  .actionbar { display: none; }


  @media (max-width: 860px) {
    nav ul { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bottle-deep); border-bottom: 1px solid rgba(199,154,76,.35); padding: 8px 20px 16px; }
    nav ul.open { display: flex; }
    nav li a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(227,197,138,.12); }
    .menu-btn { display: block; }
    header .call { display: none; }
    .programm { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .gallery button:first-child { grid-row: auto; grid-column: span 2; }
    .gallery button:nth-child(4) { grid-column: auto; }
    .gallery img { aspect-ratio: 4/3; }
  }
  @media (max-width: 600px) {
    /* flyers become a swipeable row on phones */
    /* phones: two flyers per row, tap to enlarge */
    .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .flyer { padding: 6px 6px 10px; }
    .flyer:nth-child(odd) { transform: rotate(-.8deg); }
    .flyer:nth-child(even) { transform: rotate(.6deg); }
    .flyer figcaption { flex-direction: column; gap: 2px; margin-top: 8px; font-size: 13px; line-height: 1.35; }
    .flyer small { font-size: 12px; }
    .tag { margin-bottom: 4px; }
    .actionbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--bottle-deep); border-top: 1px solid rgba(199,154,76,.4); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .actionbar a { color: var(--cream); text-decoration: none; text-align: center; font-size: 12px; font-weight: 600; padding: 10px 0 12px; display: grid; justify-items: center; gap: 4px; }
    .actionbar svg { color: var(--brass-light); }
    /* room for the fixed action bar so it never covers the footer links */
    footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
  }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--stout); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Social links ---------- */
.social { display: flex; gap: 14px; margin-top: 4px; }
.social a { display: inline-flex; color: var(--brass-light); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal .wrap { max-width: 820px; }
.legal article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); color: var(--bottle); margin-bottom: 8px; }
.legal h2 { font-size: 22px; color: var(--bottle); margin: 30px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal a { color: var(--bottle); text-underline-offset: 3px; }
.legal .muted { color: var(--ink-soft); }
.back { white-space: nowrap; color: var(--cream); text-decoration: none; font-size: 15px; font-weight: 500; border: 1.5px solid var(--brass); border-radius: 999px; padding: 8px 16px; }
noscript p { background: #fff3cd; color: var(--ink); padding: 12px 16px; border-radius: 8px; }

/* very small phones: slightly smaller logo so it fits next to the menu button */
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand img { height: 44px; }
  .brand-name { font-size: 18px; letter-spacing: .04em; }
  .brand-sub { font-size: 10px; letter-spacing: .3em; }
  header .wrap { padding-inline: 16px; gap: 10px; }
  .menu-btn { padding: 7px 10px; font-size: 14px; }
}
@media (max-width: 480px) {
  .back-label { display: none; }
  .back { padding: 8px 14px; font-size: 18px; line-height: 1; }
}

/* footer on phones: stacked, centred, links as clear tap targets */
@media (max-width: 600px) {
  footer .wrap { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  footer .wrap > span:last-child { display: flex; gap: 12px; }
  .legal ~ footer { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
  footer a { margin-left: 0; padding: 10px 16px; border: 1px solid rgba(227,197,138,.4); border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; }
}
