/* ==========================================================================
   DESIGN TOKENS & VARIABLES (Friendly Green Palette & Typography)
   ========================================================================== */
:root {
  --color-emerald-50: #f0fdf4;
  --color-emerald-100: #dcfce7;
  --color-emerald-200: #bbf7d0;
  --color-emerald-600: #056645;
  --color-emerald-700: #056041;
  --color-emerald-800: #045d40;
  --color-emerald-900: #064e3b;
  --color-emerald-950: #022c22;

  --color-amber-500: #d97706;
  --color-amber-600: #b45309;

  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  --color-white: #ffffff;
  --color-danger: #9f1239;
  --bg-danger-light: #ffe4e6;

  --font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: rgba(240, 253, 244, 0.4);
  color: var(--color-slate-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-emerald-700);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  z-index: 100;
  transition: top 0.2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 4px solid var(--color-amber-500);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast AAA Mode Overrides */
.high-contrast {
  background-color: #000000 !important;
  color: #ffff00 !important;
}

.high-contrast a,
.high-contrast button,
.high-contrast input,
.high-contrast select,
.high-contrast textarea {
  color: #ffff00 !important;
  background-color: #000000 !important;
  border-color: #ffff00 !important;
}

.high-contrast section,
.high-contrast div,
.high-contrast header,
.high-contrast footer,
.high-contrast card {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

/* Focus Visible (WCAG AAA) */
*:focus-visible {
  outline: 4px solid var(--color-emerald-700) !important;
  outline-offset: 3px !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--color-emerald-900);
  color: var(--color-emerald-100);
  font-size: 0.75rem;
  padding: 0.5rem 0;
}

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

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.font-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.control-label {
  color: var(--color-emerald-200);
  margin-right: 0.25rem;
}

.btn-toggle {
  background: var(--color-emerald-800);
  color: var(--color-emerald-100);
  border: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-toggle:hover {
  background: var(--color-emerald-700);
}

.btn-contrast {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-emerald-800);
  color: #fde047;
  border: 1px solid var(--color-emerald-600);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-emerald-100);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-emerald-600), #0f766e);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-emerald-950);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--color-emerald-600);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-700);
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-emerald-900);
  background-color: var(--color-emerald-50);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  background: var(--color-emerald-50);
  color: var(--color-emerald-900);
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-emerald-100);
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-xl);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate-800);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.mobile-nav-link:hover {
  background: var(--color-emerald-50);
  color: var(--color-emerald-900);
}

.mobile-cta-wrapper {
  padding-top: 0.5rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-emerald-700);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-emerald-950);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-emerald-900);
  border: 1px solid var(--color-emerald-200);
}

.btn-secondary:hover {
  background-color: var(--color-emerald-50);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-md {
  width: 24px;
  height: 24px;
}

/* HERO SECTION (50/50 Desktop Grid Split) */
.hero-section {
  position: relative;
  background: linear-gradient(to bottom, #ffffff, rgba(240, 253, 244, 0.5));
  border-bottom: 1px solid var(--color-emerald-100);
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 5rem 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Hero Left: Image (50%) */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-emerald-100);
}

@media (min-width: 640px) {
  .hero-image-wrapper {
    height: 400px;
  }
}
@media (min-width: 1024px) {
  .hero-image-wrapper {
    height: 540px;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.04);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 44, 34, 0.85),
    rgba(2, 44, 34, 0.2),
    transparent
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.badge-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  width: max-content;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-emerald-950);
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald-600);
}

.hero-image-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
}

.hero-image-sub {
  font-size: 0.875rem;
  color: var(--color-emerald-100);
  margin-top: 0.25rem;
}

/* Hero Right: Content & SVG (50%) */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--color-emerald-100);
  border: 1px solid var(--color-emerald-200);
  color: var(--color-emerald-900);
  font-size: 0.75rem;
  font-weight: 700;
  width: max-content;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-emerald-950);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-emerald-700), #0d9488);

  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

.svg-card {
  background: var(--color-white);
  border: 1px solid var(--color-emerald-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.svg-graphic {
  width: 100%;
  height: 140px;
}

.pulse-node {
  animation: pulse 2s infinite;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

/* SECTION STYLING */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-emerald-100);
}

.section-white {
  background-color: var(--color-white);
}
.section-light {
  background-color: rgba(240, 253, 244, 0.5);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-emerald-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.25;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  color: var(--color-slate-600);
  margin-top: 1rem;
  font-size: 1rem;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(240, 253, 244, 0.4);
  border: 1px solid var(--color-emerald-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.card:hover {
  background: var(--color-white);
  border-color: var(--color-emerald-200);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-emerald {
  background: var(--color-emerald-100);
  color: var(--color-emerald-800);
}
.icon-teal {
  background: #ccfbf1;
  color: #0f766e;
}
.icon-amber {
  background: #fef3c7;
  color: #92400e;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-emerald-100);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.footer-emerald {
  color: var(--color-emerald-800);
}
.footer-teal {
  color: #0f766e;
}
.footer-amber {
  color: #92400e;
}

/* CALCULATOR TOOL */
.calculator-box {
  background: var(--color-white);
  border: 1px solid var(--color-emerald-100);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .calculator-box {
    padding: 3rem;
  }
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 0.5rem;
}

.range-slider {
  width: 100%;
  height: 10px;
  background: var(--color-emerald-100);
  border-radius: 5px;
  outline: none;
  accent-color: var(--color-emerald-700);
  cursor: pointer;
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-slate-600);
  margin-top: 0.25rem;
  font-weight: 600;
}

.range-current {
  color: var(--color-emerald-800);
  font-weight: 800;
}

.calculator-results {
  background: linear-gradient(
    135deg,
    var(--color-emerald-900),
    var(--color-emerald-950)
  );
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.result-item {
  display: flex;
  flex-direction: column;
}
.border-top {
  border-top: 1px solid rgba(6, 95, 70, 0.8);
  padding-top: 1rem;
}

.result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-emerald-200);
  font-weight: 600;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.text-emerald {
  color: var(--color-emerald-200);
}
.text-amber {
  color: #fde047;
}
.text-amber-lg {
  color: #fbbf24;
  font-size: 2.25rem;
  font-weight: 900;
}

/* STEPS / PROCESS */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.step-card {
  background: rgba(240, 253, 244, 0.4);
  border: 1px solid var(--color-emerald-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.bg-emerald-solid {
  background: var(--color-emerald-700);
  color: var(--color-white);
}
.bg-emerald-outline {
  background: var(--color-white);
  color: var(--color-emerald-800);
  border: 2px solid var(--color-emerald-700);
}
.bg-emerald-accent {
  background: var(--color-emerald-600);
  color: var(--color-white);
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.875rem;
  color: var(--color-slate-600);
}

.step-footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-emerald-800);
  font-weight: 700;
}

.escrow-badges {
  margin-top: 3rem;
  background: var(--color-white);
  border: 1px solid var(--color-emerald-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.escrow-title {
  font-weight: 700;
  color: var(--color-slate-800);
}

.badge-partner {
  background: var(--color-emerald-50);
  color: var(--color-emerald-900);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* FORM & CONTACT */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-emerald-100);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .form-card {
    padding: 3rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.required-star {
  color: var(--color-amber-600);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-emerald-700);
}

.checkbox-label {
  font-size: 0.75rem;
  color: var(--color-slate-600);
}

.text-link {
  color: var(--color-emerald-800);
  font-weight: 700;
}

.feedback-banner {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.feedback-banner.success {
  background: var(--color-emerald-100);
  border: 1px solid var(--color-emerald-200);
  color: var(--color-emerald-950);
}

.feedback-banner.error {
  background: var(--bg-danger-light);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

/* LEGAL & IMPRESSUM */
.legal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 1.5rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-600);
}

.legal-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 0.25rem;
}

/* FOOTER */
.site-footer {
  background: var(--color-emerald-950);
  color: var(--color-emerald-200);
  padding: 2.5rem 0;
  font-size: 0.75rem;
  border-top: 1px solid var(--color-emerald-900);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
  }
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.footer-nav a {
  color: var(--color-emerald-200);
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.hidden {
  display: none !important;
}
.scroll-mt {
  scroll-margin-top: 5rem;
}
/* ==========================================================================
   ACCESSIBLE FORM FIELDS (Silktide & WCAG Compliant)
   ========================================================================== */
.form-input,
.form-select,
.range-slider,
.form-textarea {
  width: 100%;
  background-color: #f8fafc !important; /* Solider, heller Hintergrund */
  border: 2px solid #000 !important; /* Deutlicher, kontrastreicher Rahmen */
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--color-slate-900);
  font-family: inherit;
  transition: var(--transition);
}

/* Hover-Zustand zur besseren Erkennbarkeit */
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #047857 !important;
}

/* Aktiver Fokus-Zustand (Barrierefrei mit hohem Kontrast) */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: var(--color-white) !important;
  border-color: #047857 !important;
  outline: 4px solid var(--color-emerald-700) !important;
  outline-offset: 2px !important;
}
/* ==========================================================================
   SCROLL TO TOP BUTTON (Accessible & Performant)
   ========================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0478577d;
  color: var(--color-white);
  border: 2px solid var(--color-emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.2s ease;
}

/* Sichtbar-Zustand, wenn per JS aktiviert */
.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background-color: var(--color-emerald-800);
  border-color: var(--color-emerald-700);
  transform: translateY(-2px);
}

/* Fokus-Ring für Barrierefreiheit */
.scroll-to-top-btn:focus-visible {
  outline: 4px solid var(--color-amber-500) !important;
  outline-offset: 3px !important;
}

/* Reduzierte Animationen bei System-Einstellung */
@media (prefers-reduced-motion: reduce) {
  .scroll-to-top-btn {
    transition: none !important;
  }
}
.width {
  width: 100%;
}
/* Klasse für Felder, die über die volle Breite gehen sollen */
.form-row-full {
  grid-template-columns: 1fr !important;
}

.form-group-full {
  width: 100%;
}
/* --- Screenreader-Klasse für Barrierefreiheit --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  border: 2px solid #555555 !important; /* Ein kräftiger Rand sorgt für klare Abgrenzung */
  border-radius: 4px;
  padding: 8px;
}
input:focus,
select,
textarea {
  outline: none;
  border-color: #022c22 !important; /* Eine kräftige Akzentfarbe */
  box-shadow: 0 0 0 3px rgba(0, 204, 105, 0.3) !important; /* Zusätzlicher Fokus-Ring */
}
input[type="checkbox"] {
  width: 40px;
  height: 40px;
  cursor: pointer;
  vertical-align: middle;
  accent-color: #022c22;
}
/* ==========================================================================
   MODAL POPUP STYLING (Accessible & Modern)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 44, 34, 0.75);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-emerald-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not(.hidden) .modal-card {
  transform: scale(1);
}

.modal-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-emerald-100);
  color: var(--color-emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
}

.modal-text {
  font-size: 1rem;
  color: var(--color-slate-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  flex-direction: column;
}

.icon-lg {
  width: 32px;
  height: 32px;
}
