/* ==========================================================================
   STÄDTESEITEN & FILTER STYLES (staedte.css)
   ========================================================================== */

/* Garantiert sauberes Box-Modell für alle Elemente */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Der allgemeine Container mit garantiertem Seitenabstand auf Mobilgeräten */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Schutz & Inhaltsabstände für Textbereiche */
.content-wrapper {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.intro-text-section,
.intro-card-section {
  padding-left: 5px;
  padding-right: 5px;
}

/* Bullet-Points in den Card-Sektionen entfernen */
.intro-card-section ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.intro-card-section li {
  margin-bottom: 0.5rem; /* Sorgt für saubere Abstände zwischen den Zeilen */
}

/* Hero Bereich für Städteseiten */
.hero-with-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 80px 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 30px;
}

.hero-with-bg h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-with-bg p {
  color: #f0f0f0;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Filterleiste Container */
.filter-bar-wrapper {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  background-color: var(--light-bg);
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  border-color: var(--primary);
}

/* Filter Statusleiste & Reset */
.filter-stats {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.btn-reset-filters:hover {
  opacity: 0.8;
}

/* Ausblenden der Karten bei Filterung */
.activity-card.is-hidden {
  display: none !important;
}

/* ==========================================================================
   BADGES FÜR AUTOREN HEADER
   ========================================================================== */

.author-badge {
  display: inline-block;
  background-color: #f1f5f9;
  color: #e05236;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.author-badge-link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease;
}

.author-badge-link:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   LAYOUT & GRID FÜR KARTEN
   ========================================================================== */

#activities-container,
.activities-grid,
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.activity-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.activity-card-header {
  padding: 1rem 1rem 0 1rem;
  flex-shrink: 0;
}

.activity-card-body {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* FIX: Garantiert dieselbe Startlinie für alle gestrichelten Boxen */
.activity-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 12px 0 6px 0;
  line-height: 1.3;
  min-height: 2.6rem;
}

.activity-description {
  font-size: 0.85rem;
  color: #718096;
  margin: 0 0 12px 0;
  line-height: 1.4;
  min-height: 2.4rem;
}

/* ==========================================================================
   GESTRICHELTE KARTE & GYG-WIDGETS (PROPORTIONAL & REFRAGIL)
   ========================================================================== */

.gyg-card-frame,
.widget-container {
  border: 1px dashed #000000;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  margin-top: auto;
  min-height: 440px; /* Bietet ausreichend Höhe für alle GYG-Infos */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
}

/* GYG Widget iFrame: Verhindert das Abschneiden des Footers */
.widget-container iframe,
.widget-container [data-gyg-widget] {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px !important;
  display: block;
}

/* Eigener Tipp Styles (Custom Card) */
.custom-gyg-card {
  gap: 10px;
}

.gyg-card-img {
  width: 100%;
  height: 190px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* Schärferes Rendering für Karten-Bilder */
.gyg-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Verbessert das Interpolieren von skalierten Bildern in Chrome/Safari/Firefox */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.gyg-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.gyg-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d1b2a;
  line-height: 1.25;
  margin: 4px 0 8px 0;
}

.gyg-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.gyg-card-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4a5568;
}

.duration-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}

.gyg-card-rating {
  font-size: 0.8rem;
  font-weight: 500;
  color: #718096;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.star-icon {
  color: #FFD938;
  font-size: 1.1rem;
  line-height: 1;
}

.gyg-card-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #4a5568;
  margin: 4px 0 0 0;
}

.gyg-card-footer {
  border-top: 1px solid #edf2f7;
  padding-top: 8px;
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px;
}

.gyg-card-price-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2b6cb0;
}

/* ==========================================================================
   STÄDTE UBERSICHTSSEITE (staedte.html)
   ========================================================================== */

.cities-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.city-overview-card {
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 280px;
  display: block;
}

.city-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.city-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.city-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.city-card-overlay h2 {
  font-size: 1.75rem;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.city-card-overlay p {
  font-size: 0.95rem;
  margin: 0 0 12px 0;
  color: #e2e8f0;
}

.btn-city-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   AFFILIATE HIGHLIGHT BANNER (Optimierte Mobil-Abstände)
   ========================================================================== */

/* Abstände des oberen Intro-Textes reduzieren */
.intro-text-section,
p:has(+ .affiliate-highlight-box) {
  margin-bottom: 0.5rem !important;
}

.affiliate-highlight-box {
  background: #f8f9fa;
  padding: 0;
  margin: 0.75rem auto 1.5rem auto;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-highlight-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.affiliate-banner-image {
  width: 100%;
}

.affiliate-banner-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.affiliate-banner-content {
  width: 100%;
  padding: 1rem 1rem 1.25rem 1rem;
  box-sizing: border-box;
  border-left: 4px solid #eb5757; 
}

.badge-warning {
  display: inline-block;
  background: #eb5757;
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.affiliate-banner-content h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.affiliate-banner-content p {
  color: #4a4a4a;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.btn-affiliate {
  display: inline-block;
  background: #eb5757;
  color: #ffffff;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-affiliate:hover {
  background: #d94343;
}

.btn-affiliate::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* ==========================================================================
   DESKTOP & TABLET LAYOUT (ab 680px)
   ========================================================================== */
@media (min-width: 680px) {
  .affiliate-highlight-box {
    flex-direction: row;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .affiliate-banner-image {
    width: 240px;
    flex-shrink: 0;
  }

  .affiliate-banner-image img {
    height: 100%;
    min-height: 180px;
    border-radius: 6px;
  }

  .affiliate-banner-content {
    flex: 1;
    padding: 0 0 0 1.25rem;
  }

  .affiliate-banner-content h3 {
    font-size: 1.3rem;
  }

  .affiliate-banner-content p {
    font-size: 0.95rem;
  }
}

/* E-E-A-T Meta-Leiste */
.author-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.author-meta strong {
  color: #333333;
}

.meta-separator {
  color: #cccccc;
}

/* ==========================================================================
   FAQ SECTION (Optimierte Abstände & Typografie)
   ========================================================================== */

.faq-section {
  padding: 2.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 1.75rem;
  color: #1a1a1a;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  color: #1a1a1a;
}

.faq-item p {
  margin-top: 0;
  margin-bottom: 0;
  color: #4a4a4a;
  line-height: 1.55;
  font-size: 0.95rem;
}

.faq-item ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  color: #4a4a4a;
}

/* ==========================================================================
   BARCELONA CARD COMPONENT (DESKTOP TABELLE / MOBILE CARDS)
   ========================================================================== */

.desktop-table-wrapper {
  display: block;
  margin-top: 2rem;
}

.mobile-cards-wrapper {
  display: none;
}

.card-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.card-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.6rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #0d1b2a;
}

.card-price {
  background: var(--primary, #0066cc);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-detail {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a5568;
}

.card-detail strong {
  display: block;
  color: #718096;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.card-action {
  margin-top: 1rem;
}

.card-action .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
}

/* Mobil-Breakpoint: Umschalten auf Cards & garantierte Innenabstände */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .desktop-table-wrapper {
    display: none;
  }

  .mobile-cards-wrapper {
    display: block;
    margin-top: 1.5rem;
  }
}

/* ==========================================================================
   INFOBOX & GYG WIDGET LAYOUT (Endgültige Lösung)
   ========================================================================== */

/* Mobil (bis 768px): Untereinander */
.info-widget-flex-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 25px 0 !important;
  box-sizing: border-box !important;
}

.info-widget-flex-wrapper > div {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Desktop (ab 769px): Zwingend nebeneinander */
@media (min-width: 769px) {
  .info-widget-flex-wrapper {
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
  }

  .info-widget-flex-wrapper > .intro-card-section {
    width: 63% !important;
    max-width: 63% !important;
    flex: 0 0 63% !important;
    margin: 0 !important;
  }

  .info-widget-flex-wrapper > .gyg-widget-wrapper {
    width: 34% !important;
    max-width: 34% !important;
    flex: 0 0 34% !important;
    margin: 0 !important;
  }
}

/* Verhindert das Ausbrechen des GYG-Frames */
.gyg-widget-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.gyg-widget-wrapper iframe,
.gyg-widget-wrapper [data-gyg-widget] {
  width: 100% !important;
  max-width: 100% !important;
}
/* ==========================================================================
   EINHEITLICHER SEITENABSTAND (DESKTOP & MOBIL)
   ========================================================================== */

/* Zwingt den gesamten Textbereich nach der Infobox in das einheitliche Raster */
.content-wrapper,
.intro-text-section,
.content-wrapper > h3,
.content-wrapper > p,
.content-wrapper > ul {
  max-width: 1100px !important; /* Passt zur max-width des .container */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;  /* Bietet auf Desktop & Mobil perfekten Abstand */
  padding-right: 20px !important;
  box-sizing: border-box !important;
}