/* galerienbonn.de – style.css v3 */

:root {
  --white: #ffffff;
  --off-white: #faf9f7;
  --light-gray: #f0eeeb;
  --mid-gray: #d4d0cb;
  --text: #1a1814;
  --text-muted: #6b6760;
  --text-light: #9e9b96;
  --border: #e8e4df;

  --g1: #C0392B;
  --g2: #2980B9;
  --g3: #27AE60;
  --g4: #8E44AD;
  --g5: #E67E22;
  --g6: #16A085;
  --g7: #D35400;
  --g8: #2C3E50;
  --g9: #1ABC9C;
  --g10: #E91E8C;
  --g11: #795548;
  --g12: #546E7A;
  --g13: #B7950B;
  --g14: #6C3483;

  --shadow-s: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-m: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-l: 0 24px 64px rgba(0,0,0,0.16);
  --radius: 2px;
  --max-w: 1180px;
  --nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ─── GALLERY CEILING – warm spotlights ─── */
.gallery-ceiling {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 280px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 220px 200px at 12% -10px, rgba(255,243,200,0.60) 0%, transparent 70%),
    radial-gradient(ellipse 220px 200px at 35% -10px, rgba(255,243,200,0.52) 0%, transparent 70%),
    radial-gradient(ellipse 220px 200px at 58% -10px, rgba(255,243,200,0.52) 0%, transparent 70%),
    radial-gradient(ellipse 220px 200px at 82% -10px, rgba(255,243,200,0.48) 0%, transparent 70%);
}
.gallery-ceiling::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  background:
    linear-gradient(to bottom, rgba(180,170,150,0.18) 0%, transparent 100%),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent calc(12% - 1px),
      rgba(180,170,150,0.35) calc(12%),
      rgba(180,170,150,0.35) calc(12% + 1px),
      transparent calc(12% + 2px),
      transparent calc(35% - 1px),
      rgba(180,170,150,0.35) calc(35%),
      rgba(180,170,150,0.35) calc(35% + 1px),
      transparent calc(35% + 2px),
      transparent calc(58% - 1px),
      rgba(180,170,150,0.35) calc(58%),
      rgba(180,170,150,0.35) calc(58% + 1px),
      transparent calc(58% + 2px),
      transparent calc(82% - 1px),
      rgba(180,170,150,0.35) calc(82%),
      rgba(180,170,150,0.35) calc(82% + 1px),
      transparent calc(82% + 2px)
    );
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.22;
  color: var(--text);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; position: relative; z-index: 1; }
.section--gray { background: var(--off-white); }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 100%;
  padding-top: 15px;
}
.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__logo em { font-style: italic; font-weight: 400; }
.nav__logo:hover { text-decoration: none; }

.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__links a {
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover { color: var(--text); border-bottom-color: var(--text); text-decoration: none; }
.nav__links a.active { color: var(--text); border-bottom-color: var(--text); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; width: 32px;
}
.nav__burger span {
  display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 28px 24px; z-index: 99;
}
.nav__mobile.open { display: block; }
.nav__mobile ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.nav__mobile a {
  font-size: 1.05rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 0; border-bottom: 1px solid var(--border);
  display: block;
}

/* ─── HERO (Startseite) ─── */
.hero {
  padding: 80px 0 64px;
  position: relative; z-index: 1; text-align: center;
  overflow: hidden;
}

/* hero.webp hintergrund – img tag for LCP */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  mix-blend-mode: multiply;
  display: block;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 60%, rgba(255,255,255,1) 100%);
}

.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 20px; margin-bottom: 28px;
}
.hero__title { max-width: 680px; margin: 0 auto 20px; }
.hero__title em { font-style: italic; font-weight: 400; }
.hero__sub {
  max-width: 500px; margin: 0 auto 48px;
  font-size: 1.02rem; color: var(--text-muted); line-height: 1.7;
}
.hero__stats {
  display: flex; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  max-width: 600px; margin: 0 auto;
}
.hero__stat span:first-child {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
}
.hero__stat span:last-child {
  font-size: 0.78rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ─── RAILING ─── */
.railing {
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mid-gray) 10%, var(--mid-gray) 90%, transparent);
  position: relative; z-index: 1;
}

/* ─── GALLERY GRID ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 48px 28px;
  padding: 60px 0 80px;
  position: relative; z-index: 1;
}

/* ─── GALLERY CARD ─── */
.gallery-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  margin-top: 24px;
}
.gallery-card::before {
  content: '';
  position: absolute;
  top: -24px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 24px;
  background: linear-gradient(to bottom, var(--mid-gray), var(--light-gray));
}
.gallery-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-color, #aaa);
}

.gallery-card[data-g="1"]  { --card-color: var(--g1); }
.gallery-card[data-g="2"]  { --card-color: var(--g2); }
.gallery-card[data-g="3"]  { --card-color: var(--g3); }
.gallery-card[data-g="4"]  { --card-color: var(--g4); }
.gallery-card[data-g="5"]  { --card-color: var(--g5); }
.gallery-card[data-g="6"]  { --card-color: var(--g6); }
.gallery-card[data-g="7"]  { --card-color: var(--g7); }
.gallery-card[data-g="8"]  { --card-color: var(--g8); }
.gallery-card[data-g="9"]  { --card-color: var(--g9); }
.gallery-card[data-g="10"] { --card-color: var(--g10); }
.gallery-card[data-g="11"] { --card-color: var(--g11); }
.gallery-card[data-g="12"] { --card-color: var(--g12); }
.gallery-card[data-g="13"] { --card-color: var(--g13); }
.gallery-card[data-g="14"] { --card-color: var(--g14); }

.gallery-card:hover {
  transform: translateY(-10px) rotate(-0.3deg);
  box-shadow: var(--shadow-l);
  text-decoration: none;
}
.gallery-card:hover .gallery-card__name {
  color: var(--card-color);
}

.gallery-card__img { width: 100%; height: 190px; object-fit: cover; }
.gallery-card__placeholder {
  width: 100%; height: 190px;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
}
.gallery-card__placeholder svg { opacity: 0.2; }

.gallery-card__body {
  padding: 22px; flex: 1; display: flex; flex-direction: column;
}
.gallery-card__district {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text); margin-bottom: 7px;
  /* colour dot for visual accent */
  display: flex; align-items: center; gap: 6px;
}
.gallery-card__district::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--card-color, #888);
  flex-shrink: 0;
}
.gallery-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3;
  transition: color 0.25s;
}
.gallery-card__focus {
  font-size: 0.87rem; color: var(--text-muted); flex: 1; margin-bottom: 16px;
}
.gallery-card__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.gallery-card__rating { display: flex; align-items: center; gap: 5px; font-weight: 500; }
.stars { color: #E6A817; }
.gallery-card__arrow {
  color: var(--card-color, #888);
  transition: transform 0.25s;
}
.gallery-card:hover .gallery-card__arrow { transform: translateX(4px); }

/* ─── GALERIE DETAIL ─── */
.galerie-header { padding: 40px 0 0; position: relative; z-index: 1; }

/* Sub-Hero Bild auf Unterseiten */
.sub-hero {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 320px;
  pointer-events: none;
  z-index: 0;
}
.sub-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.60;
  display: block;
}
.sub-hero__fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted);
  padding: 0 0 28px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { color: var(--mid-gray); }

.galerie-header__badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--g-color); border: 1px solid var(--g-color);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.galerie-header__title { margin-bottom: 10px; }
.galerie-header__address { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 22px; }

.rating-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.rating-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 18px;
}
.rating-pill__score {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; font-weight: 700;
}
.rating-pill__stars { color: #E6A817; font-size: 0.95rem; }
.rating-pill__count { font-size: 0.8rem; color: var(--text-muted); }

.galerie-img-wrap {
  position: relative;
  border-top: 4px solid var(--g-color);
  overflow: hidden;
}
.galerie-img-wrap img, .galerie-img-placeholder {
  width: 100%; height: 380px; object-fit: cover; display: block;
}
.galerie-img-placeholder {
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text-light);
  font-style: italic;
}

/* ─── TWO-COL LAYOUT ─── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 56px 0 80px;
  position: relative; z-index: 1;
}
.detail-content > * + * { margin-top: 2rem; }
.detail-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }

.sidebar-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--g-color);
  padding: 22px;
  margin-bottom: 18px;
}
.sidebar-box__label {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}
.sidebar-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 9px; font-size: 0.88rem;
}
.sidebar-row:last-child { margin-bottom: 0; }
.sidebar-row__icon { flex-shrink: 0; color: var(--g-color); width: 16px; }
.sidebar-row__val { color: var(--text); }

/* Website-Link in Sidebar – plain nofollow link */
.website-btn {
  display: inline-block;
  color: var(--g-color);
  font-size: 0.88rem;
  text-decoration: underline;
}
.website-btn:hover {
  color: var(--text); text-decoration: underline;
}

.hours-row {
  display: flex; justify-content: space-between;
  font-size: 0.86rem; padding: 5px 0; border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 500; }
.hours-row .closed { color: #C0392B; }

.cta-btn {
  display: block; width: 100%; text-align: center;
  background: var(--g-color); color: #fff;
  padding: 12px; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; margin-top: 14px;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.85; text-decoration: none; }

/* ─── FAQ ─── */
.faq-list { margin-top: 20px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%; background: none; border: none; padding: 17px 0;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600; color: var(--text);
}
.faq-btn svg { flex-shrink: 0; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.open .faq-btn svg { transform: rotate(45deg); }
.faq-answer {
  display: none; padding: 0 0 18px;
  font-size: 0.93rem; color: var(--text-muted); line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ─── SECTION LABEL ─── */
.eyebrow {
  display: block; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}

/* ─── FOOTER ─── */
.footer {
  background: #0f0f0f; color: #888;
  padding: 60px 0 28px; position: relative; z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 44px;
}
.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: #fff;
  margin-bottom: 12px; display: block; text-decoration: none;
}
.footer__logo em { font-style: italic; font-weight: 400; }
.footer__desc { font-size: 0.87rem; line-height: 1.7; color: #999; margin-bottom: 16px; }
.footer__contact { font-size: 0.84rem; color: #999; }
.footer__contact a { color: #aaa; text-decoration: none; }
.footer__contact a:hover { color: #fff; }

.footer__col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: #ccc; margin-bottom: 16px;
}
.footer__col-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col-links a { font-size: 0.87rem; color: #aaa; text-decoration: none; transition: color 0.2s; }
.footer__col-links a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid #1e1e1e; padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: #888;
}
.footer__bottom a { color: #aaa; text-decoration: underline; }
.footer__bottom a:hover { color: #fff; }
.footer__webdesign { font-size: 0.8rem; }
.footer__webdesign a { color: #aaa; text-decoration: underline; }
.footer__webdesign a:hover { color: #fff; }

/* ─── LEGAL ─── */
.legal-wrap {
  max-width: 740px; margin: 0 auto;
  padding: 56px 24px 80px; position: relative; z-index: 1;
}
.legal-wrap h1 { margin-bottom: 32px; }
.legal-wrap h2 { margin: 36px 0 14px; font-size: 1.2rem; }
.legal-wrap h3 { margin: 24px 0 8px; font-size: 1rem; }
.legal-wrap p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1rem; }
.legal-wrap a { color: var(--text); text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-sidebar { position: static; }
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 56px 0 40px; }
  .galerie-img-wrap img, .galerie-img-placeholder { height: 220px; }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .hero__stats { gap: 24px; }
  .sub-hero { height: 220px; }
}
