/* =============================================
   BRAND.CSS — RheinWege Reisen GmbH
   Variables · Typography · Base · Utilities
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ─────────────────────────── */
:root {
  /* Core Palette */
  --primary:       #1B3F4B;
  --secondary:     #3A5A4A;
  --accent:        #C4A65A;
  --accent-2:      #8E6652;
  --bg:            #E3ECEE;
  --bg-soft:       #D3E0E3;
  --bg-dark:       #2A373A;
  --text:          #1F2627;
  --text-muted:    #4A6165;
  --text-faint:    #7A9298;
  --white:         #FFFFFF;
  --border:        rgba(27, 63, 75, 0.10);
  --border-md:     rgba(27, 63, 75, 0.18);

  /* Gradients */
  --grad-hero:    linear-gradient(140deg, #1B3F4B 0%, #3A5A4A 55%, #2A373A 100%);
  --grad-bg:      linear-gradient(180deg, #E3ECEE 0%, #D3E0E3 100%);
  --grad-accent:  linear-gradient(135deg, #C4A65A 0%, #D6BD7B 100%);
  --grad-nature:  linear-gradient(135deg, #3A5A4A 0%, #6C8576 100%);
  --grad-warm:    linear-gradient(135deg, #8E6652 0%, #A37A63 100%);
  --overlay:      rgba(27, 63, 75, 0.44);

  /* Typography */
  --font:  'Inter', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'IBM Plex Mono', 'Courier New', monospace;

  /* Type Scale */
  --text-xs:   0.72rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.625rem;
  --text-2xl:  2rem;
  --text-3xl:  clamp(1.75rem, 3.5vw, 2.75rem);
  --text-4xl:  clamp(2.25rem, 5vw, 3.75rem);
  --text-hero: clamp(2.5rem, 6.5vw, 5.25rem);

  /* Spacing */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;  --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem; --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;    --sp-24: 6rem;
  --sp-32: 8rem;

  /* Border Radius */
  --r-sm:  4px;   --r-md:  10px;  --r-lg:  18px;
  --r-xl:  28px;  --r-2xl: 40px;  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(27,63,75,0.06);
  --shadow-sm: 0 2px 14px rgba(27,63,75,0.09);
  --shadow-md: 0 6px 30px rgba(27,63,75,0.13);
  --shadow-lg: 0 14px 56px rgba(27,63,75,0.17);
  --shadow-xl: 0 24px 84px rgba(27,63,75,0.22);

  /* Transitions */
  --t-fast:   0.18s ease;
  --t-base:   0.3s ease;
  --t-slow:   0.5s ease;
  --t-spring: 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --container: 1240px;
  --cpad:      clamp(1rem, 4vw, 2.5rem);
  --header-h:  80px;
}

/* ─── Reset ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
  max-width: 100vw;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
svg { display: block; }

/* ─── Typography ───────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.18;
  color: var(--primary);
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 600; }

p { line-height: 1.72; }

strong { font-weight: 600; }

/* ─── Utility: Container ───────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--cpad);
}

/* ─── Utility: Sections ────────────────────── */
.section {
  padding: var(--sp-24) 0;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section { padding: var(--sp-16) 0; }
}

.section--dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark .label { color: var(--accent); }
.section--dark .text-muted { color: rgba(255,255,255,0.65); }

.section--primary {
  background: var(--primary);
  color: var(--white);
}
.section--primary h1,
.section--primary h2,
.section--primary h3 { color: var(--white); }

.section--nature {
  background: var(--secondary);
  color: var(--white);
}
.section--nature h1,
.section--nature h2,
.section--nature h3 { color: var(--white); }

/* ─── Utility: Label ───────────────────────── */
.label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

/* ─── Utility: Text colours ────────────────── */
.text-muted  { color: var(--text-muted); }
.text-faint  { color: var(--text-faint); }
.text-white  { color: var(--white); }
.text-accent { color: var(--accent); }

/* ─── Utility: Section Header ──────────────── */
.section-header {
  margin-bottom: var(--sp-16);
}
.section-header .label { margin-bottom: var(--sp-3); }
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.72;
}
.section-header--center { text-align: center; }
.section-header--center p { margin: 0 auto; }

/* ─── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 2.1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--r-full);
  transition:
    transform var(--t-spring),
    box-shadow var(--t-base),
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255,255,255,0.12);
  transition: opacity var(--t-fast);
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }
.btn:hover        { transform: translateY(-2px); }
.btn:active       { transform: translateY(0px); }

.btn--primary {
  background: var(--grad-accent);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow-md); }

.btn--outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn--white:hover { box-shadow: var(--shadow-md); color: var(--secondary); }

.btn--dark {
  background: var(--primary);
  color: var(--white);
}
.btn--dark:hover { background: var(--secondary); }

.btn--ghost {
  color: var(--text-muted);
  padding: 0;
  gap: var(--sp-2);
  font-size: var(--text-sm);
}
.btn--ghost:hover { color: var(--primary); }

/* ─── Tags ─────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(27,63,75,0.08);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  font-family: var(--mono);
}
.tag--accent {
  background: rgba(196,166,90,0.14);
  color: #7A6030;
  border-color: rgba(196,166,90,0.25);
}
.tag--white {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

/* ─── Divider ──────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: var(--r-full);
  display: block;
  margin: var(--sp-4) 0;
}
.divider--center { margin: var(--sp-4) auto; }

/* ─── Scroll Reveal ────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: 0.10s; }
[data-reveal][data-delay="2"] { transition-delay: 0.20s; }
[data-reveal][data-delay="3"] { transition-delay: 0.30s; }
[data-reveal][data-delay="4"] { transition-delay: 0.40s; }
[data-reveal][data-delay="5"] { transition-delay: 0.50s; }
[data-reveal][data-delay="6"] { transition-delay: 0.60s; }
