/* =========================================
   WEBFONTS — Raleway + Playfair Display
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');
/* ===============================
   GLOBAL PAGE HIDE UNTIL READY
=============================== */

html {
  opacity: 0;
  visibility: hidden;
}

html.page-loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background: var(--base-bg);
  color: var(--ink-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* VARIABLES */
:root {
  --base-bg: #F7F5F1;
  --base-grain-opacity: 0.5;
  --brand: #5d504e;

  --ink-h: #262626;
  --ink-body: #3A3A3A;
  --ink-meta: #6A6A6A;

  --font-headline: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --fs-h1: clamp(2.6rem, 4vw, 4rem);
  --fs-h2: clamp(2.2rem, 3.2vw, 3rem);
  --fs-h3: clamp(1.4rem, 2vw, 2rem);
  --fs-lead: clamp(1.15rem, 1.4vw, 1.35rem);
  --fs-body: clamp(1rem, 1.2vw, 1.1rem);
  --fs-small: .9rem;

  --lh-title: 1.15;
  --lh-body: 1.55;

  --s-8: 8px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-96: 96px;
  --s-110: 110px;
  --s-140: 140px;

  --container-max: 1500px;

  --reveal-duration: .8s;
  --reveal-ease: cubic-bezier(.25,.1,.25,1);
}


body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #fff;
  background-repeat: repeat;
  opacity: 0.04;
}

/* TYPO */
h1, h2 {
  font-family: var(--font-headline);
  color: var(--ink-h);
  line-height: var(--lh-title);
  font-weight: 200;
}

h3 {
  font-family: var(--font-body);
  color: var(--ink-h);
  font-weight: 500;
}

p {
  font-size: var(--fs-body);
  color: var(--ink-body);
  margin-bottom: var(--s-24);
}

.eyebrow {
  font-size: var(--fs-small);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-meta);
  margin-bottom: var(--s-16);
}

.lead {
  font-size: var(--fs-lead);
  margin-bottom: var(--s-32);
}

/* ==========================================
   GLOBAL LAYOUT SYSTEM 
========================================== */

/* 1) GLOBALER STANDARD-CONTAINER */
.container {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: clamp(2.5rem, 8vw, 14rem);
  position: relative;
  z-index: 2;
}

/* 2) SEKTIONEN – EINHEITLICHE VERTICAL SPACING */
section {
  padding-block: clamp(4rem, 8vw, 8rem);
}

/* 3) OPTIONAL: ENGE SEKTION */
.section-tight {
  padding-block: clamp(2rem, 6vw, 4rem);
}

/* 4) OPTIONAL: WEITE SEKTION */
.section-wide {
  padding-block: clamp(6rem, 10vw, 12rem);
}

/* 5) INTRO-BLOCKS (Textblöcke links ausgerichtet) */
.intro-block {
  max-width: 900px;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

/* 6) CONTENT-GRID (Zentrale Grids mittig) */
.content-grid {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

/* 7) FULL-WIDTH Elemente (Hero, Visuals etc.) */
.fullwidth {
  width: calc(100% - 30px);
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* UTILITIES */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; justify-content: center; align-items: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-48);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--s-48);
}

.center { text-align: center; }
.hidden { display: none !important; }



/* --------------------------------------------
   BUTTONS — NCO Capsule Style
-------------------------------------------- */

/* GLOBAL BUTTON — Master Definition */
.btn,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.9rem, 1vw, 1.1rem) clamp(2.2rem, 3vw, 2.8rem);
  border-radius: 999px;
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background .3s ease,
    color .3s ease,
    border-color .3s ease,
    transform .3s ease;
}


/* FILLED */
.btn {
  background: var(--brand);
  color: #fff;
}

.btn:hover {
  background: color-mix(in srgb, var(--brand) 85%, white 15%);
  transform: translateY(-2px);
}


/* OUTLINE */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}


/* CONTENT BLOCK inside container */
.content-block {
  max-width: 900px;
}