/* ==========================================================================
   OW Publishing — style.css
   Neues Farb- und Typokonzept (Mai 2026): cremig, royalblau, pink-Akzent.
   Modern, organisch, female.
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg:        #F7F8EF;   /* Cremig (Logo-Weiß) */
  --bg-soft:   #FCFCF6;
  --bg-card:   #FFFFFF;
  --bg-deep:   #2E4ED2;   /* Royalblau (Logo) */
  --bg-deep-2: #2541B5;

  /* Text */
  --ink:           #0F1632;   /* Tiefes Indigoschwarz */
  --ink-soft:      #4A5170;
  --ink-muted:     #8389A4;
  --ink-on-deep:   #F7F8EF;
  --ink-on-deep-2: #C9D2F0;

  /* Akzente */
  --brand:       #2E4ED2;
  --brand-dark:  #1F3AA8;
  --accent:      #EE9DD6;   /* Pink (Sparkles) */
  --accent-dark: #E57BC4;

  /* Layout */
  --maxw:        1200px;
  --maxw-narrow: 760px;
  --radius-sm:   10px;
  --radius:      18px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(46, 78, 210, 0.07);
  --shadow-md: 0 14px 40px -16px rgba(46, 78, 210, 0.20);
  --shadow-lg: 0 28px 70px -22px rgba(46, 78, 210, 0.30);
  --shadow-pink: 0 18px 40px -18px rgba(238, 157, 214, 0.55);

  /* Typo — Fraunces als variable serif (mit SOFT-axis fuer organisches Feel) */
  --font-display: "Fraunces", "DM Serif Display", Georgia, serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

a:hover { color: var(--brand); }

::selection { background: var(--accent); color: var(--ink); }

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

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

.section {
  padding: 120px 0;
  position: relative;
}

.section-light { background: var(--bg);      color: var(--ink); }
.section-grey  { background: var(--bg-soft); color: var(--ink); }
.section-dark  { background: var(--bg-deep); color: var(--ink-on-deep); position: relative; overflow: hidden; }

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(238, 157, 214, 0.18), transparent 60%),
    radial-gradient(800px 600px at 10% 95%, rgba(247, 248, 239, 0.06), transparent 60%);
  pointer-events: none;
}

.section-head {
  margin-bottom: 80px;
  max-width: 720px;
}

/* Wellige Trennlinie zwischen Sektionen (organische Naht) */
.wave-divider {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 60px;
  display: block;
  pointer-events: none;
}

.wave-divider.top    { top: -1px;    transform: rotate(180deg); }
.wave-divider.bottom { bottom: -1px; }

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 24px 0;
  position: relative;
  padding-left: 52px;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.eyebrow-on-deep { color: var(--accent); }
.eyebrow-on-deep::before { background: var(--ink-on-deep); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 80, "opsz" 72;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 32px 0;
}

.section-title-on-deep { color: var(--ink-on-deep); }

.section-sub {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
  line-height: 1.6;
}

.prose p {
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 24px 0;
}

.prose a {
  color: var(--brand);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  font-weight: 500;
}

.prose a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

.prose-on-deep p { color: var(--ink-on-deep); }

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 48px 0 0 0;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  background: transparent;
  transition: background 250ms var(--ease), box-shadow 250ms var(--ease), padding 250ms var(--ease);
}

.nav.is-scrolled {
  background: rgba(247, 248, 239, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(46, 78, 210, 0.08);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 24;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.nav-brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--brand);
  display: inline-grid; place-items: center;
  color: var(--ink-on-deep);
  font-weight: 800;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: -0.5px;
  position: relative;
}

.nav-brand-mark::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  top: -3px; right: -3px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg);
}

.nav.is-scrolled .nav-brand-mark::after {
  box-shadow: 0 0 0 2px rgba(247, 248, 239, 0.92);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
}

.nav-links a:hover { color: var(--brand); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 90% 15%, rgba(238, 157, 214, 0.18), transparent 60%),
    radial-gradient(800px 500px at 5% 90%, rgba(46, 78, 210, 0.10), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 160px 32px 140px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 80px;
  }
}

.hero-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(46, 78, 210, 0.18));
  justify-self: center;
}

@media (min-width: 900px) {
  .hero-logo { justify-self: end; }
}

.hero-copy {
  max-width: 580px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 28px 0;
  padding-left: 52px;
  position: relative;
}

.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 32px 0;
}

.hero-headline em {
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}

.hero-lead p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* Sparkle-Dekorationen (organische, floating Akzente) */
.sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  animation: sparkleFloat 6s ease-in-out infinite;
}

.sparkle.s1 { top: 18%;  left: 6%;  width: 38px; animation-delay: 0s; }
.sparkle.s2 { top: 70%;  right: 8%; width: 28px; animation-delay: 1.5s; }
.sparkle.s3 { bottom: 14%; left: 12%; width: 22px; animation-delay: 3s; }

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg);   opacity: 0.7; }
  50%      { transform: translateY(-10px) rotate(15deg); opacity: 1; }
}

.hero-scroll {
  position: absolute;
  left: 32px;
  bottom: 36px;
  width: 24px; height: 70px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-scroll-line {
  display: block;
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--brand));
  border-radius: 2px;
  animation: scrollPulse 2.6s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
  50%  { transform: scaleY(1);   transform-origin: top; opacity: 0.9; }
  100% { transform: scaleY(0.4); transform-origin: bottom; opacity: 0.3; }
}

/* ---------- Cards / Leistungen ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  padding: 44px 36px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), border-color 350ms var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--brand), var(--accent));
  border-radius: 0 4px 4px 0;
  transition: height 380ms var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(238, 157, 214, 0.5);
}

.card:hover::before { height: 60%; }

.card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: 22px;
  color: var(--accent-dark);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.card-list {
  list-style: none;
  padding: 0; margin: 0;
}

.card-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.card-text {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.card-quiet {
  background: linear-gradient(135deg, rgba(238, 157, 214, 0.10), rgba(46, 78, 210, 0.06));
  border: 1.5px dashed rgba(46, 78, 210, 0.20);
  box-shadow: none;
}

.card-quiet:hover {
  border-color: var(--accent);
  border-style: solid;
}

/* ---------- Olive Wilson (deep blue) ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin-top: 40px;
}

.btn-ghost,
.btn-primary,
.btn-link-deep {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 220ms var(--ease);
  border-radius: var(--radius-pill);
}

.btn-ghost {
  padding: 14px 28px;
  border: 2px solid var(--accent);
  color: var(--ink-on-deep);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn-link-deep {
  color: var(--ink-on-deep-2);
  border: none;
  border-radius: 0;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: normal;
}

.btn-link-deep:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Specificity-Ueberschreibung: .prose a faerbt sonst die Buttons in --brand
   ein (unsichtbar auf blauem Hintergrund). */
.prose-on-deep .btn-ghost {
  color: var(--ink-on-deep);
  border-bottom: none;
  padding-bottom: 14px;
}

.prose-on-deep .btn-ghost:hover {
  color: var(--ink);
  background: var(--accent);
  border-bottom: none;
}

.prose-on-deep .btn-link-deep {
  color: var(--ink-on-deep);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  font-weight: 500;
}

.prose-on-deep .btn-link-deep:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Kontakt ---------- */

.contact {
  margin-top: 64px;
  display: grid;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  padding: 14px 0;
  border: none;
  border-bottom: 1.5px solid rgba(46, 78, 210, 0.20);
  background: transparent;
  color: var(--ink);
  width: 100%;
  resize: vertical;
  border-radius: 0;
  transition: border-color 220ms var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brand);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--brand);
  color: var(--ink-on-deep);
  border: 2px solid var(--brand);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-pink);
}

.form-hint {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.form-hint a {
  color: var(--brand);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  font-weight: 500;
}

.form-status {
  font-size: 15px;
  margin: 4px 0 0 0;
  min-height: 22px;
  color: var(--ink-soft);
}

.form-status.is-ok  { color: #1f7a4d; }
.form-status.is-err { color: #b03a4a; }

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-deep);
  color: var(--ink-on-deep-2);
  padding: 96px 0 0;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}

.footer-brand {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-on-deep);
  margin: 0 0 12px 0;
  letter-spacing: -0.005em;
}

.footer-tag {
  margin: 0;
  color: var(--ink-on-deep-2);
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: 17px;
  line-height: 1.5;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px 0;
}

.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--ink-on-deep);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
}

.footer-col a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-base {
  margin-top: 72px;
  padding: 28px 32px;
  border-top: 1px solid rgba(247, 248, 239, 0.15);
  text-align: center;
  color: var(--ink-on-deep-2);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.footer-base p { margin: 0; }

/* ---------- Legal pages ---------- */

.prose.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  margin: 48px 0 16px 0;
  letter-spacing: -0.005em;
}

.prose.legal h2:first-of-type { margin-top: 16px; }

.prose.legal p,
.prose.legal li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.prose.legal ul {
  padding-left: 20px;
  margin: 0 0 24px 0;
}

.prose.legal li { margin-bottom: 6px; }

.legal-note {
  margin-top: 56px;
  padding: 20px 24px;
  background: rgba(238, 157, 214, 0.12);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px !important;
  color: var(--ink-soft);
}

/* ---------- Reveal Animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line, .sparkle { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .container, .nav-inner { padding: 0 48px; }
  .hero-inner { padding: 180px 48px 140px; }
  .hero-scroll { left: 48px; }
}

@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .section { padding: 160px 0; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 56px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 130px 24px 90px; gap: 48px; }
  .hero-scroll { display: none; }
  .container, .nav-inner { padding: 0 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .pullquote { padding-left: 20px; margin-top: 36px; }
  body { font-size: 17px; }
  .hero-logo { max-width: 300px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; align-items: flex-start; }
  .btn-primary { width: 100%; justify-content: center; }
}
