/* marberg-design.de – Relaunch 2026. Struktur/Werte nach Design-Handoff
   (Context/TextdateienundEntwuerfe/design_handoff_marberg_relaunch/README.md). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 var(--space-4); color: var(--ink); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--sand-50); padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }

.text-brand { color: var(--brand-primary); }
.text-yellow { color: #F6C445; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 78px;
  display: flex; align-items: center;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand-200);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(32, 28, 29, 0.06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; gap: var(--space-3); }
.logo-mark { height: 44px; width: auto; flex-shrink: 0; display: block; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; display: block; }
.logo-sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand-600); display: block; }

.main-nav { display: flex; align-items: center; gap: var(--space-2); }
.nav-link { padding: 9px 14px; border-radius: var(--radius-sm); color: var(--sand-700); font-weight: 600; transition: background var(--transition), color var(--transition); }
.nav-link:hover { background: var(--sand-100); color: var(--ink); }
.btn-nav { margin-left: var(--space-3); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform var(--transition), opacity var(--transition); margin: 0 auto; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 800; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-primary); color: var(--white); box-shadow: var(--shadow-button-brand); }
.btn-primary:hover { background: var(--brand-primary-hover); }
.btn-secondary { background: var(--white); border-color: var(--sand-300); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-lg { height: 52px; padding: 0 30px; }
.btn-yellow { background: #F6C445; color: var(--ink); }
.btn-yellow:hover { background: #E0AF2E; }
.btn-outline-yellow { border: 1px solid #F6C445; color: #F6C445; padding: 13px 24px; }
.btn-outline-yellow:hover { background: #F6C445; color: var(--ink); }

/* ---------- Sections / layout ---------- */
.section { padding: 96px 0; }
.section-sunken { background: var(--sand-100); border-top: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); }
.section-dark { background: var(--ink); color: var(--sand-50); position: relative; overflow: hidden; }
.section-tint-orange { background: var(--brand-tint); }

.section-head { max-width: 62ch; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand-600); margin: 0 0 var(--space-2); }
.eyebrow-on-dark { color: var(--ink-mute); }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }

.pill {
  display: inline-block; padding: 6px 15px; border-radius: var(--radius-pill);
  background: var(--brand-tint); color: var(--brand-text-on-tint); font-weight: 700; font-size: 13px;
  margin-bottom: var(--space-5);
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-ref { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 96px; overflow: hidden; }
.hero-watermark {
  position: absolute; top: -40px; right: -60px; z-index: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 260px;
  color: var(--brand-primary); opacity: 0.08; transform: rotate(-12deg);
  white-space: nowrap; pointer-events: none;
  animation: watermark-float 14s ease-in-out infinite;
}
@keyframes watermark-float {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-12deg) translateY(-18px); }
}
@media (prefers-reduced-motion: reduce) { .hero-watermark { animation: none; } }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-h1 { font-size: clamp(44px, 7vw, 86px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.hero-lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--sand-700); max-width: 56ch; }
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }

/* ---------- USP bar ---------- */
.usp-bar { background: var(--sand-100); border-top: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); padding: var(--space-6) 0; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-5); text-align: center; }
.usp-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.usp-label { font-size: 14px; color: var(--sand-700); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md);
  padding: var(--space-6); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card-dark { background: var(--ink); color: var(--sand-50); border-color: var(--ink); }
.card-dark p { color: var(--ink-mute); }
.card-strong { font-weight: 700; color: var(--ink); }
.card-dark .card-strong { color: var(--sand-50); }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand-text-on-tint);
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  margin-bottom: var(--space-4);
}

.check-list { margin-top: var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.check-list li::before { content: "›"; color: var(--brand-primary); font-weight: 800; }

.badge {
  display: inline-block; padding: 5px 14px; border-radius: var(--radius-pill);
  font-weight: 800; font-size: 12px; margin-bottom: var(--space-4);
}
.badge-orange { background: var(--brand-tint); color: var(--brand-text-on-tint); }
.badge-yellow { background: #F6C445; color: var(--ink); }

.price { font-family: var(--font-display); font-weight: 700; margin: var(--space-4) 0 0; }
.price-value { font-size: 38px; color: var(--brand-primary); }
.price-note { color: var(--ink-mute); font-size: 14px; margin-top: 2px; }

/* ---------- KI-Teaser ---------- */
.ki-teaser { position: relative; }
.teaser-watermark {
  position: absolute; left: -40px; bottom: -40px; z-index: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 180px; line-height: 0.85;
  color: #F6C445; opacity: 0.1; transform: rotate(-8deg); pointer-events: none;
}
.teaser-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 44px; align-items: center; }
.dark-h2 { color: var(--sand-50); }
.dark-p { color: var(--ink-mute); }
.teaser-card { background: rgba(246, 196, 69, 0.06); border: 1px solid rgba(246, 196, 69, 0.35); border-radius: var(--radius-md); padding: var(--space-6); }

/* ---------- Referenzen ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  background: var(--white); border: 1px solid var(--sand-300); color: var(--sand-700); cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--sand-50); }
.filter-btn:hover:not(.is-active) { border-color: var(--ink); }

.ref-card { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.ref-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.ref-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.ref-body { padding: var(--space-4); }
.ref-body h3 { font-size: 20px; margin-bottom: var(--space-2); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 4px 13px; border-radius: var(--radius-pill); background: var(--sand-100); color: var(--sand-700); font-size: 13px; font-weight: 700; }
.ki-hint { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--sand-600); transition: color var(--transition); }
.ki-hint:hover { color: #C99A0E; }
.ref-outro { margin-top: var(--space-6); text-align: center; }
.ref-outro a { color: var(--brand-primary); font-weight: 700; }
.ref-grid[hidden-item] { display: none; }
.ref-card[data-hidden="true"] { display: none; }

/* ---------- Über mich ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: start; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-image); aspect-ratio: 4 / 5; object-fit: cover; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
.stat-tile { text-align: center; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: var(--space-3); }
.stat-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.stat-label { font-size: 13px; color: var(--sand-700); }
.about-subline { color: var(--brand-primary); font-weight: 700; font-size: 19px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.contact-lead { color: var(--sand-700); }
.contact-card { font-style: normal; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md); padding: var(--space-6); line-height: 1.9; }
.contact-card a { color: var(--brand-primary); font-weight: 700; }

.contact-form { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md); padding: var(--space-6); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }
.form-field { margin-bottom: var(--space-4); }
.form-field label { display: block; font-size: 14px; font-weight: 700; color: var(--sand-700); margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--sand-300);
  background: var(--sand-50); font-family: var(--font-body); font-size: 16px; padding: 0 14px;
  transition: border-color var(--transition), background var(--transition);
}
.form-field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand-primary); background: var(--white); }
.form-field-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-field-checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.form-field-checkbox label { font-size: 14px; font-weight: 400; margin: 0; }
.form-field-checkbox a { color: var(--brand-primary); font-weight: 700; }
.form-success {
  margin-top: var(--space-4); padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text); font-weight: 700;
}
.form-error {
  margin-top: var(--space-4); padding: 14px 16px; border-radius: var(--radius-sm);
  background: #FBEAEA; border: 1px solid #E8A9A9; color: #A32B2B; font-weight: 700;
}
.form-field-honeypot {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sand-500); padding: var(--space-7) 0 var(--space-5); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); padding-bottom: var(--space-6); }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.footer-name { color: var(--sand-50); font-weight: 700; margin: 0; }
.footer-addr { margin: 0; font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.footer-links a:not(.btn) { font-size: 14px; transition: color var(--transition); }
.footer-links a:not(.btn):hover { color: var(--sand-50); }
.footer-copy { border-top: 1px solid rgba(251, 249, 244, 0.12); padding-top: var(--space-5); font-size: 13px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: var(--space-5); right: var(--space-5); bottom: var(--space-5); z-index: 60;
  max-width: 620px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--sand-300); border-radius: var(--radius-md);
  padding: var(--space-5); box-shadow: var(--shadow-card-hover);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--sand-700); }
.cookie-banner a { color: var(--brand-primary); font-weight: 700; }
.cookie-actions { display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(2) { transition-delay: 80ms; }
.grid .reveal:nth-child(3) { transition-delay: 160ms; }
.grid .reveal:nth-child(4) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Legal pages ---------- */
.legal-hero { padding: 64px 0 32px; }
.legal-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); margin: 0; }
.legal-content { max-width: 760px; padding-bottom: 96px; }
.legal-content h2 { font-size: 24px; margin-top: var(--space-7); }
.legal-content h3 { font-size: 18px; margin-top: var(--space-5); }
.legal-content p, .legal-content li { color: var(--sand-700); }
.legal-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: var(--space-4); }
.legal-content ul li { margin-bottom: 6px; }
.legal-content a { color: var(--brand-primary); font-weight: 700; }
.legal-box { background: var(--sand-100); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: var(--space-4); margin: var(--space-4) 0; }
.contact-info { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: var(--space-4); margin: var(--space-4) 0; line-height: 1.9; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--sand-50); border-bottom: 1px solid var(--sand-200);
    flex-direction: column; align-items: stretch; padding: var(--space-4) var(--space-6); gap: var(--space-2);
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .btn-nav { margin-left: 0; text-align: center; }
  .burger { display: flex; }
  .hero-watermark { font-size: 160px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 var(--space-4); }
  .section { padding: 64px 0; }
  .hero { padding: 96px 0 64px; }
  .cookie-banner { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); }
}
