/*
  Bento Grid Design for Dr. Mirela Mujkanovic's Practice
  Inspired by modern medical landing page with card-based layout
  Keeping original teal/turquoise color palette
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Original logo colors */
  --primary: #0e9099;
  --primary-dark: #0a7178;
  --primary-light: #e0f7f8;
  --secondary: #388b89;
  --accent: #e4dbcc;

  /* Bento design colors */
  --bg-main: #e8f4f5;
  --bg-card: #ffffff;
  --bg-dark-card: #0a3d40;
  --bg-gradient: linear-gradient(135deg, #0e9099 0%, #388b89 100%);

  /* Text colors */
  --text-primary: #1a1a2e;
  --text-secondary: #5a6a7a;
  --text-muted: #8899a8;
  --text-on-dark: #ffffff;

  /* Design tokens */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(14, 144, 153, 0.06);
  --shadow-md: 0 4px 20px rgba(14, 144, 153, 0.08);
  --shadow-lg: 0 8px 40px rgba(14, 144, 153, 0.12);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --gap: 16px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-medium: 0.4s var(--ease-out);
}

/* Base Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: white;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
  color: white;
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1400px;
  z-index: 1000;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

header.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform var(--transition-fast);
  position: relative;
  margin: 0;
  z-index: 10;
}

.logo:hover img {
  transform: scale(1.03);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

nav a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

nav a.active {
  color: white;
  background: var(--primary);
}

/* Contact button */
nav a.nav-contact-btn {
  background: var(--bg-gradient);
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(14, 144, 153, 0.25);
}

nav a.nav-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 144, 153, 0.35);
  color: white;
}

/* Nav Button Group for "Anschreiben" & "Anfahrt" */
.nav-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a.nav-contact-btn.small-btn {
  padding: 10px 16px;
  font-size: 0.85rem;
}

nav a.nav-contact-btn.secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

nav a.nav-contact-btn.secondary:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (max-width: 900px) {
  header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  nav .nav-list {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 280px;
    height: auto;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: var(--bg-card);
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-medium);
    border-radius: var(--radius-lg);
  }

  nav .nav-list.nav-open {
    right: 12px;
  }

  nav a {
    width: 100%;
    padding: 10px 20px;
    border-radius: var(--radius-md);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================
   HERO - BENTO GRID LAYOUT
   ============================================ */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 16px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--gap);
}

/* Left side - Text content */
.hero-text {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero-badge i {
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--primary-light);
  z-index: -1;
  border-radius: 4px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

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

/* Primary Button - Pill style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-gradient);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(14, 144, 153, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 144, 153, 0.4);
  color: white;
}

.btn-primary i {
  transition: transform var(--transition-fast);
}

.btn-primary:hover i {
  transform: translateX(3px);
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Right side - Bento Image Grid */
.hero-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--gap);
  position: relative;
}

@keyframes pulse-heartbeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-image>img:first-of-type {
  grid-column: 1 / 3;
  height: auto;
  box-shadow: var(--shadow-lg);
  animation: pulse-heartbeat 3s ease-in-out infinite;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.2rem;
  color: #f59e0b;
}

.floating-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
}

.floating-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.float-1 {
  bottom: 30%;
  left: -20px;
}

.float-2 {
  top: 30%;
  right: -10px;
  animation-delay: 2s;
}

.float-2 i {
  color: var(--primary);
}

/* ============================================
   STATS SECTION - Bento Cards
   ============================================ */
.section-dark {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.fun-facts {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 50px 60px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  box-shadow: var(--shadow-card);
}

.fun-fact {
  text-align: center;
}

.fun-fact .number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.fun-fact .number::after {
  content: '+';
  color: var(--primary);
}

.fun-fact .number.no-plus::after {
  content: none;
}

.fun-fact p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   SERVICES SECTION - Bento Grid
   ============================================ */
.section-light {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-title .highlight {
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 50px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-medium);
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-medium);
  position: relative;
  /* Ensure text color transition works */
}

/* Ensure all text inside inherits color change or transitions */
.service-card h3,
.service-card p,
.service-card i {
  transition: color var(--transition-medium);
}

.service-card.blog-card {
  padding: 0;
  display: grid;
  grid-template-areas: "stack";
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--bg-gradient);
  transition: height var(--transition-medium);
  border-radius: 0 0 4px 4px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-light);
  /* Button hover effect */
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover i {
  color: var(--primary);
  /* Button hover effect text color */
}

/* Removed expanding top border on hover to match "Gut zu wissen" style */
.service-card:hover::before {
  height: 4px;
  /* Keep it as a top border only */
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Featured service card - larger */
.service-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--bg-dark-card);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 350px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(14,144,153,0.3)"/><circle cx="20" cy="80" r="20" fill="rgba(56,139,137,0.2)"/></svg>');
  background-size: cover;
}

.service-card.featured h3 {
  color: white;
  font-size: 1.5rem;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.8);
}

.service-card.featured::before {
  display: none;
}

/* ============================================
   ABOUT SECTION - Bento Layout
   ============================================ */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 16px;
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: pulse-heartbeat 3s ease-in-out infinite;
}

.about-text {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.about-text a {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.about-text a:hover {
  gap: 10px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: var(--bg-dark-card);
  border-radius: var(--radius-xl);
  padding: 80px 50px;
  text-align: center;
  color: white;
  max-width: 1000px;
  margin: 60px auto;
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(14, 144, 153, 0.2);
}

.cta::before {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
}

.cta::after {
  width: 150px;
  height: 150px;
  bottom: -40px;
  right: -40px;
}

.cta h2 {
  color: white;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 450px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  color: var(--primary);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

/* ============================================
   TESTIMONIALS - Bento Cards
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-medium);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial p {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-secondary);
}

.testimonial-author {
  font-style: normal !important;
  font-weight: 700;
  color: var(--primary) !important;
  margin-top: 16px;
  font-size: 0.9rem;
}

/* ============================================
   FOOTER - Clean Bento Style
   ============================================ */
footer {
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 80px 16px 40px;
  margin-top: 60px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-brand img {
  height: 80px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4,
.opening-hours h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.opening-hours table {
  width: 100%;
  border-collapse: collapse;
}

.opening-hours th,
.opening-hours td {
  padding: 6px 0;
  text-align: left;
  font-size: 0.85rem;
}

.opening-hours th {
  color: var(--text-secondary);
  font-weight: 500;
}

.opening-hours td {
  color: var(--text-muted);
}

.emergency-numbers {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-main);
}

.emergency-numbers p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer-contact p {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--primary);
}

/* Copyright */
footer>p:last-child {
  text-align: center;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-main);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.service-card:nth-child(1) {
  transition-delay: 0s;
}

.service-card:nth-child(2) {
  transition-delay: 0.05s;
}

.service-card:nth-child(3) {
  transition-delay: 0.1s;
}

.service-card:nth-child(4) {
  transition-delay: 0.15s;
}

.service-card:nth-child(5) {
  transition-delay: 0.2s;
}

.service-card:nth-child(6) {
  transition-delay: 0.25s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card.featured {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 250px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 16px 40px;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
    padding: 20px 0;
  }

  .hero-badge {
    margin: 0 auto 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    margin: 0 auto 24px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    display: block;
  }

  .hero-image img:first-of-type {
    max-height: 300px;
    border-radius: var(--radius-lg);
  }

  .floating-card {
    display: none;
  }

  .fun-facts {
    padding: 40px 30px;
    gap: 30px;
  }

  .fun-fact .number {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: span 1;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .cta {
    margin: 40px 16px;
    padding: 50px 30px;
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .opening-hours table {
    width: auto;
    margin: 0 auto;
  }

  .opening-hours th,
  .opening-hours td {
    padding-left: 15px;
    padding-right: 15px;
  }

  .social-icons {
    justify-content: center;
  }

  .section,
  .section-light {
    padding: 50px 16px;
  }
}

/* ============================================
   VACATION BANNER
   ============================================ */
.vacation-banner {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  text-align: center;
  padding: 14px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  border-radius: 0;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Info Box */
.info-box {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 4px solid var(--primary);
}

/* ============================================
   PAGE HERO (Subpages)
   ============================================ */
.page-hero {
  background: var(--bg-card);
  padding: 140px 40px 60px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Important Notes List */
.important-notes {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.important-notes li {
  background: var(--bg-card);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  position: relative;
  padding-left: 50px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.important-notes li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.important-notes li::before {
  content: '•';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Team Grid (for subpages that might use it) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member .overlay,
.team-member .info {
  padding: 24px;
  text-align: center;
}

.team-member h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.team-member p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Service Card Icons (for leistungen page) */
.service-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

/* Responsive for page-hero */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 20px 40px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .important-notes li {
    padding: 16px 20px 16px 44px;
  }

  .important-notes li::before {
    left: 16px;
  }
}

/* ============================================
   FACTS SECTION
   ============================================ */
.fact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.fact-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.fact-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   BLOG OVERLAY
   ============================================ */
/* .service-card.blog-card is now defined above to handle grid/padding */

.card-summary {
  grid-area: stack;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
}

.blog-overlay {
  grid-area: stack;
  position: relative;
  /* Flow relative to grid cell */
  background: rgba(22, 100, 107, 0.98);
  /* Higher opacity to cover content */
  color: white;
  padding: 24px;
  border-radius: 0;

  /* Hidden state */
  display: none;
  opacity: 0;
  visibility: hidden;

  /* Transition setup */
  transition: opacity 0.3s ease;
  z-index: 10;

  /* Ensure it fills the space if text is short, but grows if long */
  width: 100%;
  height: auto;
  min-height: 100%;
}

.blog-overlay.active {
  display: flex;
  /* Flex to layouts content nicely */
  flex-direction: column;
  opacity: 1;
  visibility: visible;
}

/* Fix: Ensure overlay text stays white even on hover */
.service-card:hover .blog-overlay h4,
.service-card:hover .blog-overlay p,
.service-card:hover .blog-overlay li {
  color: white;
}

.blog-overlay h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
  margin-top: 0;
}

.blog-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.blog-overlay ul {
  padding-left: 20px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.blog-overlay li {
  margin-bottom: 4px;
}

.blog-overlay .highlight-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-top: auto;
  font-weight: 500;
  font-size: 0.85rem;
}