:root {
  --navy: #3d4459;
  --red: #e8432a;
  --gold: #f6c333;
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #23262f;
  --text-muted: #6b7080;
  --text-muted-on-hero: #4a4f5f;
  --border: #e7e8ec;
  --tint-navy: #ebedf3;
  --tint-red: #fbe9e6;
  --tint-gold: #fdf3db;
  --tint-amber: #fcefe0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --card-bg: #1c1e26;
    --text: #f0f1f4;
    --text-muted: #9a9dab;
    --text-muted-on-hero: #c7c9d3;
    --border: #2c2f3a;
    --tint-navy: #262a36;
    --tint-red: #2e211f;
    --tint-gold: #2f2a1c;
    --tint-amber: #2d241c;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

a { color: inherit; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 0;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.site-nav .brand img {
  height: 28px;
  width: auto;
}

.site-nav .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.site-nav .links a:hover,
.site-nav .links a.active {
  color: var(--red);
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 24px 56px;
  text-align: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(61, 68, 89, 0.35), transparent 55%),
    radial-gradient(circle at 55% 40%, rgba(232, 67, 42, 0.30), transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(246, 195, 51, 0.30), transparent 55%);
}

.hero .container { max-width: 920px; }

.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 28px;
}

.hero-photo {
  flex: 0 0 auto;
  width: 180px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(35, 38, 47, 0.18);
  display: block;
}

.hero-text {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted-on-hero);
  margin: 0 auto 28px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 48px;
  }

  .hero-photo { width: 260px; }

  .hero p { margin: 0 0 28px; }

  .hero-ctas { justify-content: flex-start; }
}

.hero-secondary-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
}

.hero-secondary-link:hover {
  color: var(--red);
}

/* Page header (non-hero pages) */
.page-header {
  padding: 48px 24px 8px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 0 0 12px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card-bg);
  transition: transform 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(232, 67, 42, 0.3);
}

/* Sections */
section {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

section .container { }

section h2.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 20px;
  text-align: center;
}

/* Warum ich */
.warum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.warum-card {
  --tilt: 0deg;
  --enter-x: 0px;
  --stagger: 0ms;
  position: relative;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  transform: rotate(var(--tilt));
  transform-origin: top center;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.5s ease;
  transition-delay: var(--stagger);
}

.warum-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--gold));
  box-shadow: 0 2px 4px rgba(35, 38, 47, 0.25);
  transform: translateX(-50%) scale(1);
  opacity: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  transition-delay: calc(var(--stagger) + 340ms);
}

.warum-grid .warum-card:nth-child(1) { --tilt: -1.5deg; --enter-x: -36px; background: var(--tint-navy); }
.warum-grid .warum-card:nth-child(2) { --tilt: 1deg; --enter-x: 36px; background: var(--tint-red); }
.warum-grid .warum-card:nth-child(3) { --tilt: -1deg; --enter-x: -36px; background: var(--tint-gold); }
.warum-grid .warum-card:nth-child(4) { --tilt: 1.5deg; --enter-x: 36px; background: var(--tint-amber); }

.warum-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 12px 24px rgba(35, 38, 47, 0.1);
}

/* Pre-reveal state only — once .is-visible is added this stops matching and
   the card falls back to its normal resting rule above, so :hover keeps working.
   Card slides in from the side (--enter-x) with an exaggerated swing of its own
   resting tilt; the pin (::before) pops in ~220ms later, once the card has landed. */
.js-reveal-ready .warum-card.reveal:not(.is-visible) {
  opacity: 0;
  transform: translateX(var(--enter-x)) rotate(calc(var(--tilt) * 6)) scale(0.9);
}

.js-reveal-ready .warum-card.reveal:not(.is-visible)::before {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.warum-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.warum-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--red);
  background: linear-gradient(135deg, rgba(232, 67, 42, 0.12), rgba(246, 195, 51, 0.12));
}

/* Wirkung */
.wirkung-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wirkung-item {
  padding: 18px 22px;
  border-left: 3px solid var(--red);
  background: var(--card-bg);
  border-radius: 0 12px 12px 0;
  transition: transform 0.25s ease, box-shadow 0.2s ease, opacity 0.4s ease;
}

.wirkung-item .context {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin: 0 0 8px;
}

.wirkung-item .quote {
  margin: 0;
  font-size: 15px;
}

/* Teaser cards (Angebot / Insights) */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.teaser-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.2s ease, opacity 0.4s ease;
}

.teaser-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--red);
}

.teaser-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Angebot Pakete */
.package {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  margin-bottom: 16px;
  transition: transform 0.25s ease, box-shadow 0.2s ease, opacity 0.4s ease;
}

.package h3 {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--red);
}

.package dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.package dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.package dd {
  margin: 4px 0 0;
  font-size: 14px;
}

/* Chips */
.foundation-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.foundation-group {
  margin-bottom: 24px;
}

.foundation-group h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

/* Kunden strip */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.clients span::after {
  content: "·";
  margin-left: 16px;
  color: var(--border);
}

.clients span:last-child::after {
  content: "";
}

/* Insights list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-preview {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.2s ease, opacity 0.4s ease;
}

.post-preview .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.post-preview h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}

.post-preview p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Article */
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.article-body h2 {
  font-size: 19px;
  margin: 28px 0 12px;
}

.article-body h3 {
  font-size: 16px;
  margin: 22px 0 10px;
}

.article-body p {
  margin: 0 0 14px;
  font-size: 15.5px;
}

.article-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 6px;
  font-size: 15.5px;
}

.article-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.article-body blockquote p {
  margin: 0;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover { color: var(--red); }

/* Footer */
footer.site-footer {
  padding: 40px 24px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer.site-footer .footer-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

footer.site-footer .vcard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
}

footer.site-footer .vcard-link:hover { color: var(--red); }

footer.site-footer .fine-print {
  font-size: 11.5px;
  color: var(--text-muted);
}

footer.site-footer .fine-print a {
  color: var(--text-muted);
}

/* Impressum */
.impressum-block {
  margin-bottom: 20px;
}

.impressum-block h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.impressum-block p {
  margin: 0;
  font-size: 14.5px;
}

/* Responsive */
@media (max-width: 720px) {
  .warum-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .site-nav .links { gap: 14px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 24px; }
  section { padding: 32px 16px; }
  .container { padding: 0 16px; }
}

/* Hover lift for interactive cards */
.warum-card:hover,
.teaser-card:hover,
.package:hover,
.wirkung-item:hover,
.post-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(35, 38, 47, 0.08);
}

/* Insights cover (abstract gradient, no stock photos) */
.post-cover {
  height: 4px;
  width: 48px;
  border-radius: 2px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--navy), var(--red), var(--gold));
}

.post-cover-large {
  height: 5px;
  width: 64px;
  border-radius: 2px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, var(--navy), var(--red), var(--gold));
}

/* Scroll reveal — visible by default; JS opts into the hidden→reveal animation
   so content never depends on JavaScript running to become visible. */
/* Pre-reveal state only — once .is-visible is added this stops matching and
   the element falls back to its own resting rule, so :hover keeps working
   afterwards instead of being permanently overridden. */
.js-reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
  .js-reveal-ready .warum-card.reveal:not(.is-visible) {
    opacity: 1;
    transform: rotate(var(--tilt));
  }
  .js-reveal-ready .warum-card.reveal:not(.is-visible)::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  .warum-card,
  .warum-card::before,
  .teaser-card,
  .package,
  .wirkung-item,
  .post-preview {
    transition: none;
  }
}
