/* ================================================
   AnaCalling.com – Design System
   © Webunox – Alle Rechte vorbehalten
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  --primary:        #4F46E5;
  --primary-dark:   #3730A3;
  --primary-light:  #6366F1;
  --primary-50:     #EEF2FF;
  --primary-100:    #E0E7FF;
  --teal:           #7C3AED;
  --teal-dark:      #6D28D9;
  --teal-light:     #8B5CF6;
  --teal-50:        #F5F3FF;
  --green:          #10B981;
  --green-dark:     #059669;
  --green-50:       #ECFDF5;
  --orange:         #F59E0B;
  --orange-50:      #FFFBEB;
  --red:            #EF4444;
  --red-50:         #FEF2F2;
  --white:          #FFFFFF;
  --gray-50:        #F8FAFC;
  --gray-100:       #F1F5F9;
  --gray-200:       #E2E8F0;
  --gray-300:       #CBD5E1;
  --gray-400:       #94A3B8;
  --gray-500:       #64748B;
  --gray-600:       #475569;
  --gray-700:       #334155;
  --gray-800:       #1E293B;
  --gray-900:       #0F172A;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-xs:      0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:      0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-md:      0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-lg:      0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-xl:      0 25px 50px -12px rgba(0,0,0,.25);
  --shadow-primary: 0 8px 30px rgba(79,70,229,.25);
  --shadow-teal:    0 8px 30px rgba(124,58,237,.25);
  --r-sm:  4px;
  --r:     8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full:9999px;
  --t-fast: .15s ease;
  --t:      .3s ease;
  --t-slow: .5s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 1rem; color: var(--gray-800); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Layout --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 800px; }
.section { padding: 5rem 0; }
.section--lg { padding: 7rem 0; }
.section--sm { padding: 3rem 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--primary); color: var(--white); }
.section--dark h1,.section--dark h2,.section--dark h3 { color: var(--white); }
.section--teal { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: var(--white); }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--gray-900); }
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--teal); margin-bottom: 1rem;
}
.section-label--white { color: rgba(255,255,255,.8); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; letter-spacing: -.02em; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); max-width: 600px; line-height: 1.75; }
.section--dark .section-subtitle,.section--teal .section-subtitle { color: rgba(255,255,255,.75); }
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }
.text-teal { color: var(--teal); }
.divider { width: 56px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--teal)); border-radius: var(--r-full); margin: 1rem 0; }
.divider--center { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.75rem; font-size: 1rem; font-weight: 600;
  border-radius: var(--r-full); transition: all var(--t); cursor: pointer;
  white-space: nowrap; border: 2px solid transparent; text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--teal); color: var(--white); box-shadow: var(--shadow-teal); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 35px rgba(124,58,237,.35); }
.btn--secondary { background: var(--white); color: var(--primary); border-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--primary); color: var(--white); box-shadow: var(--shadow-primary); }
.btn--dark:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.btn--lg { padding: 1.125rem 2.25rem; font-size: 1.125rem; }
.btn--sm { padding: .625rem 1.25rem; font-size: .875rem; }
.btn--full { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200); transition: all var(--t);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }
.nav__logo { display: flex; align-items: center; gap: .625rem; text-decoration: none; flex-shrink: 0; }
.nav__logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
}
.nav__logo-mark svg { width: 22px; height: 22px; color: white; }
.nav__logo-text { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.nav__logo-text span { color: var(--teal); }
.nav__links { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
.nav__link {
  padding: .5rem .75rem; font-size: .875rem; font-weight: 500; color: var(--gray-600);
  border-radius: var(--r); transition: all var(--t-fast); white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--primary); background: var(--gray-100); }
.nav__link--cta { color: var(--teal) !important; font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all var(--t-fast); }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.nav__mobile {
  display: none; position: fixed; inset: 0; background: var(--white); z-index: 999;
  padding: 1.5rem; overflow-y: auto; flex-direction: column;
}
.nav__mobile.open { display: flex; }
.nav__mobile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.nav__mobile-close { font-size: 1.75rem; color: var(--gray-400); cursor: pointer; line-height: 1; }
.nav__mobile-links { display: flex; flex-direction: column; gap: .25rem; }
.nav__mobile-link {
  padding: 1rem; font-size: 1.125rem; font-weight: 500; color: var(--gray-700);
  border-radius: var(--r); border-bottom: 1px solid var(--gray-100); transition: all var(--t-fast);
}
.nav__mobile-link:hover { color: var(--primary); background: var(--gray-50); }
.nav__mobile-cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, var(--gray-50) 0%, var(--white) 55%, #f0fdf9 100%);
  padding: 5rem 0 6rem; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; text-align: center; }
.hero__label {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal-50); color: var(--teal-dark);
  padding: .375rem 1rem; border-radius: var(--r-full); font-size: .875rem; font-weight: 600;
  margin-bottom: 1.5rem; border: 1px solid rgba(124,58,237,.2);
}
.hero__dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem); font-weight: 900; line-height: 1.08;
  color: var(--gray-900); margin-bottom: 1.5rem; letter-spacing: -.025em;
}
.hero__title .highlight { color: var(--teal); }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--gray-500); line-height: 1.75;
  margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero__trust { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-size: .875rem; color: var(--gray-400); }
.hero__trust-item { display: flex; align-items: center; gap: .375rem; }
.hero__trust-item svg { width: 16px; height: 16px; color: var(--teal); }
.hero__video-wrap { margin-top: 4rem; position: relative; z-index: 1; }
.hero__video {
  background: var(--gray-900); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); position: relative; aspect-ratio: 16/9;
  max-width: 960px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,.1);
}
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 2rem;
  background: linear-gradient(135deg, #3730A3 0%, #1a3a5c 45%, #7C3AED 100%);
  color: white;
}
.video-play {
  width: 80px; height: 80px; background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; cursor: pointer; transition: all var(--t);
  border: 2px solid rgba(255,255,255,.35);
}
.video-play:hover { background: rgba(255,255,255,.3); transform: scale(1.08); }
.video-play svg { width: 32px; height: 32px; color: white; margin-left: 4px; }
.video-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.video-desc { font-size: .875rem; opacity: .7; max-width: 480px; }

/* --- Trust Bar --- */
.trust-bar { background: var(--white); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); padding: 1.5rem 0; }
.trust-bar__inner { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 500; color: var(--gray-500); }
.trust-item svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }

/* --- Problem Section --- */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.problem-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 1.5rem; transition: all var(--t); position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), #f97316); opacity: 0; transition: opacity var(--t);
}
.problem-card:hover::before { opacity: 1; }
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.problem-card__emoji { font-size: 2rem; margin-bottom: 1rem; }
.problem-card__title { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: .5rem; }
.problem-card__text { font-size: .875rem; color: var(--gray-500); line-height: 1.65; }

/* --- Feature Grid --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg);
  padding: 2rem; transition: all var(--t);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary-50), var(--teal-50));
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 1.25rem;
}
.feature-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem; color: var(--gray-900); }
.feature-card__text { font-size: .875rem; color: var(--gray-500); line-height: 1.7; }

/* --- Process Steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--primary-100), var(--teal-50)); z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step__num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: white; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.25rem; font-weight: 800;
  margin: 0 auto 1.25rem; box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.step__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .625rem; color: var(--gray-900); }
.step__text { font-size: .875rem; color: var(--gray-500); line-height: 1.7; }

/* --- Before / After --- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.ba-card { border-radius: var(--r-xl); overflow: hidden; }
.ba-card--before { background: var(--gray-50); border: 1px solid var(--gray-200); }
.ba-card--after { background: linear-gradient(160deg, var(--primary-50), var(--teal-50)); border: 1px solid rgba(124,58,237,.2); }
.ba-card__header {
  padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: .75rem;
  border-bottom: 1px solid var(--gray-200);
}
.ba-card--after .ba-card__header { border-bottom-color: rgba(124,58,237,.2); }
.ba-card__header-badge {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.125rem;
}
.ba-card--before .ba-card__header-badge { background: var(--red-50); }
.ba-card--after .ba-card__header-badge { background: var(--green-50); }
.ba-card__header-title { font-weight: 700; font-size: 1.0625rem; }
.ba-card--before .ba-card__header-title { color: var(--gray-700); }
.ba-card--after .ba-card__header-title { color: var(--primary); }
.ba-list { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.ba-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--gray-600); }
.ba-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900; flex-shrink: 0; margin-top: 1px;
}
.ba-card--before .ba-dot { background: var(--red-50); color: var(--red); }
.ba-card--after .ba-dot { background: var(--green-50); color: var(--green); }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
  background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--r-xl);
  padding: 2rem; position: relative; transition: all var(--t);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-card--featured {
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(124,58,237,.1), var(--shadow-xl);
  transform: translateY(-8px);
}
.pricing-card--featured:hover { transform: translateY(-12px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white;
  padding: .25rem 1.25rem; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.pricing-card__name { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: .375rem; }
.pricing-card__tagline { font-size: .875rem; color: var(--gray-400); margin-bottom: 1.5rem; line-height: 1.5; }
.pricing-card__price { margin-bottom: 1.5rem; }
.pricing-card__from { font-size: .8125rem; color: var(--gray-400); margin-bottom: .25rem; }
.pricing-card__amount { font-size: 3rem; font-weight: 900; color: var(--gray-900); line-height: 1; }
.pricing-card__period { font-size: 1rem; color: var(--gray-400); font-weight: 400; }
.pricing-card__features {
  display: flex; flex-direction: column; gap: .75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--gray-100); margin-bottom: 2rem;
}
.pf { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--gray-600); line-height: 1.5; }
.pf--highlight { font-weight: 600; color: var(--gray-800); }
.pf__check {
  width: 20px; height: 20px; background: var(--green-50); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--green); font-size: .65rem; font-weight: 900; margin-top: 1px;
}
.pf__check--pro { background: rgba(124,58,237,.15); color: var(--teal); }
.compare-pro { background: rgba(124,58,237,.12) !important; font-weight: 700; }
.pricing-slot {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1rem; padding: .625rem 1rem; background: var(--gray-50); border-radius: var(--r);
  font-size: .75rem; color: var(--gray-500);
}
.slot-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.slot-dot--green { background: var(--green); }
.slot-dot--orange { background: var(--orange); }
.slot-dot--red { background: var(--red); }

/* --- Trial Banner --- */
.trial-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0f4c6e 100%);
  border-radius: var(--r-xl); padding: 2rem 2.5rem; margin-bottom: 2.5rem;
  color: var(--white); position: relative; overflow: hidden;
}
.trial-banner::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; background: rgba(124,58,237,.15); border-radius: 50%;
}
.trial-banner__badge {
  display: inline-block; background: var(--teal); color: var(--white);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: var(--r-full); margin-bottom: 1.25rem;
}
.trial-banner__content {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.trial-banner__title {
  font-size: 1.375rem; font-weight: 800; line-height: 1.3; margin-bottom: .5rem; color: var(--white);
}
.trial-banner__sub { font-size: .875rem; color: rgba(255,255,255,.7); }
.trial-banner__features {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem;
}
.trial-feat { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.85); }
.trial-feat__check {
  width: 18px; height: 18px; background: rgba(124,58,237,.35); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 900; color: #5eead4; flex-shrink: 0;
}

/* --- Pricing card volume line --- */
.pricing-card__volume {
  font-size: .8125rem; font-weight: 600; color: var(--teal);
  margin-bottom: 1.25rem; margin-top: -.75rem;
}

/* --- Overage Box --- */
.overage-box {
  background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--r-xl);
  padding: 2rem; margin-top: 2rem; text-align: center;
}
.overage-box__title { font-size: 1.125rem; font-weight: 800; color: var(--gray-900); margin-bottom: .5rem; }
.overage-box__sub { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.75rem; }
.overage-grid {
  display: flex; justify-content: center; align-items: stretch; gap: 1rem; flex-wrap: wrap;
}
.overage-item {
  background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 1.25rem 2rem; display: flex; flex-direction: column; align-items: center; gap: .375rem;
  min-width: 160px; transition: border-color .2s ease, box-shadow .2s ease;
}
.overage-item:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.overage-item--best {
  border-color: var(--teal); background: rgba(124,58,237,.04); position: relative;
}
.overage-item__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white); font-size: .7rem; font-weight: 700;
  white-space: nowrap; padding: .2rem .75rem; border-radius: var(--r-full);
}
.overage-item__calls { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.overage-item__price { font-size: 1.625rem; font-weight: 900; color: var(--teal); }

/* --- Comparison Table --- */
.compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2rem; }
.compare-table table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
  background: var(--white); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-table th, .compare-table td {
  padding: .875rem 1.25rem; text-align: center; border-bottom: 1px solid var(--gray-100);
}
.compare-table th:first-child, .compare-table td:first-child {
  text-align: left; font-weight: 500; color: var(--gray-700);
}
.compare-table th { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); background: var(--gray-50); }
.compare-table tbody tr:last-child td { border-bottom: none; padding-top: 1.25rem; }
.compare-table tbody tr:hover td { background: var(--gray-50); }
.compare-table td.compare-featured { background: rgba(124,58,237,.05); font-weight: 600; color: var(--teal); }
.compare-table th.compare-featured { background: rgba(124,58,237,.1); color: var(--teal); }

/* --- Impact Points (Problem / Lösung) --- */
.impact-points { display: flex; flex-direction: column; gap: 0; max-width: 820px; margin: 0 auto; }
.impact-point {
  display: flex; gap: 2.5rem; align-items: flex-start;
  padding: 2.5rem 0; border-bottom: 1px solid var(--gray-200);
}
.impact-point:last-child { border-bottom: none; }
.impact-point__marker {
  font-size: 3rem; font-weight: 900; color: var(--gray-200);
  line-height: 1; flex-shrink: 0; width: 64px; text-align: right;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.impact-point__marker--teal { color: var(--teal); opacity: .35; }
.impact-point__title { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: .625rem; line-height: 1.3; }
.impact-point__text { font-size: .9375rem; color: var(--gray-500); line-height: 1.75; margin: 0; }
.impact-points--solution .impact-point__title { color: var(--primary); }

/* --- Forwarding / Weiterleitung --- */
.forwarding-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem;
}
.forwarding-step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--gray-50); border-radius: var(--r-xl); padding: 1.75rem;
  border: 1px solid var(--gray-100);
}
.forwarding-step__num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white; font-weight: 900; font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.forwarding-step__title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .375rem; }
.forwarding-step__text { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

.forwarding-modes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.forwarding-mode {
  background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--r-xl);
  padding: 1.5rem 1.25rem; text-align: center; position: relative;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.forwarding-mode:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.forwarding-mode--active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.forwarding-mode__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white; font-size: .7rem; font-weight: 700;
  padding: .2rem .75rem; border-radius: var(--r-full); white-space: nowrap;
}
.forwarding-mode__icon { font-size: 2rem; margin-bottom: .75rem; }
.forwarding-mode strong { display: block; font-size: .9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.forwarding-mode p { font-size: .8125rem; color: var(--gray-500); line-height: 1.6; margin: 0; }

/* --- Forwarding Featured (Dauerhaft) --- */
.forwarding-mode-featured {
  background: linear-gradient(135deg, rgba(124,58,237,.08) 0%, rgba(124,58,237,.04) 100%);
  border: 2px solid var(--teal); border-radius: var(--r-xl);
  padding: 2rem 2.5rem; text-align: center; margin-top: 1.25rem;
  box-shadow: 0 0 0 4px rgba(124,58,237,.08);
}
.forwarding-mode-featured__badge {
  display: inline-block; background: var(--teal); color: white;
  font-size: .75rem; font-weight: 700; padding: .3rem 1rem;
  border-radius: var(--r-full); margin-bottom: 1rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.forwarding-mode-featured__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.forwarding-mode-featured__title { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: .75rem; }
.forwarding-mode-featured__text { font-size: .9375rem; color: var(--gray-600); line-height: 1.7; max-width: 640px; margin: 0 auto; }

/* --- Phone Number Overlay --- */
.phone-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.phone-overlay.open { opacity: 1; pointer-events: auto; }
.phone-overlay__card {
  background: white; border-radius: var(--r-2xl); padding: 2.5rem 2rem;
  max-width: 420px; width: 90%; text-align: center;
  box-shadow: var(--shadow-xl); transform: scale(.95); position: relative;
  transition: transform .25s ease;
}
.phone-overlay.open .phone-overlay__card { transform: scale(1); }
.phone-overlay__close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  cursor: pointer; font-size: 1.5rem; color: var(--gray-400); line-height: 1;
  padding: .25rem; transition: color .15s;
}
.phone-overlay__close:hover { color: var(--gray-700); }
.phone-overlay__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.phone-overlay__title { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: .5rem; }
.phone-overlay__sub { font-size: .9375rem; color: var(--gray-500); margin-bottom: 1.25rem; line-height: 1.65; }
.phone-overlay__number {
  font-size: 1.25rem; font-weight: 900; color: var(--teal);
  letter-spacing: .02em; background: var(--teal-50);
  border-radius: var(--r-lg); padding: .75rem 1.5rem; margin-bottom: 1.5rem; display: block;
  white-space: nowrap;
}

/* --- Bonus Stack --- */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.bonus-card {
  background: var(--white); border-radius: var(--r-lg); padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: all var(--t);
}
.bonus-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bonus-card__num {
  width: 44px; height: 44px; min-width: 44px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: white; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; font-weight: 800;
}
.bonus-card__title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .375rem; }
.bonus-card__text { font-size: .875rem; color: var(--gray-500); line-height: 1.65; }

/* --- Countdown --- */
.countdown-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--r-xl); padding: 2.5rem; text-align: center; margin-top: 3rem;
}
.countdown-label { font-size: .8125rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.countdown-title { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1.75rem; }
.countdown-timer { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cdu { text-align: center; }
.cdu__num { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 900; color: var(--primary); line-height: 1; min-width: 72px; display: block; font-variant-numeric: tabular-nums; }
.cdu__label { font-size: .75rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem; }
.cd-sep { font-size: 2.5rem; font-weight: 900; color: var(--gray-300); line-height: 1; padding-top: 6px; }

/* --- Guarantees --- */
.guarantee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.guarantee-card {
  background: var(--white); border-radius: var(--r-xl); padding: 2rem; text-align: center;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); transition: all var(--t);
  position: relative; overflow: hidden;
}
.guarantee-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--teal)); }
.guarantee-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.guarantee-card__icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
.guarantee-card__name { font-size: 1.0625rem; font-weight: 800; color: var(--primary); margin-bottom: .75rem; }
.guarantee-card__text { font-size: .875rem; color: var(--gray-500); line-height: 1.75; }

/* --- Testimonials --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--white); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); transition: all var(--t); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.testimonial-video { aspect-ratio: 3/4; background: linear-gradient(135deg, var(--gray-800), var(--gray-900)); display: flex; align-items: center; justify-content: center; position: relative; }
.tv-placeholder { text-align: center; color: rgba(255,255,255,.6); }
.tv-placeholder p { font-size: .8125rem; margin-top: .75rem; }
.tv-play { width: 56px; height: 56px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; color: white; }
.tv-play svg { width: 24px; height: 24px; margin-left: 3px; }
.testimonial-card__body { padding: 1.5rem; }
.testimonial-card__quote {
  font-size: .875rem; color: var(--gray-500); line-height: 1.75; font-style: italic;
  margin-bottom: 1rem; padding: 1rem; background: var(--gray-50); border-radius: var(--r);
  border-left: 3px solid var(--teal);
}
.testimonial-card__author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.125rem; flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: .875rem; color: var(--gray-800); }
.testimonial-card__role { font-size: .75rem; color: var(--gray-400); }
.testimonial-notice {
  text-align: center; margin-top: 2rem; padding: 1.25rem;
  background: var(--gray-50); border-radius: var(--r-lg);
  color: var(--gray-400); font-size: .8125rem; border: 1px dashed var(--gray-300);
}

/* --- Trustpilot --- */
.tp-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 3rem 0; }
.tp-logo { display: flex; align-items: center; gap: .5rem; font-size: 1.5rem; font-weight: 800; }
.tp-logo span { color: #00b67a; }
.tp-text { font-size: .9375rem; color: var(--gray-500); text-align: center; max-width: 400px; }
.tp-link { display: inline-flex; align-items: center; gap: .5rem; color: #00b67a; font-weight: 600; font-size: .9375rem; text-decoration: underline; }

/* --- Lead Form Section --- */
.lead-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--teal-dark) 100%);
  padding: 5rem 0; position: relative; overflow: hidden;
}
.lead-section::before {
  content: ''; position: absolute; top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
  pointer-events: none;
}
.lead-form {
  background: var(--white); border-radius: var(--r-2xl); padding: 2.5rem;
  max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-xl); position: relative; z-index: 1;
}
.lead-form__title { font-size: 1.625rem; font-weight: 800; color: var(--gray-900); margin-bottom: .375rem; }
.lead-form__sub { font-size: .9375rem; color: var(--gray-500); margin-bottom: 2rem; line-height: 1.65; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group--full { grid-column: 1/-1; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--gray-700); }
.opt::after { content: ' (optional)'; font-weight: 400; color: var(--gray-400); }
.form-input,.form-select {
  width: 100%; padding: .75rem 1rem; border: 2px solid var(--gray-200);
  border-radius: var(--r); font-size: 1rem; color: var(--gray-800);
  background: var(--white); transition: all var(--t-fast); outline: none;
}
.form-input:focus,.form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.form-input::placeholder { color: var(--gray-400); }
.form-privacy { font-size: .75rem; color: var(--gray-400); text-align: center; line-height: 1.6; margin-top: .75rem; }
.form-privacy a { color: var(--teal); text-decoration: underline; }
.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success.show { display: block; }
.form-success__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.form-success__title { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: .75rem; }
.form-success__number {
  font-size: 2.25rem; font-weight: 900; color: var(--teal); letter-spacing: .04em;
  margin: 1.25rem auto; padding: 1rem 2rem; background: var(--teal-50);
  border-radius: var(--r-lg); display: inline-block;
}
.form-success__text { color: var(--gray-400); font-size: .9375rem; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t-fast); }
.faq-item.open { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq-trigger {
  width: 100%; padding: 1.25rem 1.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; text-align: left; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--gray-800); background: none; transition: all var(--t-fast);
}
.faq-item.open .faq-trigger { color: var(--primary); }
.faq-trigger:hover { background: var(--gray-50); }
.faq-icon {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  border: 2px solid var(--gray-300); display: flex; align-items: center;
  justify-content: center; font-size: 1.125rem; color: var(--gray-400); transition: all var(--t-fast);
  line-height: 1;
}
.faq-item.open .faq-icon { background: var(--teal); border-color: var(--teal); color: white; transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-body { max-height: 600px; }
.faq-text { padding: 0 1.5rem 1.5rem; font-size: .9375rem; color: var(--gray-500); line-height: 1.8; }

/* --- DSGVO / Trust badges --- */
.dsgvo-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.dsgvo-badge {
  display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-full);
  font-size: .8125rem; font-weight: 600; color: var(--gray-600);
}
.dsgvo-badge svg { width: 16px; height: 16px; color: var(--teal); }

/* --- Final CTA --- */
.final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 6rem 0; text-align: center; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.final-cta__content { position: relative; z-index: 1; }
.final-cta__title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 1rem; letter-spacing: -.02em; }
.final-cta__sub { font-size: 1.125rem; color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.75; }
.final-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Sticky mobile CTA --- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1); z-index: 100; display: none;
}

/* --- Floating Action Button --- */
.fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  background: var(--teal); color: white; padding: 1rem 1.25rem;
  border-radius: var(--r-full); display: flex; align-items: center;
  gap: .5rem; font-weight: 600; font-size: .875rem;
  box-shadow: var(--shadow-teal); cursor: pointer; transition: all var(--t);
}
.fab:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 35px rgba(124,58,237,.4); }
.fab svg { width: 18px; height: 18px; }

/* --- Page Hero (Unterseiten) --- */
.page-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 60%, var(--teal-dark) 100%);
  padding: 5rem 0; color: white; text-align: center;
}
.page-hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: white; margin-bottom: 1rem; }
.page-hero__sub { font-size: 1.125rem; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; line-height: 1.75; }

/* --- Legal Pages --- */
.legal-content { max-width: 800px; margin: 0 auto; padding: 4rem 0; }
.legal-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; }
.legal-content p { font-size: 1rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { font-size: 1rem; color: var(--gray-600); line-height: 1.75; margin-bottom: .375rem; }
.legal-content a { color: var(--teal); text-decoration: underline; }
.legal-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 1.5rem; margin: 1.5rem 0; }

/* --- Login --- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--gray-50), var(--white), var(--teal-50)); padding: 2rem; }
.login-card { background: var(--white); border-radius: var(--r-2xl); padding: 3rem; max-width: 440px; width: 100%; box-shadow: var(--shadow-xl); }
.login-card__logo { text-align: center; margin-bottom: 2rem; }
.login-card__title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: .375rem; }
.login-card__sub { font-size: .875rem; color: var(--gray-400); text-align: center; margin-bottom: 2rem; }
.login-card__form { display: flex; flex-direction: column; gap: 1rem; }
.login-card__forgot { text-align: right; font-size: .875rem; }
.login-card__forgot a { color: var(--teal); text-decoration: underline; }
.login-card__signup { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--gray-400); }
.login-card__signup a { color: var(--teal); text-decoration: underline; }

/* --- Scroll Animations --- */
.anim { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.anim.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }

/* --- Utilities --- */
.text-center { text-align: center; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-center { justify-content: center; }
.gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* --- Footer --- */
.footer { background: var(--gray-900); color: rgba(255,255,255,.75); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand-logo { display: flex; align-items: center; gap: .625rem; margin-bottom: 1rem; }
.footer__brand-name { font-size: 1.25rem; font-weight: 800; color: white; }
.footer__brand-name span { color: var(--teal-light); }
.footer__brand-text { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.75; max-width: 280px; margin-bottom: 1.5rem; }
.footer__col-title { font-size: .8125rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.25rem; }
.footer__links { display: flex; flex-direction: column; gap: .625rem; }
.footer__link { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--t-fast); }
.footer__link:hover { color: var(--teal-light); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8125rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 1rem;
}
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__legal a { color: rgba(255,255,255,.3); transition: color var(--t-fast); }
.footer__legal a:hover { color: rgba(255,255,255,.65); }
.footer__logo-mark {
  width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary-light), var(--teal));
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
}
.footer__logo-mark svg { width: 18px; height: 18px; color: white; }

/* --- Responsive --- */
@media (max-width:1024px) {
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card--featured { transform: none; order: -1; }
  .trial-banner { padding: 1.5rem; }
  .trial-banner__content { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .trial-banner__title { font-size: 1.125rem; }
  .overage-grid { flex-direction: column; align-items: center; }
  .forwarding-grid { grid-template-columns: 1fr; }
  .forwarding-modes { grid-template-columns: repeat(1, 1fr); }
  .impact-point { gap: 1.25rem; padding: 1.75rem 0; }
  .impact-point__marker { font-size: 2rem; width: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width:768px) {
  :root { }
  .section { padding: 3rem 0; }
  .section--lg { padding: 4.5rem 0; }
  .hero { padding: 3rem 0 4rem; }
  .ba-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 2rem 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .sticky-cta { display: block; }
  .fab { bottom: 5.5rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 360px; }
  .nav__actions .btn:not(.btn--primary) { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width:480px) {
  .section-title { font-size: 1.875rem; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .countdown-timer { gap: 1rem; }
  .cdu__num { font-size: 2.5rem; min-width: 56px; }
}

/* ================================================
   100-TAGE GARANTIE
   ================================================ */
.guarantee-section {
  background: linear-gradient(135deg, #0d2340 0%, #0a3d5c 45%, var(--teal-dark) 100%);
  padding: 5rem 0; position: relative; overflow: hidden;
}
.guarantee-section::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(20,184,166,.15) 0%, transparent 70%);
  pointer-events: none;
}
.guarantee-section__inner {
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.guarantee-section__seal-col {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem; flex-shrink: 0;
}
.guarantee-seal {
  width: 176px; height: 176px; border-radius: 50%;
  background: white; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative; flex-shrink: 0;
  box-shadow: 0 12px 48px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.12), 0 0 0 12px rgba(255,255,255,.06);
}
.guarantee-seal::after {
  content: ''; position: absolute; inset: -10px;
  border-radius: 50%; border: 2px dashed rgba(255,255,255,.3);
}
.guarantee-seal__days { font-size: 3.5rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.guarantee-seal__days-sub { font-size: .65rem; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: .14em; margin-top: -.1rem; }
.guarantee-seal__divider { width: 60%; height: 1px; background: var(--gray-200); margin: .4rem 0; }
.guarantee-seal__title { font-size: .6rem; font-weight: 900; color: var(--teal); text-transform: uppercase; letter-spacing: .12em; }
.guarantee-seal__sub { font-size: .6rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .1em; margin-top: .1rem; }
.guarantee-section__trust {
  display: flex; flex-direction: column; gap: .6rem; align-items: center;
}
.guarantee-section__trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: rgba(255,255,255,.7); font-weight: 500;
}
.guarantee-section__trust-item svg { width: 14px; height: 14px; color: var(--teal); flex-shrink: 0; }
.guarantee-section__body { flex: 1; min-width: 260px; }
.guarantee-section__label { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); margin-bottom: 1rem; }
.guarantee-section__title { font-size: clamp(1.75rem, 3.5vw, 2.625rem); font-weight: 900; color: white; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.guarantee-section__text { color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.85; margin-bottom: 1rem; }
.guarantee-section__condition { font-size: .875rem; color: rgba(255,255,255,.5); font-style: italic; margin-bottom: 2rem; line-height: 1.65; }
.guarantee-section__cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.guarantee-section__fine { font-size: .75rem; color: rgba(255,255,255,.35); }
@media (max-width: 768px) {
  .guarantee-section__inner { flex-direction: column; text-align: center; }
  .guarantee-section__body { text-align: left; }
  .guarantee-section__trust { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .guarantee-section__cta { justify-content: flex-start; }
}

/* Inline guarantee badge (in form / pricing) */
.guarantee-inline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(124,58,237,.04));
  border: 1px solid rgba(124,58,237,.25); border-radius: var(--r-full);
  padding: .4rem 1rem; font-size: .8125rem; font-weight: 600; color: var(--teal);
}
.guarantee-inline svg { width: 14px; height: 14px; flex-shrink: 0; }
/* Small seal for pricing cards */
.pricing-guarantee {
  display: flex; align-items: center; justify-content: center; gap: .625rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-100);
  font-size: .8125rem; color: var(--gray-500);
}
.pricing-guarantee__seal {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: .5rem; font-weight: 900; color: white; text-align: center; flex-shrink: 0;
  line-height: 1.1; padding: 4px;
}

/* ================================================
   COOKIE CONSENT BANNER
   ================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--gray-200);
  box-shadow: 0 -4px 40px rgba(0,0,0,.12);
  padding: 1.25rem 0;
  transform: translateY(110%); opacity: 0;
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s ease;
  pointer-events: none;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cookie-banner__left {
  display: flex; align-items: flex-start; gap: 1rem; flex: 1; min-width: 260px;
}
.cookie-banner__icon { font-size: 1.75rem; flex-shrink: 0; line-height: 1.2; }
.cookie-banner__title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .25rem; }
.cookie-banner__text { font-size: .8125rem; color: var(--gray-500); line-height: 1.6; margin: 0; }
.cookie-banner__text a { color: var(--teal); font-weight: 500; }
.cookie-banner__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner__settings-link {
  font-size: .8125rem; color: var(--gray-400); text-decoration: underline; white-space: nowrap; background: none; border: none; cursor: pointer; padding: 0;
}
.cookie-banner__settings-link:hover { color: var(--gray-700); }
@media (max-width: 640px) {
  .cookie-banner__inner { flex-direction: column; }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}

/* ================================================
   COOKIE SETTINGS PAGE
   ================================================ */
.cookie-status-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--r-xl); padding: 1rem 1.5rem; margin-bottom: 2rem;
}
.cookie-status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.cookie-status-dot--green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.cookie-status-dot--orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.cookie-category {
  background: var(--white); border-radius: var(--r-xl);
  border: 1px solid var(--gray-200); overflow: hidden; margin-bottom: 1rem;
  transition: border-color .2s;
}
.cookie-category:has(.cookie-toggle input:checked) { border-color: rgba(124,58,237,.3); }
.cookie-category__header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer;
}
.cookie-category__left { display: flex; align-items: flex-start; gap: 1rem; flex: 1; }
.cookie-category__icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.3; }
.cookie-category__name { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .2rem; }
.cookie-category__desc { font-size: .8125rem; color: var(--gray-500); line-height: 1.6; }
.cookie-category__badge {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .7rem; border-radius: var(--r-full); white-space: nowrap; flex-shrink: 0;
}
.cookie-category__badge--required { background: var(--teal-50); color: var(--teal); }
.cookie-category__badge--optional { background: var(--gray-100); color: var(--gray-500); }
.cookie-category__details {
  padding: 0 1.5rem 1.25rem; border-top: 1px solid var(--gray-100);
  display: none;
}
.cookie-category__details.open { display: block; }
.cookie-details-toggle {
  font-size: .8125rem; color: var(--teal); background: none; border: none;
  cursor: pointer; padding: .75rem 0 .25rem; font-weight: 600; display: flex; align-items: center; gap: .35rem;
}
.cookie-details-toggle:hover { text-decoration: underline; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .8125rem; margin-top: .75rem; }
.cookie-table th {
  text-align: left; font-weight: 600; color: var(--gray-500); padding: .5rem .75rem;
  background: var(--gray-50); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
}
.cookie-table td { padding: .625rem .75rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); vertical-align: top; line-height: 1.5; }
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table td:first-child { font-family: monospace; font-size: .8rem; color: var(--gray-800); white-space: nowrap; }
.cookie-toggle {
  position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle__track {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--gray-300); border-radius: var(--r-full);
  transition: background .25s ease;
}
.cookie-toggle__track::before {
  content: ''; position: absolute; width: 20px; height: 20px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%;
  transition: transform .25s ease; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + .cookie-toggle__track { background: var(--teal); }
.cookie-toggle input:checked + .cookie-toggle__track::before { transform: translateX(22px); }
.cookie-toggle input:disabled + .cookie-toggle__track { background: var(--teal); opacity: .55; cursor: not-allowed; }
.cookie-save-bar {
  position: sticky; bottom: 0; background: white; border-top: 1px solid var(--gray-200);
  padding: 1rem 0; margin-top: 2rem; box-shadow: 0 -4px 20px rgba(0,0,0,.08); z-index: 100;
}
.cookie-save-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.cookie-save-bar p { font-size: .8125rem; color: var(--gray-500); margin: 0; }
.cookie-save-bar__btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ================================================================
   ADMIN APP LAYER — Anacalling Backend (Kunde + ops)
   Nutzt die Design-Tokens oben (Inter, --primary/--teal/--gray-*,
   --r*, --shadow*). Stylt die Admin-eigenen Klassen; kommt NACH dem
   Website-CSS und überschreibt wo nötig (z. B. .btn, .form-row).
   ================================================================ */

/* --- Kompatibilitäts-Aliase: alte Admin-Tokens → neue Website-Palette.
   Die Templates referenzieren diese per inline-style (var(--text-dim) etc.);
   so bleiben sie ohne Template-Änderung gültig. --- */
:root {
  --text-dim: var(--gray-500);
  --panel:    var(--white);
  --border:   var(--gray-200);
  --danger:   var(--red);
}

/* --- App-Shell: Sidebar + Content --- */
html { overflow-x: hidden; }   /* Seite darf nie breiter als der Viewport werden (A4) */
.shell { display: flex; min-height: 100vh; background: var(--gray-50); max-width: 100%; }
.sidebar {
  width: 256px; flex-shrink: 0; align-self: stretch;
  background: var(--white); border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: .75rem; overflow-y: auto; flex: 1; }
.content { flex: 1; min-width: 0; padding: 2rem 2.5rem; max-width: 1280px; overflow-x: auto; }

/* --- Sidebar Brand --- */
.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem; font-size: 1.125rem; font-weight: 800;
  color: var(--primary); line-height: 1.2; border-bottom: 1px solid var(--gray-100);
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  text-decoration: none;
}
.sidebar-brand small { font-size: .7rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; }

/* --- Sidebar Nav-Links --- */
.sidebar nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .75rem; border-radius: var(--r);
  font-size: .9rem; font-weight: 500; color: var(--gray-600);
  white-space: nowrap; overflow: hidden;
  transition: background var(--t-fast), color var(--t-fast);
}
.sidebar nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.sidebar nav a.active { background: var(--teal-50); color: var(--teal-dark); font-weight: 600; }
/* Kategorie-Überschriften (Bereiche) im Menü. */
.sidebar .nav-area-label {
  display: block; padding: .95rem .75rem .3rem;
  font-size: .68rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; overflow: hidden;
}
.sidebar nav > .nav-area-label:first-child { padding-top: .25rem; }
.sidebar .nav-ico { flex-shrink: 0; }
.sidebar .nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sidebar .nav-group { margin: 2px 0; }
.sidebar .nav-group > summary {
  display: flex; align-items: center; gap: .7rem;
  list-style: none; cursor: pointer; padding: .55rem .75rem; border-radius: var(--r);
  font-size: .8rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .05em;
}
.sidebar .nav-group > summary::-webkit-details-marker { display: none; }
.sidebar .nav-group > summary:hover { color: var(--gray-600); }
.sidebar .nav-group a { padding-left: 1.25rem; }

/* --- Sidebar Collapse (Desktop; Mobile nutzt das Off-Canvas-Menü) --- */
.sidebar-collapse {
  display: flex; align-items: center; gap: .7rem;
  margin: .35rem .75rem; padding: .5rem .75rem; border-radius: var(--r);
  background: none; border: 1px solid var(--gray-200);
  color: var(--gray-500); font-size: .82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: background var(--t-fast), color var(--t-fast);
}
.sidebar-collapse:hover { background: var(--gray-100); color: var(--gray-800); }
.sidebar-collapse__ico { flex-shrink: 0; transition: transform var(--t-fast); }

@media (min-width: 1025px) {
  .sidebar { transition: width var(--t-fast); }
  body.sidebar-collapsed .sidebar { width: 66px; }
  body.sidebar-collapsed .sidebar .nav-label,
  body.sidebar-collapsed .sidebar .nav-area-label,
  body.sidebar-collapsed .sidebar-brand small,
  body.sidebar-collapsed .profile-meta { display: none; }
  body.sidebar-collapsed .sidebar nav a,
  body.sidebar-collapsed .sidebar .nav-group > summary,
  body.sidebar-collapsed .sidebar .nav-group a,
  body.sidebar-collapsed .sidebar-collapse {
    justify-content: center; gap: 0; padding-left: .5rem; padding-right: .5rem;
  }
  body.sidebar-collapsed .sidebar-brand { align-items: center; padding: 1rem .5rem; overflow: hidden; white-space: nowrap; }
  /* Eingeklappt: volles Logo aus, nur das Telefon-Icon in Menue-Icon-Groesse. */
  body.sidebar-collapsed .brand-logo--side { display: none; }
  body.sidebar-collapsed .brand-logo--icon { display: block; width: 18px; height: 18px; margin: 0; }
  body.sidebar-collapsed .profile-card { flex-direction: column; align-items: center; gap: .4rem; padding: .5rem 0; }
  body.sidebar-collapsed .sidebar-collapse__ico { transform: rotate(180deg); }
}

/* --- Sidebar Footer (Profil-Karte) --- */
.sidebar-foot { padding: .75rem; border-top: 1px solid var(--gray-100); }
.profile-card { display: flex; align-items: flex-start; gap: .625rem; padding: .5rem; border-radius: var(--r); }
.profile-avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.profile-meta { flex: 1; min-width: 0; }
.profile-name { font-size: .85rem; font-weight: 600; color: var(--gray-800); word-break: break-word; line-height: 1.3; }
.profile-email { font-size: .72rem; color: var(--gray-400); word-break: break-word; line-height: 1.3; }
.profile-role { font-size: .68rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; margin-top: .1rem; }
.profile-actions { display: flex; gap: .25rem; flex-shrink: 0; }
.profile-icon {
  width: 30px; height: 30px; border-radius: var(--r); color: var(--gray-400);
  display: flex; align-items: center; justify-content: center; transition: all var(--t-fast);
}
.profile-icon:hover { background: var(--gray-100); color: var(--gray-700); }

/* --- Page Head --- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.page-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); letter-spacing: -.01em; }
.page-head .meta, .meta { font-size: .8rem; color: var(--gray-400); }

/* --- KPI-Grid --- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.kpi {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow-xs);
}
.kpi-label { font-size: .75rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.kpi-value { font-size: 2rem; font-weight: 800; color: var(--gray-900); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .75rem; color: var(--gray-400); margin-top: .4rem; }

/* --- Card --- */
.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--shadow-xs); margin-bottom: 1.5rem;
}
.card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }

/* --- Tabellen --- */
.data, .meta-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data th, .data td, .meta-table th, .meta-table td {
  padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--gray-100); vertical-align: top;
}
.data th {
  font-size: .72rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .04em; background: var(--gray-50);
}
.data tbody tr:hover td { background: var(--gray-50); }
.data tbody tr:last-child td, .meta-table tr:last-child td, .meta-table tr:last-child th { border-bottom: none; }
.meta-table th { color: var(--gray-500); font-weight: 600; width: 180px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.code-block {
  background: var(--gray-900); color: var(--gray-100); border-radius: var(--r);
  padding: 1rem 1.25rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; line-height: 1.6; overflow-x: auto; white-space: pre;
}

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: var(--r-full); font-size: .72rem; font-weight: 700;
  background: var(--gray-100); color: var(--gray-600); white-space: nowrap;
}
.badge-ok   { background: var(--green-50);  color: var(--green-dark); }
.badge-warn { background: var(--orange-50); color: #b45309; }
.badge-err  { background: var(--red-50);    color: #b91c1c; }

/* --- Alerts --- */
.alert {
  padding: .85rem 1.1rem; border-radius: var(--r); font-size: .875rem; line-height: 1.5;
  background: var(--primary-50); color: var(--primary-dark); border: 1px solid var(--primary-100);
  margin-bottom: 1.25rem;
}
.alert-error { background: var(--red-50);    color: #b91c1c; border-color: rgba(239,68,68,.25); }
.alert-warn  { background: var(--orange-50); color: #b45309; border-color: rgba(245,158,11,.3); }

/* --- Buttons (Admin überschreibt das Website-Pill-.btn) --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.05rem; font-size: .875rem; font-weight: 600; line-height: 1;
  border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  background: var(--teal); color: #fff; box-shadow: none; transition: all var(--t-fast); white-space: nowrap;
}
.btn:hover { background: var(--teal-dark); transform: none; box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: var(--white); color: var(--gray-700); border-color: var(--gray-200); }
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--gray-900); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warn { background: var(--orange); color: #fff; }
.btn-warn:hover { background: #d97706; }
.btn-sm { padding: .4rem .75rem; font-size: .8rem; }
.btn svg { width: 16px; height: 16px; }

/* --- Formulare --- */
.content form .form-row,
.login-box .form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; grid-template-columns: none; }
.content label, .login-box label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.content input[type="text"], .content input[type="email"], .content input[type="password"],
.content input[type="number"], .content input[type="tel"], .content input[type="url"],
.content input[type="search"], .content input[type="datetime-local"],
.content select, .content textarea,
.login-box input, .login-box select, .login-box textarea {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--gray-300); border-radius: var(--r);
  font-size: .9rem; color: var(--gray-800); background: var(--white); outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.content input:focus, .content select:focus, .content textarea:focus,
.login-box input:focus, .login-box select:focus, .login-box textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
/* Native <select> als Dropdown erkennbar machen: durch `appearance:none` (oben)
   fehlte der native Pfeil -> die Felder sahen aus wie normale Eingabefelder.
   Daher Chevron-Icon rechts + Klick-Cursor. */
.content select,
.login-box select,
.form-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 12px 8px;
  padding-right: 2.4rem;
  cursor: pointer;
}
.content select[multiple],
.login-box select[multiple],
.form-select[multiple] {
  background-image: none;
  padding-right: .8rem;
}
.content fieldset { border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.content fieldset legend { font-size: .8rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; padding: 0 .5rem; }
.content small { color: var(--gray-400); font-size: .78rem; line-height: 1.5; }

/* --- Info-Tooltip (A10): (i)-Icon mit Hover/Focus-Bubble --- */
.tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: .35rem; }
.tip__btn {
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0;
  background: var(--gray-200); color: var(--gray-600);
  font: italic 700 11px/17px Georgia, "Times New Roman", serif; text-align: center;
  padding: 0; cursor: help; transition: background var(--t-fast), color var(--t-fast);
}
.tip__btn:hover, .tip__btn:focus-visible { background: var(--teal); color: #fff; outline: none; }
.tip__bubble {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 50;
  width: max-content; max-width: 280px; padding: .5rem .7rem;
  background: var(--gray-900); color: #fff;
  font: 400 .75rem/1.5 var(--font); text-transform: none; letter-spacing: 0;
  border-radius: var(--r); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-2px);
  transition: opacity .15s ease, transform .15s ease; pointer-events: none;
}
.tip__btn:hover + .tip__bubble,
.tip__btn:focus + .tip__bubble { opacity: 1; visibility: visible; transform: translateY(0); }
/* Bubble am rechten Rand nicht abschneiden */
@media (max-width: 540px) { .tip__bubble { max-width: 220px; } }

/* --- Login --- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--gray-50), var(--white), var(--teal-50)); padding: 2rem;
}
.login-box {
  background: var(--white); border-radius: var(--r-2xl); box-shadow: var(--shadow-xl);
  padding: 2.5rem; max-width: 400px; width: 100%;
}
.login-box h1 { font-size: 1.375rem; font-weight: 800; color: var(--primary); text-align: center; }
.login-box .subtitle { font-size: .85rem; color: var(--gray-400); text-align: center; margin: .25rem 0 1.75rem; }
.login-box .btn { width: 100%; }

/* --- Dev-Mode-Badge (B6): sticky Tab oben-mitte, wenn cfg['dev_mode']=true --- */
.dev-badge {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 9000;
  background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .25rem 1rem; border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-md);
  pointer-events: none;   /* reiner Indikator — fängt nie Klicks ab */
}

/* --- Mobile Topbar + Burger (nur < 768px sichtbar) --- */
.topbar { display: none; }
.topbar__burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 9px; border-radius: var(--r); background: none; flex-shrink: 0;
}
.topbar__burger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }
.topbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.topbar__brand { display: flex; flex: 1 1 auto; flex-direction: row; align-items: center; gap: .5rem; text-decoration: none; min-width: 0; overflow: hidden; }
.topbar__brand .brand-logo { max-height: 26px; width: auto; display: block; flex-shrink: 0; }
.topbar__brand small { font-size: .68rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-left: .5rem; border-left: 1px solid var(--gray-200); }
@media (max-width: 380px) { .topbar__brand small { display: none; } }
.topbar__brand-name { font-size: 1rem; font-weight: 800; color: var(--primary); }
.sidebar-overlay { display: none; }
.sidebar-close {
  display: none; position: absolute; top: .6rem; right: .6rem;
  width: 36px; height: 36px; border-radius: var(--r);
  font-size: 1.6rem; line-height: 1; color: var(--gray-400); background: none;
  align-items: center; justify-content: center;
}
.sidebar-close:hover { background: var(--gray-100); color: var(--gray-700); }

/* --- Admin Responsive: Off-Canvas-Drawer <= 1024px (A4) --- */
/* State-Schalter: body.nav-open (eine Quelle für Drawer + Overlay + Scroll-Lock).
   Breakpoint 1024px wie die Website — sonst klemmt die feste Sidebar bei
   Tablet-/schmalen Fensterbreiten den Content ab. */
@media (max-width: 1024px) {
  .topbar {
    display: flex; align-items: center; gap: .75rem;
    position: sticky; top: 0; z-index: 998; height: 56px; padding: 0 1rem;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
  }
  .sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; width: 264px;
    transform: translateX(-100%); transition: transform .25s ease;
    z-index: 1000; box-shadow: var(--shadow-lg); border-right: 1px solid var(--gray-200);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-collapse { display: none; }   /* Collapse nur im Desktop-Modus */
  .sidebar-overlay {
    display: block; position: fixed; inset: 0; z-index: 999;
    background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  body.nav-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .content { padding: 1.5rem 1.25rem; max-width: none; }
}

/* --- White-Label (A14): Logo-Slot + Brand-Footer --- */
/* Logo statt Text-Brand. Höhe begrenzt, Breite proportional — funktioniert
   für breite Wortmarken wie für quadratische Logos. */
.brand-logo {
  display: inline-block; max-height: 28px; width: auto; vertical-align: middle;
}
.brand-logo--side {
  display: block; max-height: 44px; max-width: 100%; margin-bottom: .35rem;
}
/* Icon-only-Variante: nur sichtbar, wenn die Sidebar eingeklappt ist. */
.brand-logo--icon { display: none; }
.app-footer {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--gray-200);
  display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center;
  font-size: .8rem; color: var(--gray-500);
}
.app-footer__powered { color: var(--gray-400); }
.app-footer__powered::before {
  content: "·"; margin-right: .9rem; color: var(--gray-300);
}

/* --- Voice-Gating / Upsell (Phase 3) --- */
.lock-badge {
  background: #fef3c7; color: #b45309; border: 1px solid #fde68a;
  font-size: .7rem; padding: .1rem .4rem;
}
.voice-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.voice-option {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--r);
}
.voice-option:hover { border-color: var(--gray-300); }
.voice-option.locked { opacity: .8; background: var(--gray-100); }
.voice-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.voice-sample { width: 100%; height: 32px; }

/* --- Confirm-Modal (destruktive Aktionen): immer Pflicht-Abfrage; beim
   Löschen zusätzlich Tippeingabe des Keywords. Gesteuert per data-confirm /
   data-confirm-danger auf dem jeweiligen <form> (JS im _layout). --- */
.cm-overlay {
  position: fixed; inset: 0; z-index: 10050; display: none;
  align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.cm-overlay.is-open { display: flex; }
.cm-box {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); width: 100%; max-width: 440px; padding: 1.5rem;
  animation: cm-pop .14s ease-out;
}
@keyframes cm-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.cm-title { font-size: 1.125rem; font-weight: 800; color: var(--gray-900); margin: 0 0 .5rem; }
.cm-msg { font-size: .9rem; line-height: 1.55; color: var(--gray-600); margin: 0 0 1.1rem; }
.cm-keyword { margin: 0 0 1.1rem; }
.cm-keyword label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.cm-keyword strong { color: var(--red); letter-spacing: .06em; font-weight: 800; }
.cm-keyword input {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--gray-300); border-radius: var(--r);
  font-size: .95rem; letter-spacing: .04em; color: var(--gray-900); background: var(--white); outline: none;
}
.cm-keyword input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.14); }
.cm-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.cm-box .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.cm-box .btn-danger:disabled:hover { background: var(--red); }

/* =====================================================================
   UI-Tools (oben rechts): Theme-Toggle (Sonne/Mond) + Sprach-Switch (DE/EN).
   Liegt im Desktop in .content-topbar (rechtsbündig, sticky) und im Mobile
   in der .topbar (rechts via margin-left:auto).
   ===================================================================== */
.content-topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: .5rem;
  margin: -0.5rem 0 1.25rem;
}
@media (max-width: 1024px) { .content-topbar { display: none; } }  /* Mobile nutzt die .topbar */
.topbar .ui-tools { margin-left: auto; }

.ui-tools { display: flex; align-items: center; gap: .5rem; }
.ui-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r);
  background: none; border: 1px solid var(--gray-200); color: var(--gray-600);
  cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.ui-tool:hover { background: var(--gray-100); color: var(--gray-900); border-color: var(--gray-300); }
.ui-tool svg { width: 18px; height: 18px; }

.ui-lang { display: inline-flex; border: 1px solid var(--gray-200); border-radius: var(--r); overflow: hidden; }
.ui-lang__opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: var(--gray-500); background: none; transition: background var(--t-fast), color var(--t-fast);
}
.ui-lang__opt + .ui-lang__opt { border-left: 1px solid var(--gray-200); }
.ui-lang__opt:hover { background: var(--gray-100); color: var(--gray-900); }
.ui-lang__opt.is-active { background: var(--teal); color: #fff; }

/* =====================================================================
   DARK MODE — greift nur bei <html data-theme="dark"> (eingeloggte Backends).
   Ansatz: die durchgängig genutzte Graustufen-/White-Palette wird invertiert
   (Slate-basiert), plus gezielte Korrekturen für Stellen mit hellen Tints
   oder hartkodierten Farben. Light bleibt der :root-Default.
   ===================================================================== */
[data-theme="dark"] {
  --white:    #1b2433;   /* Flächen: Cards, Sidebar, Topbar, Inputs */
  --gray-50:  #0e1622;   /* App-Hintergrund (am dunkelsten) */
  --gray-100: #243044;   /* Hover-Flächen / dezente Füllung */
  --gray-200: #334155;   /* Rahmen */
  --gray-300: #41506a;   /* stärkere Rahmen / Input-Border */
  --gray-400: #8a98ad;   /* gedämpfter Text */
  --gray-500: #a7b4c8;   /* Sekundärtext */
  --gray-600: #c4cedd;   /* Nav-Link-Text */
  --gray-700: #d8e0ea;   /* Labels */
  --gray-800: #e8edf4;   /* Fließtext */
  --gray-900: #f3f6fa;   /* Überschriften */

  --primary-50:  #16263a;
  --primary-100: #1d3350;
  --teal-50:     #0e2e2c;
  --green-50:    #0f2a22;
  --orange-50:   #2e2410;
  --red-50:      #2e1717;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.45);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.5), 0 2px 4px -1px rgba(0,0,0,.4);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.55), 0 4px 6px -2px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.6);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.7);
}
[data-theme="dark"] body { background: var(--gray-50); }

/* Aktiver Nav-Link: helleres Teal für Kontrast auf dunklem Tint. */
[data-theme="dark"] .sidebar nav a.active { color: var(--teal-light); }
[data-theme="dark"] .profile-role { color: var(--teal-light); }

/* Badges/Alerts: Text auf dunklen Tints aufhellen. */
[data-theme="dark"] .badge-ok,
[data-theme="dark"] .alert { color: #e8edf4; }
[data-theme="dark"] .badge-ok   { color: #34d399; }
[data-theme="dark"] .badge-warn,
[data-theme="dark"] .alert-warn  { color: #fbbf24; }
[data-theme="dark"] .badge-err,
[data-theme="dark"] .alert-error { color: #f87171; }

/* Tooltip-Bubble nutzt im Light --gray-900 (dunkel); im Dark würde sie hell.
   Daher fest dunkel halten. */
[data-theme="dark"] .tip__bubble { background: #0b1220; color: #f3f6fa; }

/* Select-Chevron heller einfärben, damit er auf dunklem Feld sichtbar bleibt. */
[data-theme="dark"] .content select,
[data-theme="dark"] .login-box select,
[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23a7b4c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
}

/* Ghost-Button: heller Rahmen/Text. */
[data-theme="dark"] .btn-ghost { background: var(--white); color: var(--gray-800); border-color: var(--gray-300); }

/* Stats-Chart (stats.php): Hintergrund/Border theme-abhängig statt fix weiß. */
.stats-chart { background: #fafbfc; border: 1px solid var(--gray-200); border-radius: var(--r); }
[data-theme="dark"] .stats-chart { background: #0e1622; }

/* Logo im Dark-Mode: NUR das Standard-EvaWriting-Logo gegen die helle Variante
   tauschen (Tenant-White-Label-Logos bleiben unangetastet). */
[data-theme="dark"] .brand-logo[src$="evawriting-logo.svg"] { content: url('/evawriting-logo-dark.svg'); }

/* =====================================================================
   Support-/Impersonation-Banner (super_admin sieht als Kunde).
   Dezent-hochwertig in Amber, theme-fähig, statt grellem Vollton-Balken.
   ===================================================================== */
.imp-banner {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin: 0 0 1.5rem;
  padding: .7rem .85rem;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-left: 3px solid var(--orange);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  color: #9a3412;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.imp-banner__main { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.imp-banner__icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff;
  box-shadow: 0 2px 8px rgba(245,158,11,.35);
}
.imp-banner__icon svg { width: 17px; height: 17px; }
.imp-banner__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.imp-banner__label { font-weight: 700; font-size: .9rem; }
.imp-banner__sub { font-size: .76rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-banner__form { margin: 0; flex-shrink: 0; }
.imp-banner__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: var(--r);
  background: #fff; color: #9a3412; border: 1px solid #fdba74;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.imp-banner__btn svg { width: 15px; height: 15px; }
.imp-banner__btn:hover { background: #fff7ed; border-color: var(--orange); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

[data-theme="dark"] .imp-banner {
  background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(245,158,11,.06));
  border-color: rgba(245,158,11,.35);
  border-left-color: var(--orange);
  color: #fcd9a8;
}
[data-theme="dark"] .imp-banner__btn {
  background: rgba(255,255,255,.05); color: #fde3c0; border-color: rgba(245,158,11,.4);
}
[data-theme="dark"] .imp-banner__btn:hover { background: rgba(245,158,11,.18); border-color: var(--orange); }

/* =====================================================================
   Tab-Leiste (z. B. Protokolle-Hub). Unterstreichungs-Tabs, theme-fähig.
   ===================================================================== */
.logtabs {
  display: flex; gap: .15rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-200); margin-bottom: 1.5rem;
}
.logtab {
  padding: .6rem .95rem; font-size: .875rem; font-weight: 600;
  color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -1px;
  border-radius: var(--r) var(--r) 0 0;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.logtab:hover { color: var(--gray-900); background: var(--gray-50); }
.logtab.is-active { color: var(--teal-dark); border-bottom-color: var(--teal); }
[data-theme="dark"] .logtab.is-active { color: var(--teal-light); }

/* =====================================================================
   „Demnächst" / Coming-soon — linksbündig (wie alle Unterseiten),
   Feature-Karten + hervorgehobener Release-Countdown.
   ===================================================================== */
.fs-wrap { max-width: 920px; margin: 0; }
.fs-wrap--standalone { padding: 48px 24px 60px; }
.fs-logo { height: 30px; width: auto; display: block; margin-bottom: 24px; }
.fs-title { font-size: 28px; margin: 0 0 4px; color: var(--gray-900); }
.fs-sub { color: var(--gray-500); font-size: 15px; margin: 0 0 24px; }
.fs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fs-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
}
.fs-card .ic { font-size: 26px; line-height: 1; }
.fs-card h3 { margin: 10px 0 4px; font-size: 16px; color: var(--gray-900); }
.fs-card p { margin: 0; font-size: 14px; color: var(--gray-600); line-height: 1.55; }
.fs-foot { margin-top: 28px; font-size: 14px; }
.fs-foot a { color: var(--teal-dark); text-decoration: none; }
.fs-foot a:hover { text-decoration: underline; }
@media (max-width: 640px) { .fs-grid { grid-template-columns: 1fr; } }

.fs-count {
  margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: var(--teal-50); border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--r); padding: 8px 10px;
}
.fs-count__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-dark); font-weight: 700; margin-right: 2px; }
.fs-count__seg { display: inline-flex; align-items: baseline; gap: 2px; font-size: 12px; color: var(--gray-600); font-variant-numeric: tabular-nums; }
.fs-count__seg b { font-size: 16px; color: var(--teal-dark); font-weight: 800; }
.fs-count.is-live { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); }
.fs-count__live { font-size: 13px; font-weight: 800; color: var(--green-dark); display: inline-flex; align-items: center; gap: 6px; }
[data-theme="dark"] .fs-count__seg b,
[data-theme="dark"] .fs-count__label { color: var(--teal-light); }
[data-theme="dark"] .fs-count__live { color: #34d399; }

/* Emoji-Picker (Verwaltung) */
.emoji-field { position: relative; display: inline-block; }
.emoji-trigger {
  width: 54px; height: 54px; border: 1px solid var(--gray-300); border-radius: var(--r);
  background: var(--white); font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color var(--t-fast);
}
.emoji-trigger:hover { border-color: var(--teal); }
.emoji-panel {
  position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0;
  width: 320px; max-height: 320px; overflow: auto;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 10px;
}
.emoji-panel__search { width: 100%; margin-bottom: 8px; }
.emoji-panel__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-panel__cat { grid-column: 1 / -1; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); font-weight: 700; margin: 8px 2px 4px; }
.emoji-panel__item { font-size: 20px; line-height: 1; padding: 5px 0; border: none; background: none; border-radius: 6px; cursor: pointer; }
.emoji-panel__item:hover { background: var(--gray-100); }
.emoji-panel__none { grid-column: 1 / -1; color: var(--gray-400); padding: 10px; text-align: center; }

/* =====================================================================
   Mail-Log: Filterleiste, Pagination, Detail-Modal.
   ===================================================================== */
.log-filter { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.log-filter__search { flex: 1; min-width: 220px; max-width: 420px; }
.log-filter__count { font-size: 12px; color: var(--gray-400); margin-left: auto; white-space: nowrap; }
.log-pager { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; margin-top: 1rem; }

/* Länderflagge vor einer IP (Audit-Log). */
.ipflag { display: inline-block; width: 16px; height: 12px; object-fit: cover; border-radius: 2px; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0,0,0,.10); }

#ml-table tr.ml-row { cursor: pointer; }
#ml-table tr.ml-row:hover { background: var(--gray-50); }
#ml-table tr.ml-row.is-archived { opacity: .55; }

.lm-overlay {
  position: fixed; inset: 0; z-index: 10060; display: none;
  align-items: flex-start; justify-content: center; padding: 5vh 1rem;
  background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); overflow: auto;
}
.lm-overlay.is-open { display: flex; }
.lm-box {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); width: 100%; max-width: 800px; padding: 1.25rem 1.4rem 1.5rem;
  animation: cm-pop .14s ease-out;
}
.lm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.lm-subject { margin: .35rem 0 0; font-size: 1.05rem; font-weight: 700; color: var(--gray-900); word-break: break-word; }
.lm-head__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.lm-close { font-size: 1.6rem; line-height: 1; color: var(--gray-400); background: none; width: 34px; height: 34px; border-radius: var(--r); }
.lm-close:hover { background: var(--gray-100); color: var(--gray-700); }
.lm-error {
  background: var(--red-50); color: #b91c1c; border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--r); padding: .6rem .8rem; font-size: .82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 1rem; white-space: pre-wrap; word-break: break-word;
}
[data-theme="dark"] .lm-error { color: #f87171; }
.lm-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem 1.25rem; margin-bottom: 1rem; }
.lm-meta > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lm-meta__k { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-400); font-weight: 700; }
.lm-meta__v { font-size: 13px; color: var(--gray-800); word-break: break-word; }
.lm-tabs { display: flex; gap: .15rem; border-bottom: 1px solid var(--gray-200); margin-bottom: .75rem; }
.lm-tab { padding: .5rem .85rem; font-size: .82rem; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; cursor: pointer; }
.lm-tab:hover { color: var(--gray-900); }
.lm-tab.is-active { color: var(--teal-dark); border-bottom-color: var(--teal); }
[data-theme="dark"] .lm-tab.is-active { color: var(--teal-light); }
.lm-iframe { width: 100%; height: 420px; border: 1px solid var(--gray-200); border-radius: var(--r); background: #fff; }
.lm-pane.code-block { max-height: 420px; overflow: auto; margin: 0; }
.lm-empty { color: var(--gray-400); font-size: .85rem; }
@media (max-width: 640px) { .lm-meta { grid-template-columns: 1fr; } }

/* Drag&Drop-Sortierung (Feature-Verwaltung) */
.fa-handle-cell { text-align: center; }
.fa-handle { cursor: grab; color: var(--gray-400); font-size: 16px; line-height: 1; user-select: none; letter-spacing: -2px; }
.fa-handle:active { cursor: grabbing; }
#fa-table tr[draggable="true"]:hover .fa-handle { color: var(--gray-600); }
#fa-table tr.fa-dragging { opacity: .5; background: var(--teal-50); }
#fa-table tbody.fa-saving { opacity: .7; transition: opacity var(--t-fast); }
[data-theme="dark"] #fa-table tr.fa-dragging { background: rgba(124,58,237,.15); }

/* Dashboard-Begruessung (loest die doppelte Support-Meldung ab). */
.dash-greeting { margin: -6px 0 18px; font-size: 15px; color: var(--gray-600); }
