:root { --hdr-h: 178px; }
.offer-short { display: none; }
:root {
  /* Klassisches Gold #d0a03c (statt Orange) – Logo unverändert */
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --orange: #d0a03c;
  --orange-dark: #b8862a;
  --gold: #d0a03c;
  --gold-dark: #b8862a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  line-height: 1.65;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 0.8rem;
}

.header.scrolled .header-top {
  padding: 0.2rem 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  transition: none;
}

.header.scrolled .logo-img {
  width: 75px;
  height: 75px;
}

.header-center {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: none;
}

.header.scrolled .site-title {
  font-size: 1.4rem;
}

.site-tagline {
  font-size: 0.9rem;
  color: var(--teal);
  margin-top: 0;
  line-height: 1.2;
  transition: box-shadow 0.3s ease;
}

.header.scrolled .site-tagline {
  font-size: 0.8rem;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-calendar:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-calendar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hamburger {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover { background: rgba(13,148,136,0.1); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: box-shadow 0.3s ease;
}







/* ========== MENU SLOT – fixed height, no layout shift ========== */
.menu-slot {
  height: 40px;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.menu-slot.open {
  border-bottom-color: #e2e8f0;
}

.menu-slot-inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem 1.1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.menu-slot a {
  color: #0f766e;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.25rem 0.4rem;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(36px);   /* start from right */
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-slot.open a {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Right → Left order (last item appears first) */
.menu-slot.open a:nth-child(9) { transition-delay: 0.05s; } /* Datenschutz */
.menu-slot.open a:nth-child(8) { transition-delay: 0.12s; } /* Impressum */
.menu-slot.open a:nth-child(7) { transition-delay: 0.19s; } /* Kontakt */
.menu-slot.open a:nth-child(6) { transition-delay: 0.26s; } /* Philosophie */
.menu-slot.open a:nth-child(5) { transition-delay: 0.33s; } /* Referenzen */
.menu-slot.open a:nth-child(4) { transition-delay: 0.40s; } /* Heike */
.menu-slot.open a:nth-child(3) { transition-delay: 0.47s; } /* Methode */
.menu-slot.open a:nth-child(2) { transition-delay: 0.54s; } /* Bildungsurlaub */
.menu-slot.open a:nth-child(1) { transition-delay: 0.61s; } /* Online-Unterricht */

.menu-slot a:hover {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
}


.nav-orange {
  background: var(--orange);
  padding: 0.65rem 1.5rem;
}

.nav-orange-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.nav-orange a {
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-orange a:hover {
  background: rgba(255,255,255,0.15);
  color: #0f766e;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #12332f;
}

.hero-picture { display: contents; }
.hero-bg {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--hdr-h, 178px);
  bottom: 0;
  width: 100%;
  height: calc(100dvh - var(--hdr-h, 178px));
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  display: none !important;
}

.hero-stage,
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.offer-card {
  position: fixed;
  z-index: 3;
}

/* Cards */
.offer-card {
  background: rgba(255,255,255,0.96);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  width: min(200px, 15.5vw);
}
.offer-card:first-child {
  left: 7%;
  top: 38%;
}
.offer-card:last-child {
  right: 7%;
  top: 38%;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(0,0,0,0.22);
}

.offer-card-image {
  height: 72px;
  overflow: hidden;
  position: relative;
}

.offer-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-card:hover .offer-card-image img { transform: scale(1.05); }

.badge-free {
  position: absolute;
  top: 14px;
  right: -34px;
  background: var(--orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 2.6rem;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.offer-card-body {
  padding: 0.65rem 0.75rem 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-card h2 {
  font-size: 0.98rem;
  color: var(--teal-dark);
  margin-bottom: 0.55rem;
}

.offer-card p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--gray-700);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: white;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13,148,136,0.35);
}

.btn-orange {
  background: var(--orange);
  color: white;
}

.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245,158,11,0.35);
}

/* ========== PAGE CONTENT ========== */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto;
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-section h2 {
  font-size: 1.7rem;
  color: var(--teal-dark);
  margin: 2rem 0 1rem;
}

.content-section h2:first-child { margin-top: 0; }

.content-section p {
  margin-bottom: 1.1rem;
  color: var(--gray-700);
}

.content-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--gray-700);
}

.content-section li { margin-bottom: 0.4rem; }

.img-rounded {
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: 4;
  background: var(--teal-dark);
  color: white;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 0;
}

.footer-nav {
  max-width: 900px;
  margin: 0 auto 2rem;
  background: var(--orange);
  border-radius: 10px;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.85; }

.footer-info {
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.footer-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-info-item .icon { font-size: 1.5rem; margin-bottom: 0.2rem; }
.footer-info-item strong { font-size: 0.95rem; }
.footer-info-item span { font-size: 0.85rem; opacity: 0.9; }

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.75;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 1000px;
  margin: 0 auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .site-title { font-size: 1.5rem; }
  .site-tagline { font-size: 0.85rem; }
  .logo-img { width: 110px; height: 110px; }
  .header.scrolled .logo-img { width: 60px; height: 60px; }
  .footer-info { grid-template-columns: 1fr; gap: 1.25rem; }
  .page-hero h1 { font-size: 1.9rem; }
}

@media (max-width: 600px) {
  .header-top { padding: 0.7rem 1rem; }
  .logo-img { width: 100px; height: 100px; }
  .btn-calendar span { display: none; }
  .nav-orange-inner { gap: 1.2rem; }
  .nav-orange a { font-size: 0.95rem; }
}

/* Hide secondary menu items on tablet/mobile so primary ones fit */
@media (max-width: 1100px) {
  .menu-slot a[href*="online-unterricht"],
  .menu-slot a[href*="bildungsurlaub"],
  .menu-slot a[href*="impressum"],
  .menu-slot a[href*="datenschutz"] {
    display: none;
  }
  .menu-slot-inner {
    gap: 0.15rem 1rem;
  }
}

@media (max-width: 700px) {
  .menu-slot a {
    font-size: 0.88rem;
    padding: 0.2rem 0.3rem;
  }
  .menu-slot-inner {
    gap: 0.1rem 0.7rem;
  }
  .logo-img {
    width: 120px !important;
    height: 120px !important;
  }
  .header.scrolled .logo-img {
    width: 90px !important;
    height: 90px !important;
  }
}

.footer-nav a:hover {
  color: #0f766e;
  opacity: 1;
}



/* Menu hover + active – no blue flash */
.menu-slot-inner a,
.nav-orange a,
.footer-nav a {
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-slot-inner a:link,
.menu-slot-inner a:visited,
.menu-slot-inner a:active,
.menu-slot-inner a:focus {
  color: #0f766e;
  outline: none;
  background: transparent;
}
.menu-slot-inner a:hover {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
  border-radius: 6px;
}
.menu-slot-inner a.active {
  color: #0d9488;
  font-weight: 600;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 6px;
}
.nav-orange a:link,
.nav-orange a:visited,
.nav-orange a:active,
.nav-orange a:focus {
  color: #fff;
  outline: none;
}
.nav-orange a:hover,
.nav-orange a.active {
  color: #0f766e;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
}
a:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* ===== Language dropdown ===== */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230f766e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  border: 1px solid #99f6e4;
  color: #0f766e;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 1.6rem 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.lang-select:focus { outline: 2px solid #0d9488; }

/* ===== Muted shop ===== */
.shop-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
.shop-note {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.shop-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  cursor: default;
  opacity: 0.92;
}
.shop-card:hover { transform: none; box-shadow: none; }
.shop-card-top {
  height: 110px;
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-card-top img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; }
.shop-card-body { padding: 0.85rem 1rem 1rem; }
.shop-card-body .lvl { font-size: 0.72rem; font-weight: 700; color: #0f766e; letter-spacing: .04em; text-transform: uppercase; }
.shop-card-body h3 { margin: 0.2rem 0 0.35rem; font-size: 1rem; color: #0f172a; }
.shop-card-body p { margin: 0; font-size: 0.82rem; color: #64748b; }
.shop-block-title { color: #0f766e; margin: 1.75rem 0 0.75rem; font-size: 1.15rem; }

/* ===== Calendar page ===== */
.cal-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.cal-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 1.25rem; }
.cal-tab {
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: default;
}
.cal-tab.online { border-color: #0d9488; color: #0d9488; }
.cal-tab.travel { border-color: #d0a03c; color: #d0a03c; }
.cal-tab.workshop { border-color: #7c3aed; color: #7c3aed; }
.cal-empty {
  background: #fff;
  border: 1px dashed #99f6e4;
  border-radius: 14px;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #64748b;
}
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; margin-top: 1rem; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.35rem; vertical-align: middle; }
.admin-link { display: inline-block; margin-top: 1rem; font-size: 0.85rem; color: #0f766e; }
.admin-grid { pointer-events: auto !important; }
.admin-grid .shop-card { pointer-events: auto !important; cursor: pointer; opacity: 1; }
.admin-grid .shop-card:hover { box-shadow: 0 8px 24px rgba(15,118,110,.12); }

/* ===== Header trio: language | shop | calendar ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hdr-ctl {
  box-sizing: border-box;
  height: 42px;
  min-width: 118px;
  padding: 0 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}
select.hdr-ctl.lang-select {
  background-color: #e5e7eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23334155' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.btn-shop {
  background: #0f766e;
  color: #fff;
  border: 1px solid #0f766e;
}
.btn-shop:hover { filter: brightness(0.95); color: #fff; }
.btn-calendar {
  background: #0f766e;
  color: #fff !important;
  border: 1px solid #0f766e;
  gap: 0.35rem;
}
@media (max-width: 700px) {
  .hdr-ctl { min-width: 72px; padding: 0 0.5rem; font-size: 0.78rem; height: 38px; }
}


/* ===== Force identical header controls ===== */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}
.header-actions .hdr-ctl {
  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;
  height: 42px !important;
  padding: 0 0.5rem !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.3rem !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border-width: 1px !important;
  border-style: solid !important;
}
.header-actions select.hdr-ctl.lang-select {
  background-color: #e5e7eb !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  text-align: center;
  text-align-last: center;
}
.header-actions .btn-shop,
.header-actions .btn-calendar {
  background: #0f766e !important;
  color: #fff !important;
  border-color: #0d9488 !important;
}
@media (max-width: 720px) {
  .header-actions .hdr-ctl {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 38px !important;
    font-size: 0.72rem !important;
  }
}
.header-actions .btn-shop,
.header-actions .btn-calendar {
  background: #14b8a6 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
}
.header-actions .btn-shop span,
.header-actions .btn-calendar span {
  color: #ffffff !important;
}



/* ===== Fixed gate + card x/y per format ===== */

/* Phone portrait: stack full width under Quadriga; compact footer */
@media (max-width: 767px) and (orientation: portrait) {
  .hero { height: auto; min-height: 100svh; }
  .hero-bg { object-fit: cover; object-position: center top; }
  .hero-stage, .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 42vh 0.8rem 1.2rem;
    gap: 0.8rem;
    height: auto;
  }
  .offer-card,
  .offer-card:first-child,
  .offer-card:last-child {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 270px;
    align-self: center;
  }
  .offer-card-image { height: 78px; }
  .footer { padding: 0.55rem 0.7rem 0.7rem; }
  .footer-info,
  .footer-copy { display: none; }
  .footer-nav {
    margin: 0 auto;
    padding: 0.45rem 0.6rem;
    gap: 0.65rem;
    border-radius: 8px;
  }
  .footer-nav a { font-size: 0.78rem; }
}

/* Phone landscape: cards on side wings, middle free, header small static */
@media (max-width: 899px) and (orientation: landscape) {
  .hero { height: 100vh; min-height: 100svh; }
  .hero-bg { object-position: center top; }
  .offer-card { width: min(168px, 28vw); }
  .offer-card:first-child { left: 6%; top: 34%; }
  .offer-card:last-child { right: 6%; top: 34%; }
  .offer-card-image { height: 52px; }
  .offer-card p { -webkit-line-clamp: 2; }
}

/* Tablet portrait */
@media (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
  .offer-card { width: min(190px, 22vw); }
  .offer-card:first-child { left: 7%; top: 40%; }
  .offer-card:last-child { right: 7%; top: 40%; }
}

/* Tablet landscape / small laptop */
@media (min-width: 900px) and (max-width: 1199px) {
  .offer-card { width: min(180px, 17vw); }
  .offer-card:first-child { left: 8%; top: 36%; }
  .offer-card:last-child { right: 8%; top: 36%; }
}

/* Laptop */
@media (min-width: 1200px) and (max-width: 1599px) {
  .offer-card { width: 188px; }
  .offer-card:first-child { left: 11%; top: 46%; }
  .offer-card:last-child { right: 11%; top: 46%; }
}

/* Monitor */
@media (min-width: 1600px) and (max-width: 1919px) {
  .offer-card { width: 198px; }
  .offer-card:first-child { left: 7.5%; top: 36%; }
  .offer-card:last-child { right: 7.5%; top: 36%; }
}

/* Extra wide */
@media (min-width: 1920px) {
  .offer-card { width: 210px; }
  .offer-card:first-child { left: 8.5%; top: 36%; }
  .offer-card:last-child { right: 8.5%; top: 36%; }
}

/* Phone + small: header stays small, no shrink jitter */
@media (max-width: 767px) {
  .header,
  .header-top,
  .logo-img,
  .site-title,
  .site-tagline {
    transition: none !important;
  }
  .logo-img,
  .header.scrolled .logo-img {
    width: 72px !important;
    height: 72px !important;
  }
  .header.scrolled .header-top {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .header.scrolled .site-title { font-size: inherit; }
  .header.scrolled .site-tagline { font-size: inherit; }
}

/* Phone all orientations: small header, gold bar tight, compact footer */
@media (max-width: 767px) {
  :root { --hdr-h: 118px; }
  .menu-slot:not(.open) {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }
  .header, .header-top, .logo-img, .site-title, .site-tagline {
    transition: none !important;
  }
  .logo-img, .header.scrolled .logo-img {
    width: 64px !important;
    height: 64px !important;
  }
  .footer { padding: 0.45rem 0.6rem 0.55rem; }
  .footer-info, .footer-copy { display: none !important; }
  .footer-nav {
    margin: 0 auto;
    padding: 0.4rem 0.55rem;
    gap: 0.6rem;
  }
  .footer-nav a { font-size: 0.76rem; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  :root { --hdr-h: 168px; }
}
@media (min-width: 1200px) {
  :root { --hdr-h: 178px; }
}
@media (min-width: 1200px) {
  .header.scrolled { }
}

/* Phone landscape only: header static like portrait, gold bar tight under header-top */
@media (orientation: landscape) and (max-height: 560px) {
  .header,
  .header-top,
  .logo-img,
  .site-title,
  .site-tagline {
    transition: none !important;
  }
  .header.scrolled .header-top {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
  .header-top {
    padding: 0.2rem 0.8rem;
  }
  .logo-img,
  .header.scrolled .logo-img {
    width: 44px !important;
    height: 44px !important;
  }
  .site-tagline { display: none; }
  .site-title { font-size: 1rem; }
  .menu-slot:not(.open) {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }
  .nav-orange {
    padding: 0.28rem 1rem;
  }
  .nav-orange a { font-size: 0.88rem; }
  .offer-card {
    width: min(52.5vw, 275px);
    height: min(52.5vw, 275px);
    max-height: calc(100dvh - 5.5rem);
    display: flex;
    flex-direction: column;
  }
  .offer-card-image {
    height: 38%;
    flex: 0 0 38%;
  }
  .offer-card-body {
    flex: 1;
    overflow: hidden;
    padding: 0.4rem 0.5rem 0.35rem;
  }
  .offer-card p.offer-full { display: none; }
  .offer-card p.offer-short {
    display: block;
    -webkit-line-clamp: 4;
    font-size: 0.82rem;
    line-height: 1.3;
  }
}


@media (min-width: 1200px) {
  .offer-card-image { height: 108px; }
  .offer-card-body { padding: 0.7rem 0.7rem 0.75rem; }
  .offer-card h2 { margin-top: 0.15rem; margin-bottom: 0.7rem; }
  .offer-card p {
    padding-left: 0.4rem;
    line-height: 1.45;
    margin-bottom: 0.95rem;
  }
  .offer-short { display: none !important; }
  .offer-full {
    display: -webkit-box !important;
  }
}
