/**
 * Museum Rügen – main stylesheet
 * Visual system adapted from LocalListing X (BRIX):
 * Primary #111828 · Navy #222E5B · Accent #FC5761 · Neutrals F4F7FB…
 *
 * FONTS: No Google Fonts. Place self-hosted files in ../fonts/ and
 * adjust @font-face below (see fonts/README.md).
 */

/* ── Local fonts (upload your files; names are placeholders) ── */
@font-face {
  font-family: "MR Sans";
  src: url("../fonts/mr-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MR Sans";
  src: url("../fonts/mr-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MR Sans";
  src: url("../fonts/mr-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-primary: #111828;
  --c-navy: #222e5b;
  --c-accent: #fc5761;
  --c-accent-hover: #e84650;
  --c-ink: #111828;
  --c-ink-soft: #586071;
  --c-ink-mute: #8b909a;
  --c-line: #e1e6f1;
  --c-line-strong: #b7c0d2;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f7fb;
  --c-surface: #ffffff;
  --c-ok: #11845b;
  --c-ok-bg: #def2e6;
  --c-warn: #d5691b;
  --c-warn-bg: #fff3e4;

  --font: "MR Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-01: 0 2px 8px rgba(17, 24, 40, 0.06);
  --shadow-02: 0 8px 24px rgba(17, 24, 40, 0.08);
  --shadow-03: 0 16px 40px rgba(17, 24, 40, 0.1);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.625;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--c-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-top: 1.75em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; clip: auto;
  padding: 10px 14px; background: var(--c-accent); color: #fff;
  border-radius: var(--radius-sm); text-decoration: none;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--narrow); }
.muted { color: var(--c-ink-mute); }
.lead { font-size: 1.125rem; color: var(--c-ink-soft); max-width: 40rem; }
.eyebrow {
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--c-accent); margin: 0 0 0.75rem;
}
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 22px;
  border-radius: var(--radius-pill);
  font: inherit; font-size: 1rem; font-weight: 700;
  line-height: 1; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn--sm { padding: 10px 16px; font-size: 0.9rem; }
.btn--block { display: flex; width: 100%; margin-top: 10px; }
.btn--primary {
  background: var(--c-navy); color: #fff;
  box-shadow: 0 8px 20px rgba(34, 46, 91, 0.25);
}
.btn--primary:hover { background: var(--c-primary); color: #fff; }
.btn--accent {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 8px 20px rgba(252, 87, 97, 0.28);
}
.btn--accent:hover { background: var(--c-accent-hover); color: #fff; }
.btn--outline {
  background: transparent; color: var(--c-navy);
  border-color: var(--c-line-strong);
}
.btn--outline:hover { border-color: var(--c-navy); color: var(--c-navy); background: var(--c-bg-alt); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--c-bg-alt); color: var(--c-navy);
}
.badge--soft { background: #eaf4ff; color: #086cd9; }
.badge--ok { background: var(--c-ok-bg); color: var(--c-ok); }
.verified {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600;
  background: var(--c-warn-bg); color: var(--c-warn);
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.brand {
  font-size: 1.25rem; font-weight: 700; color: var(--c-primary);
  text-decoration: none; letter-spacing: -0.02em; white-space: nowrap;
}
.brand span { color: var(--c-accent); }
.custom-logo-link {
  display: flex; align-items: center; flex-shrink: 0;
  line-height: 0; text-decoration: none;
}
.custom-logo {
  display: block; max-height: 44px; width: auto; height: auto;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav__list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav__list a {
  display: block; padding: 10px 12px;
  color: var(--c-ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.nav__list a:hover,
.nav__list .current-menu-item > a { color: var(--c-primary); background: var(--c-bg-alt); }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--c-primary); margin: 0 auto;
  position: relative;
}
.nav-toggle__bar::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bar::after { position: absolute; top: 6px; left: 0; }

/* ── Hero (Home V3) ── */
.hero--home {
  background: var(--c-bg-alt);
  padding: 56px 0 0;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
}
.hero__copy h1 { margin-bottom: 0.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.hero__mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 110px);
  gap: 12px;
}
.hero__tile {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-line);
  box-shadow: var(--shadow-01);
}
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__tile--empty { background: linear-gradient(135deg, #e1e6f1, #b7c0d2); }
.hero__tile:nth-child(1) { grid-row: span 2; min-height: 232px; }
.hero__search {
  position: relative;
  transform: translateY(50%);
  z-index: 5;
}

/* ── Search bar ── */
.search-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-03);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.search-bar__field {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: var(--c-bg-alt);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 16px;
  border: 1px solid transparent;
}
.search-bar__field:focus-within { border-color: var(--c-accent); background: #fff; }
.search-bar__field input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  outline: none;
  line-height: 1.3;
  padding: 10px 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-bar__field .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: center;
  min-height: 44px;
  padding: 10px 18px;
}
.search-bar__select {
  flex: 0 1 160px;
  min-width: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font: inherit; font-weight: 600; color: var(--c-ink-soft);
  background: #fff; cursor: pointer;
}

/* ── Sections ── */
.section { padding: 72px 0; }
.section--alt { background: var(--c-bg-alt); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 28px;
}
.section-head h2 { margin: 0; }
.section-head__link {
  font-weight: 700; text-decoration: none; color: var(--c-navy); white-space: nowrap;
}
.section-head__link:hover { color: var(--c-accent); }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-01);
  transition: transform .15s ease, box-shadow .15s ease;
}
/* Card-Boxen (Region, Guides, Museumskarten): nie unterstreichen */
a.card,
a.card:link,
a.card:visited,
a.card:hover,
a.card:active,
a.card:focus,
.card-grid a.card,
.card-grid a.card:hover {
  text-decoration: none !important;
  color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-02); }
.card:hover .card__title { color: var(--c-accent); }
.card__link,
.card__link:link,
.card__link:visited,
.card__link:hover,
.card__link:focus {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}
.card--plain .card__body { padding: 22px; }
.card__media { aspect-ratio: 16 / 10; background: var(--c-bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e1e6f1 0%, #b7c0d2 100%);
}
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.15rem; margin: 0; }
.card__meta { margin: 0; color: var(--c-ink-soft); font-size: 0.95rem; line-height: 1.45; }
.card__dauer { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--c-navy); }

/* ── Page / museum heroes ── */
.page-hero,
.museum-hero {
  background: var(--c-bg-alt);
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--c-line);
}
.page-hero .search-bar { margin-top: 24px; transform: none; }
.museum-hero__title { margin-bottom: 0.25em; }
.museum-hero__sub { color: var(--c-ink-soft); margin: 0 0 1rem; max-width: 40rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.875rem; color: var(--c-ink-mute); margin-bottom: 14px;
}
.breadcrumb a { color: var(--c-ink-soft); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--c-accent); }

/* ── Detail layout ── */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 48px 0 72px;
  align-items: start;
}
.content__figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-01);
}
.content__figure img { width: 100%; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { font-weight: 600; }

.highlights {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: grid; gap: 10px;
}
.highlights li {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
}
.highlights li::before {
  content: "";
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-accent);
}

.tipbox {
  background: #fff3e4;
  border: 1px solid #ffd19b;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 1.5rem 0;
}
.tipbox strong { color: var(--c-warn); display: block; margin-bottom: 0.35rem; }
.tipbox p:last-child { margin-bottom: 0; }

.prose-block {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 1.5rem;
}
.prose-block p:last-child { margin-bottom: 0; }

.faq details {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 10px;
  padding: 0 16px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--c-line); margin-bottom: 10px; }
.faq details > div { padding-bottom: 14px; color: var(--c-ink-soft); }

.related-list { display: grid; gap: 10px; margin-bottom: 2rem; }
.related-list a {
  display: block; padding: 14px 16px;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  text-decoration: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.related-list a:hover { border-color: var(--c-accent); box-shadow: var(--shadow-01); }
.related-list strong { display: block; color: var(--c-primary); }
.related-list small { color: var(--c-ink-mute); }

.infobox {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-02);
}
.infobox__title { font-size: 1.15rem; margin: 0 0 1rem; }
.infobox dl { margin: 0 0 1rem; }
.infobox dt {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--c-ink-mute); margin-top: 12px;
}
.infobox dt:first-child { margin-top: 0; }
.infobox dd { margin: 4px 0 0; }
.infobox__hours { font-size: 0.95rem; line-height: 1.45; }
.infobox a { text-decoration: none; font-weight: 600; }

/* ── Footer ── */
.site-footer {
  background: var(--c-primary);
  color: #b7c0d2;
  padding: 56px 0 28px;
  margin-top: 0;
}
.site-footer a { color: #fff; text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--c-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  margin-bottom: 36px;
  align-items: start;
}
.footer-col {
  min-width: 0;
}
.footer-col__title {
  color: #fff; font-size: 1rem; margin: 0 0 14px;
}
.footer-col ul,
.footer-col .menu {
  list-style: none; margin: 0; padding: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col .widget-title,
.footer-col .footer-col__title { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-col .widget + .widget { margin-top: 20px; }
.footer-col p { margin: 0 0 0.75em; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.875rem;
}

/* ── Pagination ── */
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  text-decoration: none; font-weight: 700; color: var(--c-navy);
  background: #fff;
}
.page-numbers.current,
.page-numbers:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ── Tables in content ── */
.entry-content table,
.data-table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.entry-content th,
.entry-content td,
.data-table th,
.data-table td {
  border: 1px solid var(--c-line);
  padding: 10px 12px; text-align: left;
}
.entry-content th,
.data-table th { background: var(--c-bg-alt); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mosaic { max-width: 480px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .infobox { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--c-line);
    padding: 12px 24px 20px; flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow-02);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .header-cta { width: 100%; margin-top: 8px; }
  .hero--home { padding-top: 36px; }
  .hero__mosaic {
    max-width: none;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 100px);
  }
  .hero__tile:nth-child(1) { grid-row: span 1; min-height: 0; }
  .hero__tile:nth-child(n+5) { display: none; }
  .hero__search {
    transform: none;
    margin: 8px 0 28px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .section { padding: 48px 0; }
  .card-grid,
  .card-grid--compact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Suche: Eingabe oben, Button darunter vollbreit */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .search-bar__field {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 10px;
    background: var(--c-bg-alt);
  }
  .search-bar__field input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
  }
  .search-bar__field .btn {
    width: 100%;
    border-radius: var(--radius-sm);
    justify-content: center;
  }
  .search-bar__select {
    flex: 0 0 auto;
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-sm);
  }
}

/* ── Contact form (/kontakt) ── */
.mr-contact-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}
.mr-contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mr-contact-form__field {
  margin: 0 0 1.25rem;
}
.mr-contact-form__field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--c-primary);
}
.mr-contact-form__req { color: var(--c-accent); }
.mr-contact-form__field input[type="text"],
.mr-contact-form__field input[type="email"],
.mr-contact-form__field textarea {
  width: 100%;
  font: inherit;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mr-contact-form__field textarea { resize: vertical; min-height: 160px; }
.mr-contact-form__field input:focus,
.mr-contact-form__field textarea:focus {
  outline: none;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(34, 46, 91, 0.12);
}
.mr-contact-form__consent { margin: 0 0 1.25rem; font-size: 0.95rem; }
.mr-contact-form__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  color: var(--c-ink-soft);
}
.mr-contact-form__consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--c-navy);
}
.mr-contact-form__actions { margin: 0; }
.mr-contact-form__notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.mr-contact-form__notice--ok {
  background: var(--c-ok-bg);
  color: var(--c-ok);
  border: 1px solid rgba(17, 132, 91, 0.25);
}
.mr-contact-form__notice--warn {
  background: var(--c-warn-bg);
  color: var(--c-warn);
  border: 1px solid rgba(213, 105, 27, 0.25);
}
.mr-contact-form__notice--error {
  background: #fdecee;
  color: #b42318;
  border: 1px solid rgba(252, 87, 97, 0.35);
}
