/*
Theme Name: Quality Overview
Theme URI: https://www.quality-overview.com
Author: Florian Rommel / Quality Overview
Description: Individuelles Theme für Quality Overview – ISO-Beratung (9001 · 14001 · 27001). Orange/Weiß/Schwarz, Plus Jakarta Sans + Inter.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quality-overview
*/

/* =========================================================================
   Quality Overview – Design System (Single Source of Truth)
   Orange #E8650A · Weiß · Schwarz · Plus Jakarta Sans + Inter
   Handgeschriebenes CSS als Grundlage für das spätere WordPress-Theme.
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --ink: #111111;
  --ink-soft: #1a1a1a;
  --surface: #f6f6f4;
  --card: #ffffff;
  --primary: #e8650a;
  --primary-2: #ffaa5a;
  --primary-foreground: #ffffff;
  --muted-foreground: #6b6b6b;
  --border: #e6e5e1;
  --radius: 0.875rem;

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-hover: 0 24px 50px -30px rgba(232, 101, 10, 0.55);
  --shadow-soft: 0 24px 50px -30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 40px -25px rgba(232, 101, 10, 0.6);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container-page { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.section-y { padding-block: 5rem; }
.bg-surface { background: var(--surface); }
.bg-background { background: var(--background); }
.bg-ink { background: var(--ink); color: #fff; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.text-primary { color: var(--primary); }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* ---------- Chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border);
}
.chip svg { width: 0.9rem; height: 0.9rem; }
.chip .dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--primary); }
.chip.chip-primary { border-color: rgba(232,101,10,.3); background: rgba(232,101,10,.1); color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0 1.1rem; height: 2.5rem; border-radius: 0.6rem;
  font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: all 0.2s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #d25a08; box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: rgba(232,101,10,.6); color: var(--primary); }
.btn-lg { height: 2.9rem; padding: 0 1.4rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-on-dark { border-color: rgba(255,255,255,.25); color: #fff; background: transparent; }
.btn-on-dark:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Section heads ---------- */
.eyebrow-block { max-width: 42rem; }
.section-title { margin-top: 1rem; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; color: var(--ink); }
.section-lead { margin-top: 1rem; color: var(--muted-foreground); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; width: 100%;
  border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom-color: var(--border); }
.header-inner { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { display: inline-flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border-radius: 0.375rem; background: var(--primary); color: #fff; }
.brand-mark svg { width: 1rem; height: 1rem; }
.main-nav { display: none; align-items: center; gap: 1.75rem; font-size: 0.9rem; font-weight: 500; }
.main-nav a { color: var(--foreground); transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 0.375rem; border: 1px solid var(--border); background: #fff; }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.open { display: block; }
.mobile-nav .container-page { padding-block: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-nav a { padding: 0.375rem 0; font-size: 0.9rem; font-weight: 500; color: var(--foreground); }
.mobile-nav a:hover { color: var(--primary); }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--background); }
.hero .container-page { position: relative; z-index: 1; }
.hero-inner { max-width: 48rem; }
.hero h1 { margin-top: 1.5rem; font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; color: var(--ink); line-height: 1.05; }
.hero-lead { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; max-width: 42rem; }
.hero-badges { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-badges .chip svg { color: var(--primary); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-features { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.hero-feature {
  border-radius: 0.75rem; border: 1px solid var(--border); background: rgba(246,246,244,.8);
  backdrop-filter: blur(4px); padding: 1rem; display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s ease;
}
.hero-feature:hover { transform: translateY(-4px); border-color: rgba(232,101,10,.6); box-shadow: 0 10px 30px -15px rgba(232,101,10,.45); }
.hero-feature svg { width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; }
.hero-feature span { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
@media (min-width: 768px) { .hero-features { grid-template-columns: repeat(4, 1fr); } }

/* Hero animated background */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(17,17,17,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 80%);
}
.blob { position: absolute; border-radius: 999px; filter: blur(64px); }
.blob-1 { top: -8rem; right: -6rem; height: 560px; width: 560px; background: radial-gradient(circle, rgba(232,101,10,.35), rgba(232,101,10,0) 70%); animation: blob-float 18s ease-in-out infinite; }
.blob-2 { top: 8rem; left: -8rem; height: 480px; width: 480px; background: radial-gradient(circle, rgba(255,170,90,.28), rgba(255,170,90,0) 70%); animation: blob-float 26s ease-in-out infinite; }
.blob-3 { bottom: 0; right: 33%; height: 360px; width: 360px; background: radial-gradient(circle, rgba(17,17,17,.10), rgba(17,17,17,0) 70%); animation: blob-float 18s ease-in-out infinite; animation-delay: -6s; }
.hero-fade { position: absolute; inset-inline: 0; bottom: 0; height: 8rem; background: linear-gradient(to bottom, transparent, var(--background)); }

/* ---------- Card grids ---------- */
.grid { display: grid; }
.mt-12 { margin-top: 3rem; }
.mt-10 { margin-top: 2.5rem; }
.card-grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card-grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card-grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  height: 100%; border-radius: 1rem; border: 1px solid var(--border);
  background: var(--card); padding: 1.75rem; transition: all 0.3s ease;
}
.card-hover:hover { transform: translateY(-6px); border-color: rgba(232,101,10,.6); box-shadow: var(--shadow-hover); }
.icon-box { display: inline-flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border-radius: 0.75rem; background: rgba(232,101,10,.1); color: var(--primary); }
.icon-box svg { width: 1.25rem; height: 1.25rem; transition: transform 0.5s ease; }
.card-hover:hover .icon-box svg { transform: scale(1.1); }
.card-title { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.card-text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }

/* Normen link card */
.norm-card { display: block; }
.norm-top { display: flex; align-items: center; justify-content: space-between; }
.norm-cta { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 500; color: var(--primary); }
.norm-cta svg { width: 1rem; height: 1rem; transition: transform 0.3s; }
.norm-card:hover .norm-cta svg { transform: translateX(4px); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 2.5rem; grid-template-columns: 1fr; text-align: center; }
.stat-value { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 3.75rem); font-weight: 800; color: var(--primary); }
.stat-label { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,.7); max-width: 14rem; margin-inline: auto; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); text-align: left; } .stat-label { margin-inline: 0; } }

/* ---------- Process tabs ---------- */
.process-shell { margin-top: 3rem; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--background); padding: 0.75rem; }
@media (min-width: 768px) { .process-shell { padding: 1rem; } }
.process-tabs { display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .process-tabs { grid-template-columns: repeat(3, 1fr); } }
.process-tab {
  position: relative; overflow: hidden; text-align: left; border-radius: 1rem;
  border: 1px solid var(--border); background: var(--surface); padding: 1.25rem; transition: all 0.3s ease;
}
.process-tab:hover { border-color: rgba(232,101,10,.5); transform: translateY(-2px); }
.process-tab.active { border-color: var(--primary); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.process-tab-top { display: flex; align-items: center; justify-content: space-between; }
.process-num { font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; color: rgba(232,101,10,.8); }
.process-tab.active .process-num { color: var(--primary); }
.process-tab-icon { display: inline-flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: 0.5rem; background: var(--ink); color: #fff; }
.process-tab.active .process-tab-icon { background: var(--primary); }
.process-tab-icon svg { width: 1.1rem; height: 1.1rem; }
.process-tab-title { margin-top: 0.75rem; font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.process-tab.active .process-tab-title { color: #fff; }
.process-bar { margin-top: 1rem; height: 4px; width: 100%; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.process-bar-fill { height: 100%; transform-origin: left; background: var(--primary); transform: scaleX(0); }
.process-tab.active .process-bar-fill.animate { animation: progress-grow 5.5s linear forwards; }
.process-tab.active .process-bar-fill.filled { transform: scaleX(1); }

.process-panel { margin-top: 1rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); padding: 1.75rem; }
@media (min-width: 768px) { .process-panel { padding: 2.5rem; } }
.process-panel-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .process-panel-grid { grid-template-columns: auto 1fr; } }
.process-panel-badge-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.process-panel-icon { display: inline-flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center; border-radius: 1rem; background: var(--primary); color: #fff; box-shadow: 0 10px 25px -10px rgba(232,101,10,.6); }
.process-panel-icon svg { width: 1.5rem; height: 1.5rem; }
.process-panel h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; color: var(--ink); }
.process-points { margin-top: 1.5rem; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .process-points { grid-template-columns: repeat(2, 1fr); } }
.process-points li { display: flex; gap: 0.75rem; font-size: 0.875rem; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--background); padding: 1rem; }
.process-points li svg { width: 1rem; height: 1rem; color: var(--primary); margin-top: 0.125rem; flex-shrink: 0; }
.animate-fade-in { animation: fade-in 0.5s ease both; }

/* ---------- Testimonials ---------- */
.quote-card { height: 100%; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; transition: all 0.3s ease; }
.quote-card:hover { transform: translateY(-4px); border-color: rgba(232,101,10,.5); box-shadow: var(--shadow-soft); }
.quote-icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.quote-text { margin-top: 1rem; font-size: 1.125rem; color: var(--ink); line-height: 1.6; }
.quote-foot { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.quote-avatar { height: 2.5rem; width: 2.5rem; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; }
.quote-name { font-weight: 500; color: var(--ink); font-size: 0.875rem; }
.quote-company { font-size: 0.75rem; color: var(--muted-foreground); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.1); padding: 2.5rem; background: linear-gradient(to bottom right, rgba(255,255,255,.03), transparent); }
@media (min-width: 768px) { .cta-band { padding: 3.5rem; } }
.cta-band-inner { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; }
.cta-band p { margin-top: 1rem; color: rgba(255,255,255,.7); }

/* ---------- Newsletter ---------- */
.split { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: repeat(2, 1fr); } }
.check-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; }
.check-list li { display: flex; gap: 0.5rem; font-size: 0.875rem; }
.check-list svg { width: 1rem; height: 1rem; color: var(--primary); margin-top: 0.125rem; flex-shrink: 0; }
.newsletter-box { border-radius: 1rem; border: 1px solid var(--border); background: var(--background); padding: 2rem; text-align: center; }
.newsletter-box .icon-lg { width: 2rem; height: 2rem; color: var(--primary); margin-inline: auto; }
.newsletter-box h3 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.newsletter-box p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.fine { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* ---------- Teaser band ---------- */
.teaser-band { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--surface); padding: 2.5rem; display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
@media (min-width: 768px) { .teaser-band { padding: 3.5rem; flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- FAQ / Accordion ---------- */
.faq-split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .faq-split { grid-template-columns: 1fr 2fr; } }
.accordion { border-radius: 1rem; border: 1px solid var(--border); background: var(--background); overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--border); padding-inline: 1.5rem; }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; background: none; border: none; text-align: left;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink);
}
.acc-trigger .chev { width: 1rem; height: 1rem; color: var(--muted-foreground); transition: transform 0.3s; flex-shrink: 0; }
.acc-item.open .acc-trigger .chev { transform: rotate(180deg); }
.acc-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.acc-item.open .acc-content { grid-template-rows: 1fr; }
.acc-content-inner { overflow: hidden; }
.acc-content-inner p { color: var(--muted-foreground); line-height: 1.65; padding-bottom: 1.1rem; }
.link-underline { color: var(--primary); }
.link-underline:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.info-box { margin-top: 2rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; }
.info-box h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.info-box p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.form-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.375rem; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 0.6rem; background: #fff;
  padding: 0.6rem 0.75rem; font-family: inherit; font-size: 0.9rem; color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,101,10,.12); }
.field textarea { resize: vertical; min-height: 8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-block: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-about p { margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,.7); line-height: 1.65; }
.footer-col h4 { font-size: 0.875rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--primary); }
.footer-col .row { display: flex; align-items: center; gap: 0.5rem; }
.footer-col .row svg { width: 1rem; height: 1rem; color: var(--primary); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a { display: inline-flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: 0.375rem; border: 1px solid rgba(255,255,255,.15); }
.footer-social a:hover { border-color: var(--primary); color: var(--primary); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container-page { padding-block: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,.5); }
@media (min-width: 768px) { .footer-bottom .container-page { flex-direction: row; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 50; }
@media (min-width: 768px) { .cookie-banner { left: auto; right: 1.5rem; max-width: 28rem; } }
.cookie-inner { border-radius: 1rem; border: 1px solid var(--border); background: var(--background); padding: 1.25rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
.cookie-inner h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.cookie-inner p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.cookie-actions { margin-top: 1rem; display: flex; gap: 0.5rem; justify-content: flex-end; }
.btn-sm { height: 2.1rem; padding: 0 0.9rem; font-size: 0.8rem; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--ink); color: #fff; padding: 0.75rem 1.1rem; border-radius: 0.6rem; font-size: 0.875rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); opacity: 0; transform: translateY(10px); transition: all 0.3s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: #b3200f; }

/* ---------- Reveal (scroll animation) ---------- */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.reveal.dir-left { transform: translate3d(32px, 0, 0); }
.reveal.dir-right { transform: translate3d(-32px, 0, 0); }
.reveal.dir-scale { transform: scale(0.94); }
.reveal.shown { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes blob-float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33%      { transform: translate3d(30px,-20px,0) scale(1.08); }
  66%      { transform: translate3d(-20px,25px,0) scale(0.96); }
}
@keyframes headline-rise {
  0%   { transform: translateY(110%); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Animated headline */
.headline-word { display: inline-block; overflow: hidden; vertical-align: baseline; padding-right: 0.25em; }
.headline-word > span { display: inline-block; transform: translateY(110%); opacity: 0; animation: headline-rise 0.9s cubic-bezier(.22,1,.36,1) forwards; }
.headline-word.hl > span { color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .headline-word > span { animation: none; transform: none; opacity: 1; }
  .blob { animation: none; }
  * { scroll-behavior: auto; }
}

/* small utils */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* =========================================================================
   Unterseiten-Komponenten
   ========================================================================= */

/* ---------- Page header ---------- */
.page-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.page-header .container-page { max-width: 48rem; padding-block: 4rem; }
@media (min-width: 768px) { .page-header .container-page { padding-block: 6rem; } }
.page-header h1 { margin-top: 1rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--ink); line-height: 1.1; }
.page-header p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; }
.page-header-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Two-column intro (ISO pages) ---------- */
.split-wide { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .split-wide { grid-template-columns: 1.1fr 1fr; } }
.intro-heading { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; color: var(--ink); }
.intro-lead { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.tick-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.tick-list li { display: flex; gap: 0.75rem; }
.tick-list svg { width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; }
.tick-list span { color: var(--ink); }

.person-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; }
.person-head { display: flex; align-items: center; gap: 0.75rem; }
.person-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.person-role { font-size: 0.875rem; color: var(--muted-foreground); }
.spec-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; font-size: 0.875rem; }
.spec-grid dt { color: var(--muted-foreground); }
.spec-grid dd { margin: 0.25rem 0 0; font-weight: 600; color: var(--ink); }

/* ---------- Package cards (3 Wege) ---------- */
.pkg-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }
.pkg-card { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; }
.pkg-card.highlight { border-color: var(--primary); box-shadow: var(--shadow-lg); outline: 1px solid rgba(232,101,10,.2); }
.pkg-badge { position: absolute; top: -0.75rem; left: 1.75rem; border-radius: 999px; background: var(--primary); color: #fff; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.pkg-tag { margin-top: 1.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--primary); }
.pkg-card h3 { margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.pkg-card > p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }
.pkg-bullets { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.pkg-bullets li { display: flex; gap: 0.5rem; }
.pkg-bullets svg { width: 1rem; height: 1rem; color: var(--primary); margin-top: 0.125rem; flex-shrink: 0; }
.pkg-bullets span { color: var(--ink); }
.pkg-foot { margin-top: auto; padding-top: 1.5rem; }
.pkg-foot .btn { width: 100%; }
.pkg-note { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Roadmap ---------- */
.roadmap { margin-top: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roadmap { grid-template-columns: repeat(4, 1fr); } }
.roadmap-step { height: 100%; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; }
.roadmap-num { font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; color: var(--primary); }
.roadmap-step h3 { margin-top: 0.75rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.roadmap-step p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ---------- Risk / driver list (border-left) ---------- */
.side-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; }
.side-card-head { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--primary); }
.side-card-head svg { width: 1.25rem; height: 1.25rem; }
.risk-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.risk-item { border-left: 2px solid rgba(232,101,10,.4); padding-left: 1rem; }
.risk-item .k { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.risk-item .v { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Annex A blocks ---------- */
.annex-head { display: flex; align-items: center; gap: 1rem; }
.annex-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* ---------- Simple CTA (dark) ---------- */
.cta-simple { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .cta-simple { grid-template-columns: 1.4fr 1fr; } }
.cta-simple h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; line-height: 1.15; }
.cta-simple p { margin-top: 1rem; color: rgba(255,255,255,.7); max-width: 36rem; }
.cta-simple-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 1024px) { .cta-simple-actions { justify-content: flex-end; } }

/* ---------- Dokumenten-Paket tabs ---------- */
.dp-tablist { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; }
.dp-tablist-wrap { display: flex; justify-content: center; }
.dp-tab { padding: 0.5rem 1rem; border-radius: 0.5rem; border: none; background: transparent; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: all 0.2s; }
.dp-tab:hover { color: var(--ink); }
.dp-tab.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.dp-panel { margin-top: 2.5rem; }
.dp-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .dp-grid { grid-template-columns: 3fr 2fr; } }
.dp-panel h2 { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; color: var(--ink); line-height: 1.15; }
.dp-sub { margin-top: 1rem; font-size: 1.125rem; color: var(--muted-foreground); }
.dp-includes-title { margin-top: 2rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.dp-includes { margin-top: 1rem; display: grid; grid-template-columns: 1fr; gap: 0.75rem; font-size: 0.875rem; }
@media (min-width: 640px) { .dp-includes { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; } }
.dp-includes li { display: flex; align-items: flex-start; gap: 0.5rem; }
.dp-includes svg { width: 1.25rem; height: 1.25rem; color: var(--primary); margin-top: 0.125rem; flex-shrink: 0; }
.dp-price-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); padding: 2rem; }
.dp-price-card.highlight { border-color: var(--primary); background: rgba(232,101,10,.05); box-shadow: var(--shadow-lg); }
.dp-price-flag { display: flex; align-items: center; gap: 0.5rem; color: var(--primary); font-size: 0.875rem; font-weight: 600; }
.dp-price-flag svg { width: 1rem; height: 1rem; }
.dp-price-card h3 { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.dp-price { margin-top: 1rem; font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--ink); }
.dp-price-note { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.dp-price-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.dp-price-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.dp-price-list svg { width: 1rem; height: 1rem; color: var(--primary); margin-top: 0.125rem; flex-shrink: 0; }

/* ---------- Price table ---------- */
.price-table-wrap { margin-top: 2.5rem; overflow-x: auto; }
.price-table { width: 100%; text-align: left; border-collapse: collapse; min-width: 32rem; }
.price-table th { padding: 0.75rem 1rem 0.75rem 0; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.price-table td { padding: 1rem 1rem 1rem 0; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.price-table .ta-right { text-align: right; }
.price-table .muted { color: var(--muted-foreground); }
.price-table tr.hl { background: rgba(232,101,10,.05); }
.price-table tr.hl td.price { color: var(--primary); font-weight: 600; }

/* ---------- Kostenrechner ---------- */
.calc-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
.calc-panel { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.calc-block > .calc-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.75rem; }
.radio-card { display: flex; align-items: flex-start; gap: 0.75rem; border-radius: 0.6rem; border: 1px solid var(--border); padding: 1rem; cursor: pointer; transition: border-color 0.2s; margin-bottom: 0.75rem; }
.radio-card:hover { border-color: rgba(232,101,10,.4); }
.radio-card:has(input:checked) { border-color: var(--primary); background: rgba(232,101,10,.04); }
.radio-card input { margin-top: 0.2rem; accent-color: var(--primary); width: 1rem; height: 1rem; }
.radio-card .rc-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.radio-card .rc-sub { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.1rem; }
.calc-slider-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.calc-slider-head .calc-label { margin: 0; }
.calc-out { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.calc-out.sm { font-size: 1rem; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--border); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 999px; background: var(--primary); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 999px; background: var(--primary); cursor: pointer; border: 2px solid #fff; }
.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.calc-toggle { display: flex; align-items: center; justify-content: space-between; border-radius: 0.6rem; border: 1px solid var(--border); padding: 1rem; margin-bottom: 0.75rem; }
.calc-toggle .ct-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.calc-toggle .ct-sub { font-size: 0.875rem; color: var(--muted-foreground); }
.switch { position: relative; display: inline-block; width: 2.75rem; height: 1.5rem; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background 0.2s; }
.switch-track::before { content: ""; position: absolute; height: 1.1rem; width: 1.1rem; left: 0.2rem; top: 0.2rem; background: #fff; border-radius: 999px; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::before { transform: translateX(1.25rem); }
.calc-hint { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.5rem; }

.calc-result { border-radius: 1rem; border: 1px solid var(--border); background: var(--ink); color: #fff; padding: 2rem; }
.calc-result h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.calc-rows { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.calc-row { display: flex; justify-content: space-between; }
.calc-row dt { color: rgba(255,255,255,.7); margin: 0; }
.calc-row dd { margin: 0; }
.calc-row-sep { border-top: 1px solid rgba(255,255,255,.1); padding-top: 0.75rem; }
.calc-row-sub { color: var(--primary); }
.calc-row-sub dt { color: var(--primary); }
.calc-total { margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; display: flex; align-items: baseline; justify-content: space-between; }
.calc-total-label { color: rgba(255,255,255,.7); }
.calc-total-value { font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; color: var(--primary); }
.calc-fine { margin-top: 0.75rem; font-size: 0.75rem; color: rgba(255,255,255,.5); }
.calc-result .btn { width: 100%; }
.btn-ghost-dark { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Blog magazine ---------- */
.mag-head { border-bottom: 1px solid rgba(17,17,17,.1); padding-bottom: 2.5rem; margin-bottom: 3.5rem; }
.mag-kicker { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.mag-kicker .sq { height: 0.5rem; width: 0.5rem; background: var(--primary); }
.mag-kicker span { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); }
.mag-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; color: var(--ink); }
.mag-intro { margin-top: 1rem; max-width: 42rem; color: var(--muted-foreground); }
.mag-filters { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mag-filter { padding: 0.375rem 1rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid rgba(17,17,17,.1); background: transparent; color: var(--ink); transition: all 0.2s; }
.mag-filter:hover { border-color: var(--ink); }
.mag-filter.active { border-color: var(--ink); background: var(--ink); color: #fff; }

.mag-featured { display: grid; grid-template-columns: 1fr; border: 1px solid var(--ink); margin-bottom: 3rem; }
@media (min-width: 768px) { .mag-featured { grid-template-columns: 7fr 5fr; } }
.mag-featured-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--ink); min-height: 240px; }
@media (min-width: 768px) { .mag-featured-cover { aspect-ratio: auto; } }
.mag-featured-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mag-featured-body { display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--ink); padding: 2rem; }
@media (min-width: 768px) { .mag-featured-body { border-top: none; border-left: 1px solid var(--ink); padding: 3rem; } }
.mag-featured-tag { margin-bottom: 1rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--primary); }
.mag-featured-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--ink); line-height: 1.15; }
.mag-featured-body p { margin-top: 1.5rem; color: rgba(17,17,17,.7); line-height: 1.7; }
.mag-more { margin-top: 2rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink); transition: color 0.2s; }
.mag-more svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.mag-featured:hover .mag-more, .mag-card:hover .mag-more { color: var(--primary); }
.mag-featured:hover .mag-more svg { transform: translateX(4px); }
.mag-cover-num { position: absolute; font-family: var(--font-display); font-weight: 800; color: rgba(255,255,255,.1); line-height: 1; }
.mag-cover-a { background: radial-gradient(120% 80% at 0% 0%, rgba(232,101,10,.18), transparent 55%), linear-gradient(135deg, #111 0%, #1c1c1c 100%); }
.mag-cover-b { background-color: var(--surface); background-image: linear-gradient(135deg, #fafaf8 25%, transparent 25%, transparent 50%, #fafaf8 50%, #fafaf8 75%, transparent 75%, transparent); background-size: 14px 14px; }
.mag-cover-c { background: radial-gradient(80% 120% at 100% 0%, rgba(232,101,10,.12), transparent 60%), #fafaf8; }

.mag-secondary { display: grid; grid-template-columns: 1fr; border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); margin-bottom: 3rem; }
@media (min-width: 768px) { .mag-secondary { grid-template-columns: repeat(3, 1fr); } }
.mag-sec-card { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 2rem; transition: background 0.2s; }
.mag-sec-card:hover { background: var(--surface); }
.mag-sec-tag { display: block; margin-bottom: 1rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); }
.mag-sec-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.mag-sec-card:hover h3 { text-decoration: underline; text-decoration-color: var(--primary); }
.mag-sec-card p { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(17,17,17,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mag-sec-date { margin-top: 1.5rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(17,17,17,.4); }

.mag-tail { display: grid; grid-template-columns: 1fr; gap: 3rem 2rem; margin-bottom: 5rem; }
@media (min-width: 768px) { .mag-tail { grid-template-columns: repeat(3, 1fr); } }
.mag-tail-card { display: flex; flex-direction: column; }
.mag-tail-cover { position: relative; margin-bottom: 1.5rem; aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(17,17,17,.1); }
.mag-tail-cover .mag-cover-num { right: 1rem; bottom: 0.5rem; font-size: 3.75rem; color: rgba(17,17,17,.1); }
.mag-tail-tag { margin-bottom: 0.5rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(17,17,17,.4); }
.mag-tail-card h4 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.mag-tail-card:hover h4 { color: var(--primary); }
.mag-tail-card .top-border { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.mag-tail-card p { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(17,17,17,.6); }
.mag-tail-meta { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }
.mag-tail-meta .cat { color: var(--primary); }
.mag-tail-meta .date { color: rgba(17,17,17,.4); }
.mag-tail-date { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(17,17,17,.4); margin-top: 0.5rem; }

.mag-newsletter { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 3rem; text-align: center; }
@media (min-width: 768px) { .mag-newsletter { padding: 4rem; } }
.mag-newsletter-inner { position: relative; z-index: 1; max-width: 36rem; margin-inline: auto; }
.mag-newsletter h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; text-transform: uppercase; }
.mag-newsletter p { margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.mag-nl-form { margin-top: 2rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.2); }
@media (min-width: 640px) { .mag-nl-form { flex-direction: row; } }
.mag-nl-form input { flex: 1; border: none; border-bottom: 1px solid rgba(255,255,255,.2); background: transparent; padding: 1rem 1.5rem; font-size: 0.875rem; color: #fff; font-family: inherit; }
@media (min-width: 640px) { .mag-nl-form input { border-bottom: none; border-right: 1px solid rgba(255,255,255,.2); } }
.mag-nl-form input::placeholder { color: rgba(255,255,255,.3); }
.mag-nl-form input:focus { outline: none; }
.mag-nl-form button { background: #fff; color: var(--ink); border: none; padding: 1rem 2.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; transition: all 0.2s; }
.mag-nl-form button:hover { background: var(--primary); color: #fff; }
.mag-nl-deco1 { position: absolute; right: 0; top: 0; height: 12rem; width: 12rem; transform: translate(6rem, -6rem) rotate(45deg); background: var(--primary); opacity: 0.1; }
.mag-empty { padding: 5rem 0; text-align: center; color: var(--muted-foreground); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 48rem; color: var(--foreground); line-height: 1.75; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-top: 2rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-top: 1.5rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li { margin-top: 0.5rem; }
.prose .muted-note { font-size: 0.875rem; color: var(--muted-foreground); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; vertical-align: top; }

/* =========================================================================
   WordPress-Anpassungen (Menü-Struktur ul>li, Standard-Content)
   ========================================================================= */
.main-nav .qo-menu-list { display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; }
.main-nav .qo-menu-list li { list-style: none; }
.main-nav .qo-menu-list a { color: var(--foreground); transition: color 0.2s; }
.main-nav .qo-menu-list a:hover,
.main-nav .qo-menu-list .current-menu-item > a,
.main-nav .qo-menu-list a.active { color: var(--primary); }
.mobile-nav .qo-menu-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; }
.mobile-nav .qo-menu-list li { list-style: none; }
.mobile-nav .qo-menu-list a { padding: 0.375rem 0; font-size: 0.9rem; font-weight: 500; color: var(--foreground); }
.mobile-nav .qo-menu-list a:hover,
.mobile-nav .qo-menu-list .current-menu-item > a { color: var(--primary); }

/* Standard-Seiteninhalt (WP-Editor) im Fließtext-Stil */
.qo-entry-content { max-width: 48rem; margin-inline: auto; }
.qo-entry-content > * + * { margin-top: 1.25rem; }
.qo-entry-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-top: 2rem; }
.qo-entry-content h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-top: 1.5rem; }
.qo-entry-content a { color: var(--primary); }
.qo-entry-content a:hover { text-decoration: underline; }
.qo-entry-content img { border-radius: 0.75rem; }
.qo-entry-content ul { list-style: disc; padding-left: 1.25rem; }
.qo-entry-content ol { list-style: decimal; padding-left: 1.25rem; }
.qo-entry-content li { margin-top: 0.5rem; }
.qo-entry-content blockquote { border-left: 3px solid var(--primary); padding-left: 1.25rem; color: var(--muted-foreground); font-style: italic; }

/* Single-Post Kopf */
.qo-post-hero { border-bottom: 1px solid var(--border); background: var(--surface); }
.qo-post-hero .container-page { max-width: 48rem; padding-block: 3.5rem; }
.qo-post-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; font-size: 0.8rem; color: var(--muted-foreground); margin-top: 1rem; }
.qo-post-featured { max-width: 48rem; margin: 2.5rem auto 0; }
.qo-post-featured img { width: 100%; border-radius: 1rem; }
.qo-pagination { max-width: 48rem; margin: 3rem auto 0; display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Custom-Logo (seitenverhältnis-erhaltend) ---------- */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo .custom-logo {
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) { .brand-logo .custom-logo { max-width: 180px; } }
