/* Ravensburger Hütte — Corporate Design v3 */
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/lato-400.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/lato-600.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/lato-700.woff2') format('woff2');}

:root {
  --color-bg: #FBF6F2;
  --color-heading: #122947;
  --color-text: #40526A;
  --color-primary: #0066B5;
  --color-primary-hover: #00509A;
  --color-white: #FFFFFF;
  --font: 'Lato', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
h1, h2, h3, h4 { color: var(--color-heading); font-weight: 700; line-height: 1.3; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

/* Header: einzeilig — beide Logos + Nav in einer Zeile */
header { background: var(--color-bg); border-bottom: 1px solid #e8e0d8; position: sticky; top: 0; z-index: 100; }

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 56px; width: 56px; border-radius: 8px; object-fit: cover; object-position: center top; display: block; }

.nav-desktop { list-style: none; display: flex; gap: 1.25rem; align-items: center; flex: 1; justify-content: center; }
.nav-desktop a { color: var(--color-heading); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.nav-desktop a:hover { color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; margin-left: auto; }

/* DAV-Logo in der Nav (nur Desktop) */
.nav-dav { display: flex; align-items: center; opacity: 0.85; transition: opacity 0.2s; flex-shrink: 0; }
.nav-dav:hover { opacity: 1; }
.dav-logo { height: 40px; width: auto; display: block; }

/* Search */
.search-bar { display: flex; align-items: center; }
.search-form { display: flex; align-items: center; background: var(--color-white); border: 1.5px solid #e8e0d8; border-radius: 2rem; overflow: hidden; transition: border-color 0.2s; }
.search-form:focus-within { border-color: var(--color-primary); }
.nav-search-input { border: none; outline: none; padding: 0.4rem 0.75rem; font-size: 0.88rem; font-family: var(--font); background: transparent; color: var(--color-heading); width: 120px; transition: width 0.3s; }
.nav-search-input:focus { width: 180px; }
.search-submit { background: none; border: none; cursor: pointer; padding: 0.4rem 0.6rem; color: var(--color-text); display: flex; align-items: center; }
.search-submit:hover { color: var(--color-primary); }
.search-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; color: var(--color-heading); align-items: center; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-heading); transition: all 0.3s; border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile { display: none; background: var(--color-bg); border-top: 1px solid #e8e0d8; padding: 1rem 1.25rem 1.5rem; position: absolute; top: 100%; left: 0; right: 0; z-index: 150; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a { color: var(--color-heading); font-weight: 600; font-size: 1.05rem; display: block; padding: 0.25rem 0; }
.nav-mobile .btn-primary { display: inline-block; margin-top: 0.5rem; }

/* Buttons */
.btn-primary { background: var(--color-primary); color: var(--color-white) !important; padding: 0.5rem 1.1rem; border-radius: 2rem; font-weight: 600; transition: background 0.2s; white-space: nowrap; font-size: 0.88rem; }
.btn-primary:hover { background: var(--color-primary-hover) !important; color: var(--color-white) !important; }

/* Main */
main { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }

/* Footer */
footer { background: var(--color-heading); color: #a0b0c0; padding: 2.5rem 2rem 1.5rem; margin-top: 4rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-title { color: var(--color-white); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
footer a { color: #a0b0c0; display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
footer a:hover { color: var(--color-white); }
footer p { margin-bottom: 0.3rem; font-size: 0.9rem; }
.footer-bottom { max-width: 1200px; margin: 1.25rem auto 0; }
.footer-dav { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; color: #a0b0c0; }
.footer-dav-logo { height: 40px; width: auto; opacity: 0.9; }
.footer-dav a { display: inline; color: #a0b0c0; margin: 0; }
.footer-dav a:hover { color: var(--color-white); }

/* Prose */
.prose h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.75rem; margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 2rem; }
.prose li { margin-bottom: 0.3rem; }
.prose strong { color: var(--color-heading); }
.prose a { text-decoration: underline; }
.prose blockquote { border-left: 3px solid var(--color-primary); padding-left: 1rem; color: #6677aa; font-style: italic; margin: 1rem 0; }

/* Badges */
.badge-category { display: inline-block; background: var(--color-primary); color: var(--color-white); padding: 0.2rem 0.75rem; border-radius: 2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.badge-category:hover { background: var(--color-primary-hover); color: var(--color-white); }
.badge-tag { display: inline-block; background: transparent; color: #6688aa; padding: 0.15rem 0.6rem; border-radius: 2rem; border: 1.5px solid #c8d8e8; font-size: 0.75rem; font-weight: 600; text-transform: lowercase; white-space: nowrap; }

/* Bildgrößen */
.hero-img-wrap { border-radius: 16px; overflow: hidden; margin-bottom: 2rem; }
.hero-img { width: 100%; height: 520px; object-fit: cover; display: block; }
.post-hero-img { width: 100%; height: 460px; object-fit: cover; border-radius: 12px; margin-bottom: 2rem; display: block; }
.card img, .post-img, .mag-card img { width: 100%; height: 225px; object-fit: cover; display: block; }
.prose img, .img-article img { width: 100%; max-width: 800px; height: auto; max-height: 450px; object-fit: cover; border-radius: 10px; display: block; margin: 1.5rem auto; }
.img-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.img-grid-2 img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; display: block; margin: 0; }
.img-grid-2 figure { margin: 0; }
figure { margin: 1.5rem 0; }
figcaption { font-size: 0.8rem; color: #8899aa; text-align: center; margin-top: 0.4rem; font-style: italic; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.2s, opacity 0.2s; display: block; margin: 0; }
.gallery-grid img:hover { transform: scale(1.02); opacity: 0.9; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 2.5rem; color: white; cursor: pointer; line-height: 1; background: none; border: none; }

/* Route Info */
.route-info { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.route-info span { background: #f0f4f8; padding: 0.2rem 0.6rem; border-radius: 1rem; font-size: 0.8rem; color: var(--color-heading); font-weight: 600; }

/* Sub Nav */
.sub-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #e8e0d8; }
.sub-nav a { padding: 0.35rem 1rem; border-radius: 2rem; font-size: 0.88rem; font-weight: 600; color: var(--color-heading); background: var(--color-white); border: 1px solid #e8e0d8; text-decoration: none; transition: all 0.2s; }
.sub-nav a:hover, .sub-nav a.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* #800: Partner-Label Kontrast-Fix (WCAG AA: 4.6:1) */
.partner-label { font-size: 0.85rem; color: #616E7C; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Responsive */
@media (max-width: 1024px) {
  .nav-desktop { gap: 0.75rem; }
  .nav-desktop a { font-size: 0.82rem; }
  .nav-search-input { width: 90px; }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-dav { display: none; }  /* DAV-Logo auf Mobil ausblenden — spart Platz */
  .nav-toggle { display: flex; }
  .search-toggle { display: flex; }
  .search-bar { display: none; }
  .search-bar.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; padding: 0.75rem 1.25rem; background: var(--color-bg); border-bottom: 1px solid #e8e0d8; z-index: 160; }
  .search-bar.open .search-form { flex: 1; }
  .search-bar.open .nav-search-input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose h1 { font-size: 1.75rem; }
  main { padding: 2rem 1.25rem; }
  nav { padding: 0.5rem 1.25rem; min-height: 64px; }
  .logo-img { height: 48px; width: 48px; }
  .hero-img { height: 240px; }
  .post-hero-img { height: 240px; }
  .img-grid-2 { grid-template-columns: 1fr; }
  .img-grid-2 img { height: 220px; }
}