/* ============================================
   Fulfillmentbuddy — Onepager Styles
   Self-hosted fonts (DSGVO), kein Framework.
   ============================================ */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fredoka-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fredoka-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-700.woff2') format('woff2');
}

:root {
  /* Brand — abgeleitet vom Fulfillmentbuddy-Logo (Anthrazit/Schwarz + Orange) */
  --ink: #16181C;
  --ink-soft: #22252B;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F8;
  --border: #E7E7E9;

  --text-primary: #16181C;
  --text-secondary: #4B4F58;
  --text-muted: #7A7E87;

  --accent: #FF6A1A;
  --accent-hover: #E8590E;
  --accent-soft: #FFF1E8;

  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-heading: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

body { overflow-x: hidden; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 700px; }
h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; color: var(--text-secondary); }

a { color: inherit; text-decoration: none; }

.accent-text { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
}
.logo-mark img { width: 36px; height: 36px; display: block; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-logo img { width: 32px; height: 32px; display: block; }

.logo-word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-word.small { font-size: 1.15rem; }

.header-nav {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .header-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(60% 60% at 85% 0%, var(--accent-soft) 0%, transparent 70%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-copy { flex: 1 1 480px; max-width: 600px; }

.hero-visual {
  flex: 1 1 380px;
  max-width: 520px;
  margin-left: auto;
  color: var(--accent);
}
.hero-visual svg,
.hero-visual img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.75rem;
}

.lead-text {
  font-size: 1.1rem;
  max-width: 680px;
}

/* ---------- Section intro flex (heading + illustration) ---------- */
.section-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.section-copy { flex: 1 1 420px; }
.section-copy h2 { margin-bottom: 0; }
.section-flex .section-tag { margin-bottom: 0.75rem; }

.section-visual {
  flex: 0 1 340px;
  color: var(--accent);
}
.section-visual svg { width: 100%; height: auto; display: block; }
.section-visual--small { flex-basis: 260px; }

.section-flex--ueber .section-copy { flex-basis: 480px; }
.section-flex--ueber .section-copy h2 { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .section-visual { max-width: 320px; margin: 2rem auto 0; order: 2; }
}

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

.card, .criterion {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover, .criterion:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 106, 26, 0.08);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 1rem;
}

.card p, .criterion p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Signal list ---------- */
.signal-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.signal-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.signal-list li:first-child { padding-top: 0; }
.signal-list li:last-child { border-bottom: none; }

.signal-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 2.5rem;
}

.signal-list p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .logo-word { color: #fff; }
.footer-brand p {
  color: #9CA0A8;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.footer-copy {
  color: #9CA0A8;
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: #9CA0A8;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--accent); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-page { padding: 4rem 0 6rem; }

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 2.5rem;
}

.legal-content section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}
.legal-content section:last-child { border-bottom: none; }

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.legal-content p, .legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal-content ul li { margin-bottom: 0.4rem; }

.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content a:hover { color: var(--accent-hover); }
