/* ============================================================
   AUSZEIT REISEN — Global Design System
   Reise-Atelier fuer Luxuskreuzfahrten & Expeditionen
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Colors — Brand */
  --color-navy: #0A1628;
  --color-gold: #C9A84C;
  --color-ivory: #F5F3EF;
  --color-white: #FFFFFF;
  --color-charcoal: #1A1A1A;

  /* Colors — Premium Dark Palette */
  --color-dark-bg: #0B0F14;
  --color-dark-card: #0F1418;
  --color-dark-alt: #141A22;
  --color-dark-border: rgba(255, 255, 255, 0.08);

  /* Colors — Gold Variants */
  --color-gold-light: #D4B96A;
  --color-gold-dark: #B08F3A;
  --color-gold-subtle: rgba(201, 168, 76, 0.25);
  --color-gold-border: rgba(201, 168, 76, 0.3);
  --color-gold-glow: rgba(201, 168, 76, 0.15);
  --color-gold-gradient: linear-gradient(135deg, #C9A84C 0%, #D4B96A 50%, #C9A84C 100%);

  /* Colors — Derived / UI */
  --color-navy-light: #132240;
  --color-navy-dark: #060E1A;
  --color-gray-100: #F8F7F5;
  --color-gray-200: #E8E6E1;
  --color-gray-300: #D1CEC7;
  --color-gray-400: #A09D96;
  --color-gray-500: #6B6862;
  --color-gray-600: #4A4843;
  --color-soft-text: #B8C4D0;
  --color-text: #E0DDD8;
  --color-text-muted: #8A8F96;
  --color-text-inverse: var(--color-white);
  --color-bg: var(--color-dark-bg);
  --color-bg-card: var(--color-dark-card);
  --color-bg-dark: var(--color-dark-bg);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-accent: var(--color-gold);

  /* Typography — Font Families */
  --font-headline: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Typography — Font Sizes (Desktop) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-md: 1.125rem;   /* 18px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 1.75rem;   /* 28px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.5rem;    /* 56px */

  /* Typography — Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Typography — Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 5rem;     /* 80px */

  /* Section Spacing — Premium */
  --section-padding: 6.25rem;                 /* 100px desktop */
  --section-padding-mobile: 3.75rem;          /* 60px mobile */

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: var(--space-lg);       /* 24px */

  /* Borders & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --border-width: 1px;
  --border-gold: 3px;

  /* Shadows — Premium */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);

  /* Transitions — Premium */
  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-whatsapp: 500;
}


/* ------------------------------------------------------------
   2. CSS Reset (Modern)
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100% !important;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden !important;
  max-width: 100% !important;
  position: relative;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-family: var(--font-headline);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-white);
}

p {
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: none;
}


/* ------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------ */
h1 {
  font-size: var(--text-6xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

h2::after,
h2:after {
  display: none !important;
  content: none !important;
}

.text-center h2,
h2.text-center {
  display: block;
  text-align: center;
}


h3 {
  font-size: var(--text-2xl);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
}

h6 {
  font-size: var(--text-md);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
}

p + p {
  margin-top: var(--space-md);
}

.text-lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-soft-text);
}

small,
.text-small {
  font-size: var(--text-sm);
}

strong {
  font-weight: var(--weight-semibold);
}


/* ------------------------------------------------------------
   4. Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--section-padding);
  background-color: #0B0F14;
  color: #F5F3EF;
}

.section--dark {
  background-color: #0B0F14 !important;
  color: #F5F3EF !important;
}


.section--ivory {
  background-color: #141A22 !important;
  color: #F5F3EF !important;
}

.section--white {
  background-color: #0F1418 !important;
  color: #F5F3EF !important;
}


/* ------------------------------------------------------------
   5. Gold Accent Line
   ------------------------------------------------------------ */
.gold-line {
  display: block;
  width: 60px;
  height: var(--border-gold);
  background: var(--color-gold-gradient);
  border: none;
  margin-block: var(--space-lg);
}

.gold-line--center {
  margin-inline: auto;
}

/* Section gold divider — hidden to reduce visual clutter */
.gold-divider {
  display: none !important;
}

/* Hide stray hr elements */
hr {
  display: none !important;
}

/* Reduce section spacing on consecutive sections */
section + section {
  padding-top: 0;
}

/* Hide empty angebote grids */
.angebote-grid:empty {
  display: none;
}


/* ------------------------------------------------------------
   6. Buttons & CTAs
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base),
              color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary: Gold gradient background */
.btn--primary {
  background: var(--color-gold-gradient);
  color: var(--color-navy);
  font-weight: var(--weight-semibold);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #D4B96A 0%, #E0C87A 50%, #D4B96A 100%);
  box-shadow: var(--shadow-gold), var(--shadow-md);
}

/* Secondary: Gold outline */
.btn--secondary {
  background-color: transparent;
  color: var(--color-gold);
  box-shadow: inset 0 0 0 1px var(--color-gold);
}

.btn--secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

/* Ghost: on dark backgrounds */
.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  box-shadow: inset 0 0 0 2px var(--color-gold);
}

.btn--ghost:hover {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

/* Small variant */
.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
}


/* ------------------------------------------------------------
   7. Cards
   ------------------------------------------------------------ */
.card {
  background-color: var(--color-dark-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px);
  border-color: #C9A84C;
}

.card__image-wrap {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 8px 8px 0 0;
}

.card:hover .card__image {
  transform: scale(1.06);
}

.card__body {
  padding: 24px;
}

.card__title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-soft-text);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}


/* ------------------------------------------------------------
   8. Links & Inline
   ------------------------------------------------------------ */
.link {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--color-gold-light);
}


/* ------------------------------------------------------------
   9. Forms (base)
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-soft-text);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.06);
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}


/* ------------------------------------------------------------
   10a. Accessibility — Focus & Skip Link
   ------------------------------------------------------------ */
*:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: #C9A84C;
  color: #0B0F14;
  padding: 10px 20px;
  z-index: 10001;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ------------------------------------------------------------
   10. Utility Classes
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-soft-text); }

/* Eyebrow text */
.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}


/* ------------------------------------------------------------
   11. Responsive — Mobile First Overrides
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  h1 { font-size: clamp(1.8rem, 5vw, var(--text-5xl)); }
  h2 { font-size: clamp(var(--text-xl), 4vw, var(--text-4xl)); }
  h3 { font-size: clamp(var(--text-lg), 3.5vw, var(--text-2xl)); }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
    min-height: 48px;
  }

  /* Global: ALL grids single-column on mobile */
  .card-grid,
  .card-grid--2,
  .card-grid--3,
  .card-grid--4,
  .route-cards,
  .reederei-cards,
  .team-grid,
  .team-members,
  .trust-grid,
  .reisewelten-grid,
  .testimonials,
  .related-articles__grid,
  [class*="card-grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-lg);  /* 24px on mobile */
  }
}


/* ------------------------------------------------------------
   12. Print
   ------------------------------------------------------------ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .btn,
  nav,
  .sticky-contact-bar {
    display: none !important;
  }
}


/* ------------------------------------------------------------
   13. Price Disclaimer
   ------------------------------------------------------------ */
.price-disclaimer {
  font-size: 0.7rem;
  color: #B8C4D0;
  text-align: center;
  margin-top: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.tip-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}


/* ============================================================
   DARK THEME — Maerz 2026 Global Fix
   Alle Sections dunkel, alle Texte sichtbar.
   ============================================================ */

/* Section Hintergruende */
.section--dark  { background: #0B0F14 !important; }
.section-alt    { background: #0F1418 !important; }
.section-highlight { background: #141A22 !important; }
.section--white { background: #0F1418 !important; }
.section--ivory { background: #141A22 !important; }

/* Globale Textfarben — ALLE Sections */
section, .section, .section--dark, .section-alt, .section-highlight, .section--white, .section--ivory { color: #F5F3EF !important; }
section h2, section h3, .section h2, .section h3 { color: #F5F3EF !important; font-family: 'Playfair Display', Georgia, serif; }
section p, section li, section td, section dd, .section p, .section li { color: #B8C4D0 !important; }
section th, .section th { color: #C9A84C !important; }
section a:not(.btn):not(.page-hero__btn-primary):not(.page-hero__btn-ghost), .section a:not(.btn) { color: #C9A84C !important; }
section summary, .section summary { color: #F5F3EF !important; }
section strong, .section strong { color: #F5F3EF !important; }

/* Cards und Boxen */
.card,
[class*="card"]:not(.angebot-card__logo),
.info-box,
.tip-box,
.faq-item,
blockquote,
.hub-intro,
.team-card,
.magazin-card,
.reisewelt-card,
.testimonial,
[class*="box"],
details {
  background: #0F1418 !important;
  color: #F5F3EF !important;
  border-color: rgba(201, 168, 76, 0.15) !important;
}

/* Ausnahmen: Card-Images, Overlays und Logos nicht ueberschreiben */
.card img,
[class*="card"] img {
  background: transparent !important;
}
/* Spezifizitaet 0,2,0 — gleich wie [class*="card"]:not(...) */
[class*="card"].rd-card__overlay,
.rd-wizard .rd-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%) !important;
}
[class*="card"].rd-card__label,
[class*="card"].rd-card__check {
  background: transparent !important;
}

/* Angebot-Card Logo braucht hellen BG fuer Lesbarkeit */
.angebot-card__logo {
  background: rgba(255, 255, 255, 0.92) !important;
}

/* Slider/Carousel Pfeile global verstecken (kein Slider auf Unterseiten) */
.page-hero ~ * [class*="scroll-btn"],
.page-hero ~ * [class*="slider-btn"],
.page-hero ~ * [class*="carousel-btn"] {
  display: none !important;
}

/* ============================================================
   MOBILE: Scrollbar und Pfeile verstecken
   ============================================================ */
@media (max-width: 767px) {
  /* Scrollbars auf Mobile komplett verstecken */
  .reederei-strip,
  .tabs,
  [class*="carousel"],
  [class*="slider"] {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .reederei-strip::-webkit-scrollbar,
  .tabs::-webkit-scrollbar,
  [class*="carousel"]::-webkit-scrollbar,
  [class*="slider"]::-webkit-scrollbar {
    display: none !important;
  }

  /* Alle Carousel/Slider Pfeile auf Mobile verstecken */
  /* ACHTUNG: [class*="arrow"] matcht auch container--narrow! Deshalb spezifische Klassen */
  .slider-arrow,
  .carousel-arrow,
  .swiper-button-prev,
  .swiper-button-next,
  [class*="prev-btn"],
  [class*="next-btn"],
  [class*="scroll-btn"],
  [class*="carousel-btn"],
  [class*="slider-btn"] {
    display: none !important;
  }
}
