/* ============================================================
   BRAND — RheinWald Reisen
   Palette: Rhine Forest Premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Core palette */
  --c-primary:      #1F3A45;
  --c-secondary:    #2E4A3E;
  --c-accent:       #C9A24A;
  --c-accent-h:     #CFAC5C;
  --c-accent2:      #8C3F3A;
  --c-bg:           #E1E8EA;
  --c-bg-alt:       #D2DBDE;
  --c-bg-dark:      #2B3436;
  --c-text:         #1E2324;
  --c-text-muted:   rgba(30,35,36,0.58);
  --c-white:        #FFFFFF;
  --c-w10:          rgba(255,255,255,0.10);
  --c-w20:          rgba(255,255,255,0.20);
  --c-w40:          rgba(255,255,255,0.40);
  --c-w60:          rgba(255,255,255,0.60);
  --c-w80:          rgba(255,255,255,0.80);

  /* Gradients */
  --grad-hero:      linear-gradient(135deg, #1F3A45 0%, #2E4A3E 55%, #2B3436 100%);
  --grad-light:     linear-gradient(180deg, #E1E8EA 0%, #D2DBDE 100%);
  --grad-accent:    linear-gradient(135deg, #C9A24A 0%, #D9B96E 100%);
  --grad-forest:    linear-gradient(135deg, #2E4A3E 0%, #5F776B 100%);
  --grad-accent2:   linear-gradient(135deg, #8C3F3A 0%, #A65750 100%);
  --overlay-img:    rgba(31, 58, 69, 0.45);

  /* Typography */
  --f-main:   'Inter', 'IBM Plex Sans', sans-serif;
  --f-mono:   'IBM Plex Mono', monospace;

  /* Font sizes */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.25rem;
  --fs-hero: clamp(2.6rem, 6vw, 5.2rem);

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;
  --sp-4xl: 8rem;

  /* Layout */
  --container:    1240px;
  --container-sm: 800px;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;

  /* Shadows */
  --sh-sm: 0 2px 8px  rgba(31,58,69,0.08);
  --sh-md: 0 4px 20px rgba(31,58,69,0.12);
  --sh-lg: 0 8px 40px rgba(31,58,69,0.16);
  --sh-xl: 0 16px 60px rgba(31,58,69,0.20);

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:  200ms;
  --dur-base:  360ms;
  --dur-slow:  600ms;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--f-main);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-main);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--c-text);
}

.h1-hero {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-white);
}

.h2-section {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.h3-card {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.label-mono {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.body-text {
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.78;
  color: var(--c-text);
}

.body-lg {
  font-size: var(--fs-md);
  line-height: 1.82;
}

.text-muted { color: var(--c-text-muted); }
.text-white  { color: var(--c-white); }
.text-accent { color: var(--c-accent); }
.text-primary { color: var(--c-primary); }
.text-center  { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--f-main);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--c-primary);
  box-shadow: 0 4px 20px rgba(201,162,74,0.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #CFAC5C 0%, #E2C47A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,162,74,0.45);
  color: var(--c-primary);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.38);
}
.btn-outline:hover {
  background: var(--c-w20);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-2px);
  color: var(--c-white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid rgba(31,58,69,0.28);
}
.btn-outline-dark:hover {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: var(--sh-md);
}
.btn-dark:hover {
  background: var(--c-secondary);
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
  color: var(--c-white);
}

.btn-sm  { padding: 0.625rem 1.5rem;  font-size: var(--fs-xs); }
.btn-lg  { padding: 1.125rem 2.5rem; font-size: var(--fs-base); }

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}

.tag-accent {
  background: rgba(201,162,74,0.14);
  color: var(--c-accent);
  border: 1px solid rgba(201,162,74,0.28);
}
.tag-primary {
  background: rgba(31,58,69,0.1);
  color: var(--c-primary);
  border: 1px solid rgba(31,58,69,0.2);
}
.tag-light {
  background: rgba(255,255,255,0.14);
  color: var(--c-w80);
  border: 1px solid rgba(255,255,255,0.2);
}
.tag-green {
  background: rgba(46,74,62,0.12);
  color: var(--c-secondary);
  border: 1px solid rgba(46,74,62,0.25);
}
.tag-red {
  background: rgba(140,63,58,0.12);
  color: var(--c-accent2);
  border: 1px solid rgba(140,63,58,0.25);
}

/* ============================================================
   DIVIDERS & SECTION LABELS
   ============================================================ */
.divider {
  width: 48px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  margin: var(--sp-sm) 0;
}
.divider-center { margin: var(--sp-sm) auto; }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-sm);
}
.section-label-line {
  width: 32px;
  height: 1px;
  background: var(--c-accent);
  flex-shrink: 0;
}
.section-label-text {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ============================================================
   ANIMATED UNDERLINE LINKS
   ============================================================ */
.link-ul {
  position: relative;
  color: var(--c-accent);
  text-decoration: none;
  display: inline-block;
}
.link-ul::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-accent);
  transition: width var(--dur-base) var(--ease);
}
.link-ul:hover::after { width: 100%; }

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.visually-hidden { visibility: hidden; }

/* reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }
.reveal-delay-4 { transition-delay: 480ms; }
.reveal-delay-5 { transition-delay: 600ms; }
