/* Otto's Museum — Variante 5
   Im Stil von werkhof25.ch / michischaub.ch
   Nunito + Audiowide, weiss, Orange-Akzent
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Nunito', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== UTILITY ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-badge {
  display: inline-block;
  background: #4a4a4a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.section-title .accent { color: #d40000; }
.section-title .light { font-weight: 300; color: #999; }

.section-subtitle {
  font-size: 1.05rem;
  color: #888;
  max-width: 600px;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-dark { background: #4a4a4a; color: #fff; }
.btn-dark:hover { background: #333; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

.btn-outline { background: transparent; color: #4a4a4a; border: 2px solid #ddd; }
.btn-outline:hover { border-color: #4a4a4a; transform: translateY(-2px); }

.btn-accent { background: #d40000; color: #fff; }
.btn-accent:hover { background: #a00000; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,0,0,0.35); color: #fff; }

.bg-light { background: #f7f7f7; }
.bg-dark { background: #4a4a4a; color: #fff; }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.bg-dark .section-badge { background: rgba(255,255,255,0.15); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.45rem; line-height: 1;
}
.logo img { height: 36px; width: auto; }
.logo-text { color: #333; font-weight: 400; }
.logo-text .accent { color: #d40000; font-weight: 700; }

.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 600; color: #666;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #d40000; }
.nav-cta { padding: 10px 24px !important; color: #fff !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #333; margin: 5px 0; transition: all 0.3s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; padding: 12px 0;
    border-top: 1px solid #eee; box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-cta { margin: 8px 24px; text-align: center; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 72px;
  background: #fff;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f7f7f7; border-radius: 30px;
  padding: 8px 18px; margin-bottom: 24px;
  font-size: 0.82rem; font-weight: 700; color: #666;
}
.hero-badge svg { width: 14px; height: 14px; color: #d40000; }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #4a4a4a;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero h1 .light { font-weight: 300; color: #999; }
.hero h1 .accent { color: #d40000; }

.hero p {
  font-size: 1.05rem;
  color: #888;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex; justify-content: center; align-items: center; position: relative;
}

.hero-image {
  width: 100%; max-width: 500px;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroFade 1s ease;
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-image .float-badge {
  position: absolute; bottom: -12px; right: -12px;
  background: #ffcc00; color: #4a4a4a;
  padding: 14px 24px; border-radius: 10px;
  font-weight: 900; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(255,204,0,0.45);
  border: 2px solid #4a4a4a;
}

/* ===== SLOGAN-BANNER ===== */
.slogan-banner {
  background: #4a4a4a; color: #fff;
  padding: 48px 0;
  text-align: center;
}
.slogan-banner .slogan {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 1px;
  line-height: 1.4;
}
.slogan-banner .slogan .accent { color: #ffcc00; }

/* ===== SERVICE CARDS (Sammlungs-Bereiche) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: block;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  color: inherit;
}

.service-card-img {
  height: 220px;
  background: #e8e8e8;
  position: relative;
  overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-icon {
  position: absolute; bottom: -18px; right: 20px;
  width: 40px; height: 40px;
  background: #d40000; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(212,0,0,0.35);
}
.service-card-icon svg { width: 18px; height: 18px; color: #fff; }

.service-card-body { padding: 28px 24px; }
.service-card-body h3 {
  font-size: 0.95rem; font-weight: 800;
  text-transform: uppercase; color: #4a4a4a;
  margin-bottom: 10px; letter-spacing: 0.5px;
}
.service-card-body p {
  font-size: 0.88rem; color: #888; margin-bottom: 16px;
  line-height: 1.6;
}
.service-card-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.service-card-body li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: #666;
}
.service-card-body li svg { width: 16px; height: 16px; color: #d40000; flex-shrink: 0; }

.service-card-link {
  font-size: 0.85rem; font-weight: 700; color: #4a4a4a;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s, color 0.2s;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.service-card-link:hover { gap: 10px; color: #d40000; }

/* ===== INFO CARDS (Besuch / Öffnungszeiten) ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 760px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.info-card:hover {
  border-color: #d40000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.info-card .icon {
  width: 48px; height: 48px;
  background: #fce8e8;
  border-radius: 10px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.info-card .icon svg { width: 22px; height: 22px; color: #d40000; }

.info-card .label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: #aaa; margin-bottom: 8px;
}

.info-card .value {
  font-size: 1.05rem; font-weight: 800;
  color: #4a4a4a; line-height: 1.3;
}
.info-card .value small {
  display: block; font-size: 0.78rem; color: #888;
  font-weight: 600; margin-top: 6px;
}

/* ===== FEATURED GRID (Home, fixe Vorschau-Bilder) ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 760px) {
  .featured-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.featured-grid a {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #eee;
  display: block;
  transition: all 0.3s;
}
.featured-grid a:hover {
  border-color: #d40000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.featured-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-grid a:hover img { transform: scale(1.06); }

/* ===== GALLERY SLIDER (Vorschau auf Home) ===== */
.gallery-slider-section { padding: 80px 0; }

.gallery-slider {
  position: relative;
  margin-top: 32px;
}

.gallery-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 24px;
  -webkit-overflow-scrolling: touch;
}
.gallery-slider-track::-webkit-scrollbar { height: 6px; }
.gallery-slider-track::-webkit-scrollbar-thumb { background: #d40000; border-radius: 3px; }
.gallery-slider-track::-webkit-scrollbar-track { background: #f0f0f0; }

.slider-card {
  flex: 0 0 280px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: all 0.3s;
  cursor: pointer;
}
.slider-card:hover { border-color: #d40000; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }

.slider-card-img {
  aspect-ratio: 1;
  background: #e8e8e8;
  overflow: hidden;
}
.slider-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.slider-card:hover .slider-card-img img { transform: scale(1.05); }

.slider-card-body { padding: 16px 18px; }
.slider-card-body .cat {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #aaa; margin-bottom: 6px;
}
.slider-card-body h3 {
  font-size: 0.95rem; font-weight: 700; color: #4a4a4a; line-height: 1.3;
}

.slider-arrow {
  position: absolute; top: 38%;
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  font-size: 1.5rem; font-weight: 700; color: #4a4a4a;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.2s;
  font-family: inherit;
  line-height: 0;
}
.slider-arrow:hover { background: #d40000; color: #fff; border-color: #d40000; }
.slider-arrow-left { left: -22px; }
.slider-arrow-right { right: -22px; }

@media (max-width: 760px) {
  .slider-arrow { display: none; }
}

/* ===== ABOUT / STORY ===== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { max-width: 280px; }
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.about-image img { width: 100%; display: block; }
.about-image .float-badge {
  position: absolute; top: 20px; left: 20px;
  background: #d40000; color: #fff;
  padding: 8px 16px; border-radius: 30px;
  font-weight: 800; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(212,0,0,0.4);
}

.about-prose p {
  font-size: 1.02rem;
  color: #555;
  margin-bottom: 1.2rem;
  line-height: 1.75;
}
.about-prose p:first-child {
  font-size: 1.2rem;
  color: #4a4a4a;
  font-weight: 700;
}
.about-prose strong { color: #4a4a4a; font-weight: 800; }
.about-prose em { color: #d40000; font-style: italic; font-weight: 600; }

/* ===== GALLERY GRID (Galerie-Seite) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  cursor: pointer;
  position: relative;
  border: 1px solid #eee;
  transition: all 0.3s;
}
.gallery-item:hover {
  border-color: #d40000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9000; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox button {
  position: absolute;
  background: #d40000; color: #fff;
  border: 0; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.lightbox button:hover { background: #a00000; transform: scale(1.05); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; color: #fff;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 36px 32px;
}

.contact-info-card .row {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-info-card .row:first-child { padding-top: 0; }
.contact-info-card .row:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-info-card .row .icon {
  width: 40px; height: 40px;
  background: #fce8e8;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-card .row .icon svg { width: 18px; height: 18px; color: #d40000; }

.contact-info-card .row .label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: #aaa; margin-bottom: 4px;
}
.contact-info-card .row .value {
  font-size: 1rem; font-weight: 700; color: #4a4a4a; line-height: 1.5;
}
.contact-info-card .row .value a { color: #4a4a4a; }
.contact-info-card .row .value a:hover { color: #d40000; }

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
}
.map-frame iframe {
  display: block; width: 100%; height: 480px; border: 0;
}

/* ===== FORM ===== */
.form {
  display: grid; gap: 16px; max-width: 640px; margin: 36px auto 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form label {
  display: block;
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: #4a4a4a; margin-bottom: 6px;
}

.form input, .form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  color: #333;
  transition: all 0.2s;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: #d40000;
  box-shadow: 0 0 0 4px rgba(212,0,0,0.12);
}
.form textarea { resize: vertical; min-height: 140px; }

/* ===== FOOTER ===== */
footer {
  background: #4a4a4a;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid .footer-brand {
  font-family: 'Audiowide', sans-serif;
  font-size: 1.3rem; color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.footer-grid .footer-brand .accent { color: #d40000; }

.footer-grid h4 {
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff; margin-bottom: 14px;
}

.footer-grid p, .footer-grid a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem; line-height: 1.8;
  display: block;
  transition: color 0.2s;
}
.footer-grid a:hover { color: #d40000; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #d40000; }

/* ===== PAGE HEADER (für Unterseiten) ===== */
.page-header {
  padding-top: 130px;
  padding-bottom: 60px;
  background: #fff;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

/* ===== Fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
