:root {
  --blue: #1231f5;
  --bg: #ffffff;
  --font-display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --max-width: 1320px;
  --cols: 12;
  --gap: 24px;
  --ease: cubic-bezier(.16,.84,.32,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--blue);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 0.95;
  color: var(--blue);
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }

/* ===== Scroll-Fortschrittsbalken ===== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--blue);
  z-index: 100; transition: width .1s linear;
}

/* ===== Swiss Grid – sichtbares Spaltenraster (Layered-Grid-Technik) ===== */
.grid-frame { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gap); position: relative; }
.grid-lines { grid-row: 1 / -1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gap); pointer-events: none; }
.grid-lines span { border-left: 1px solid rgba(18,49,245,0.12); height: 100%; transform-origin: top; }
.grid-lines span:last-child::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; border-right: 1px solid rgba(18,49,245,0.12); }
.kontakt-section .grid-lines span { border-left-color: rgba(255,255,255,0.18); }
.kontakt-section .grid-lines span:last-child::after { border-right-color: rgba(255,255,255,0.18); }

/* ===== Hero: Grid zeichnet sich sofort beim Laden ===== */
@keyframes lineDraw { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero .grid-lines span { animation: lineDraw .9s var(--ease) both; }
.hero .grid-lines span:nth-child(1){animation-delay:.02s} .hero .grid-lines span:nth-child(2){animation-delay:.06s}
.hero .grid-lines span:nth-child(3){animation-delay:.10s} .hero .grid-lines span:nth-child(4){animation-delay:.14s}
.hero .grid-lines span:nth-child(5){animation-delay:.18s} .hero .grid-lines span:nth-child(6){animation-delay:.22s}
.hero .grid-lines span:nth-child(7){animation-delay:.26s} .hero .grid-lines span:nth-child(8){animation-delay:.30s}
.hero .grid-lines span:nth-child(9){animation-delay:.34s} .hero .grid-lines span:nth-child(10){animation-delay:.38s}
.hero .grid-lines span:nth-child(11){animation-delay:.42s} .hero .grid-lines span:nth-child(12){animation-delay:.46s}
.load-in { opacity: 0; animation: riseIn .8s var(--ease) both; }
.load-in.d1{animation-delay:.15s} .load-in.d2{animation-delay:.30s} .load-in.d3{animation-delay:.45s}
.load-in.d4{animation-delay:.55s} .load-in.d5{animation-delay:.62s} .load-in.d6{animation-delay:.69s} .load-in.d7{animation-delay:.76s}

/* ===== Andere Sections: Grid zeichnet sich beim Scroll-in-View ===== */
.reveal .grid-lines span { opacity: 0; transform: scaleY(0); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible .grid-lines span { opacity: 1; transform: scaleY(1); }
.reveal.visible .grid-lines span:nth-child(1){transition-delay:.02s} .reveal.visible .grid-lines span:nth-child(2){transition-delay:.05s}
.reveal.visible .grid-lines span:nth-child(3){transition-delay:.08s} .reveal.visible .grid-lines span:nth-child(4){transition-delay:.11s}
.reveal.visible .grid-lines span:nth-child(5){transition-delay:.14s} .reveal.visible .grid-lines span:nth-child(6){transition-delay:.17s}
.reveal.visible .grid-lines span:nth-child(7){transition-delay:.20s} .reveal.visible .grid-lines span:nth-child(8){transition-delay:.23s}
.reveal.visible .grid-lines span:nth-child(9){transition-delay:.26s} .reveal.visible .grid-lines span:nth-child(10){transition-delay:.29s}
.reveal.visible .grid-lines span:nth-child(11){transition-delay:.32s} .reveal.visible .grid-lines span:nth-child(12){transition-delay:.35s}

/* ===== Nav ===== */
nav.site-nav { padding: 28px 0 0; }
nav.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo-mark { display: block; height: 18px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a { position: relative; padding-bottom: 2px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ===== Link – Ersatz fuer Buttons, nur unterstrichener Text ===== */
.link-cta {
  font-family: var(--font-sans); font-size: 15px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: none; border: none; border-bottom: 2px solid var(--blue); padding: 0 0 8px 0;
  transition: gap .25s var(--ease);
}
.link-cta:hover { gap: 18px; }
.link-cta-arrow { font-size: 18px; line-height: 1; transition: transform .25s var(--ease); }
.link-cta:hover .link-cta-arrow { transform: translateX(4px); }

/* ===== Statement (nur Text, ganz gross) ===== */
.statement { padding: 160px 0; }
.statement .grid-frame { align-items: center; }
.statement h2 { grid-column: 1 / span 9; font-size: clamp(32px, 5.5vw, 76px); position: relative; }
.statement h2::before {
  content: ''; display: block; width: 64px; height: 3px; background: var(--blue); margin-bottom: 32px;
  transform: scaleX(0); transform-origin: left; transition: transform .6s .2s var(--ease);
}
.reveal.visible h2::before { transform: scaleX(1); }

/* ===== Hero – echtes 12-Spalten-Raster mit sichtbaren Guides ===== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between;
  padding: 64px 0 80px; position: relative;
}
.hero .grid-frame { flex: 1; align-content: start; }
.hero-bottom { grid-column: 1 / span 4; grid-row: 1; }
.hero-statement { grid-column: 1 / span 4; grid-row: 2; margin-top: 96px; }
.hero-statement h2 { font-size: clamp(24px, 3.2vw, 44px); line-height: 1.08; overflow-wrap: break-word; hyphens: auto; }

/* ===== Transition-Bild – 1 Foto, sticky über Hero + Statement, groß & ohne Beschriftung ===== */
.hero-transition-image {
  grid-column: 5 / -1; grid-row: 1 / span 2; position: sticky; top: 120px; align-self: start; z-index: 2;
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
}

/* ===== Freistehendes Bild zwischen zwei Textblöcken ===== */
.image-break { padding: 40px 0 120px; }
.image-break-photo {
  grid-column: 1 / span 8; width: 100%; height: auto; display: block;
}

.hero-mega { font-size: clamp(40px, 6vw, 100px); line-height: 0.98; position: relative; z-index: 3; }
.hero-tags { margin-top: 36px; display: flex; flex-direction: column; gap: 8px; }
.hero-tags span {
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; display: block;
  opacity: 0; animation: riseIn .7s var(--ease) both;
}
.hero-tags span:nth-child(1){animation-delay:.75s} .hero-tags span:nth-child(2){animation-delay:.85s}
.hero-tags span:nth-child(3){animation-delay:.95s} .hero-tags span:nth-child(4){animation-delay:1.05s}
.hero-tags span:nth-child(5){animation-delay:1.15s}

/* ===== Text-only Section ===== */
.section-text { padding: 160px 0; }
.section-text .text-col { grid-column: 1 / span 8; }
.text-lede {
  font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 32px;
}
.section-text p { font-size: 19px; margin-bottom: 28px; }
.section-text p:last-child { margin-bottom: 0; }
.section-text p.muted { font-size: 16px; }
.section-text a.inline-link { border-bottom: 2px solid var(--blue); }
.section-text a.inline-link:hover { text-decoration: underline; }

.hi-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
.hi-eyebrow-anim { display: inline-flex; align-items: center; gap: 10px; }
.hi-eyebrow-anim::before {
  content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity: 1; transform: scale(1); } 50%{ opacity: .35; transform: scale(1.4); } }

/* ===== Kontakt – volles Blau-Band (100% Breite) ===== */
.kontakt-section { background: var(--blue); padding: 160px 0; }
.kontakt-section .hi-eyebrow, .kontakt-section h2 { color: #fff; }
.kontakt-section h2 { margin-bottom: 80px; font-size: clamp(32px, 5vw, 60px); max-width: 700px; }
.kontakt-wrap { grid-column: 1 / -1; }
.contact-grid { max-width: 640px; }
.contact-form { padding: 0; }
.form-group { margin-bottom: 26px; }
.kontakt-section label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.kontakt-section input, .kontakt-section select, .kontakt-section textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; padding: 13px 14px;
  border: 2px solid #fff; background: transparent; color: #fff; transition: box-shadow .25s var(--ease);
}
.kontakt-section input::placeholder, .kontakt-section textarea::placeholder { color: #fff; opacity: 0.6; }
.kontakt-section input:focus, .kontakt-section select:focus, .kontakt-section textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
.kontakt-section .link-cta { color: #fff; border-bottom-color: #fff; margin-top: 12px; }
.kontakt-section .link-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.kontakt-section .form-success { color: #fff; font-size: 15px; margin-top: 16px; display: none; }
.kontakt-section .form-success.show { display: block; }
.kontakt-section .form-error { color: #fff; font-size: 13px; margin-top: 12px; display: none; }
.kontakt-section .form-error.show { display: block; }

.contact-card { color: #fff; padding: 0; margin-top: 56px; }
.contact-card > p:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.contact-phone { font-family: var(--font-display); font-size: 34px; font-weight: 900; color: #fff; display: block; margin: 4px 0 6px; }
.contact-card p.hours { font-size: 13px; margin: 0 0 24px; }
.contact-card p.area { font-size: 13px; margin: 0; }
.social-row { display: flex; gap: 20px; margin-top: 24px; margin-bottom: 24px; }
.social-icon {
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; border-bottom: 2px solid #fff; padding-bottom: 4px; transition: opacity .2s, transform .3s var(--ease);
  display: inline-block;
}
.social-icon:hover { opacity: 0.75; transform: translateY(-2px); }

/* ===== Footer ===== */
footer { padding: 100px 0 48px; }
.footer-wrap { grid-column: 1 / -1; }
.footer-links { display: flex; flex-direction: column; gap: 14px; margin-bottom: 64px; }
.footer-links a {
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 32px); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; width: fit-content; display: inline-block;
  transition: transform .3s var(--ease);
}
.footer-links a:hover { transform: translateX(10px); text-decoration: underline; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-meta a:hover { text-decoration: underline; }
.footer-meta button {
  font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  background: none; border: none; color: inherit; cursor: pointer; padding: 0;
}
.footer-meta button:hover { text-decoration: underline; }

/* ===== Scroll reveal (staggered) ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal .stagger { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible .stagger { opacity: 1; transform: translateY(0); }
.reveal.visible .stagger:nth-child(1){transition-delay:.05s} .reveal.visible .stagger:nth-child(2){transition-delay:.15s}
.reveal.visible .stagger:nth-child(3){transition-delay:.25s} .reveal.visible .stagger:nth-child(4){transition-delay:.35s}
.reveal.visible .stagger:nth-child(5){transition-delay:.45s}

@media (max-width: 900px) {
  .grid-lines { display: none; }
  .hero .grid-frame, .statement .grid-frame, .kontakt-section .grid-frame,
  footer .grid-frame, .section-text .grid-frame,
  .image-break .grid-frame { display: block; }
  .hero-bottom { padding: 64px 24px 0; }
  .hero-statement { padding: 0 24px; margin-top: 48px; }
  .hero-transition-image { position: static; margin: 32px 24px 0; width: calc(100% - 48px); }
  .image-break-photo { margin: 0 24px; width: calc(100% - 48px); }
  .section-text .text-col { padding: 0 24px; }
  .statement h2 { padding: 0 32px; }
  .nav-links { display: none; }
}
