/* ═══════════════════════════════════════════════════════════
   main.css — Thailand Rundreisen
   www.thailandrundreisen.de
   ═══════════════════════════════════════════════════════════ */

/* ── @font-face (lokal, kein Google Fonts) ── */
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-display/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-display/PlayfairDisplay-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-display/PlayfairDisplay-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3/SourceSans3-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3/SourceSans3-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3/SourceSans3-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Design-System: CSS Custom Properties ── */
:root {
  --primary:    #EF7627;
  --secondary:  #1A3A5C;
  --accent:     #F5C842;
  --text:       #1F1F1F;
  --bg:         #FAFAF7;
  --white:      #ffffff;
  --grey-light: #f0eeea;
  --grey:       #9a9a8e;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Source Sans 3', system-ui, sans-serif;
  --radius:     12px;
  --radius-sm:  6px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --max-width:  1200px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }
ul, ol { list-style: none; }

/* ── Skip Links ── */
.skip-link {
  position: absolute; top: -100%; left: 0; padding: 12px 20px;
  background: var(--secondary); color: var(--white);
  font-weight: 600; z-index: 9999; border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Sticky Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.site-logo { display:flex; align-items:center; text-decoration:none; flex-shrink:0; }
.site-logo img { height:48px; width:auto; display:block; }
.site-logo-text { font-family:var(--font-head); font-size:1.4rem; font-weight:700; color:var(--white); display:none; }
.site-logo-text span { color:var(--primary); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  min-height: 44px; display: flex; align-items: center;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--grey-light); color: var(--primary);
}

.nav-cta {
  background: var(--primary); color: var(--white) !important;
  border-radius: var(--radius-sm); padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--secondary) !important; color: var(--white) !important; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; min-width: 44px; min-height: 44px;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); transition: var(--transition);
}

/* ── Breadcrumb ── */
.breadcrumb { background: var(--grey-light); padding: 10px 0; }
.breadcrumb-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; }
.breadcrumb li::after { content: '›'; margin-left: 6px; color: var(--grey); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 480px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #0f2340 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-width); margin: 0 auto; padding: 80px 24px;
  color: var(--white);
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2; margin-bottom: 20px; max-width: 700px;
}
.hero p { font-size: 1.15rem; max-width: 560px; margin-bottom: 32px; opacity: 0.92; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  min-height: 44px; transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: #d4621a; border-color: #d4621a; color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--secondary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ── Container / Sections ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--secondary); margin-bottom: 12px;
}
.section-subtitle { color: var(--grey); font-size: 1.05rem; margin-bottom: 40px; }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-tag {
  display: inline-block; background: var(--grey-light); color: var(--secondary);
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; margin-bottom: 10px; text-transform: uppercase;
}
.card-title { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; color: var(--secondary); }
.card-text { color: var(--grey); font-size: 0.95rem; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--primary); }

/* ── Social Proof Banner ── */
.social-proof {
  background: var(--secondary); color: var(--white);
  padding: 20px 0; text-align: center;
}
.social-proof-inner { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.proof-item { display: flex; flex-direction: column; align-items: center; }
.proof-number { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.proof-label { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }

/* ── Testimonials Slider ── */
.testimonials { background: var(--grey-light); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track { display: flex; transition: transform 0.5s ease; }
.testimonial-item {
  min-width: 100%; padding: 0 40px; text-align: center;
}
.testimonial-quote {
  font-family: var(--font-head); font-size: 1.2rem; font-style: italic;
  max-width: 680px; margin: 0 auto 20px; line-height: 1.6;
}
.testimonial-author { font-weight: 700; color: var(--secondary); }
.testimonial-origin { color: var(--grey); font-size: 0.9rem; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grey); border: none; cursor: pointer;
  transition: background var(--transition); min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  background-clip: content-box; padding: 16px;
}
.slider-dot.active { background: var(--primary); background-clip: content-box; }

/* ── Reisezeit-Widget ── */
.reisezeit-widget { margin: 32px 0; }
.reisezeit-strip { display: flex; border-radius: var(--radius-sm); overflow: hidden; }
.reisezeit-month {
  flex: 1; padding: 10px 4px; text-align: center; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; transition: opacity var(--transition);
  min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.reisezeit-month.ideal  { background: #4caf50; color: #fff; }
.reisezeit-month.ok     { background: var(--accent); color: var(--secondary); }
.reisezeit-month.neben  { background: var(--grey); color: #fff; }
.reisezeit-month:hover  { opacity: 0.8; }
.reisezeit-detail {
  background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius); padding: 20px; margin-top: 12px;
  display: none;
}
.reisezeit-detail.active { display: block; }

/* ── FAQ Accordion ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: var(--radius-sm); border: 1px solid var(--grey-light); overflow: hidden; }
.faq-item summary {
  padding: 18px 20px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; min-height: 44px;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--grey-light); }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 20px 18px; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--grey-light);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 1rem; background: var(--white); color: var(--text);
  transition: border-color var(--transition);
  min-height: 44px;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control.error { border-color: #c0392b; }
.form-error { color: #c0392b; font-size: 0.85rem; margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Newsletter Footer Banner ── */
.newsletter-banner { background: var(--secondary); color: var(--white); padding: 48px 0; }
.newsletter-banner h2 { font-family: var(--font-head); font-size: 1.7rem; margin-bottom: 8px; }
.newsletter-banner p { opacity: 0.85; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 12px; max-width: 460px; }
.newsletter-form .form-control { flex: 1; }
.newsletter-success { color: var(--accent); font-weight: 600; display: none; }
.newsletter-success.visible { display: block; }

/* ── Footer ── */
.site-footer { background: #0f1e2e; color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--primary); }
.footer-desc { font-size: 0.9rem; line-height: 1.6; }
.footer-heading { font-weight: 700; color: var(--white); margin-bottom: 14px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--primary); }
.footer-partner {
  background: rgba(255,255,255,0.06); border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 0.82rem; text-align: center;
}

/* ── Back-to-Top ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  background: var(--primary); color: var(--white); border: none;
  border-radius: 50%; width: 48px; height: 48px; cursor: pointer;
  box-shadow: var(--shadow-md); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ── Images ── */
.image-figure { margin: 24px 0; }
.image-credit { font-size: 0.78rem; color: var(--grey); margin-top: 6px; }
.image-credit a { color: var(--grey); }
.image-credit a:hover { color: var(--primary); }
.ai-badge {
  display: inline-block; background: var(--secondary); color: #fff;
  font-size: .7rem; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; text-transform: uppercase;
  letter-spacing: .05em; margin-right: 6px;
}
.image-credit--ai { border-left: 3px solid var(--secondary); padding-left: 8px; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--secondary); color: var(--white);
  padding: 20px 24px; display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap; box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.cookie-banner p { flex: 1; min-width: 260px; font-size: 0.9rem; }
.cookie-banner a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.9rem; cursor: pointer; min-height: 44px; border: 2px solid;
  transition: all var(--transition);
}
.cookie-btn-accept { background: var(--primary); border-color: var(--primary); color: #fff; }
.cookie-btn-accept:hover { background: #d4621a; }
.cookie-btn-necessary { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.cookie-btn-necessary:hover { border-color: #fff; }
.cookie-banner.hidden { display: none; }

/* ── Lese-Fortschrittsbalken (Blog) ── */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--primary); z-index: 9999; width: 0%;
  transition: width 0.1s linear;
}

/* ── Related Content ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── Inline Map ── */
#map { height: 420px; border-radius: var(--radius); overflow: hidden; margin: 32px 0; }
