:root {
  --bg-dark: #050816;
  --bg-darker: #03040a;
  --accent: #ff6b3d;
  --accent-soft: rgba(255, 107, 61, 0.12);
  --accent-2: #4f46e5;
  --text-light: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2933;
  --card-bg: #0b1020;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.55);
  --transition-fast: 180ms ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Ruhiger, gleichmäßiger Seitenhintergrund ohne „Fleck“ links */
  background-color: #020617;
  background-image: linear-gradient(to bottom, #020617 0%, #000 55%, #020617 100%);

  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;

  /* Body als Flex-Container: Header oben, Main in der Mitte, Footer unten */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 0.3rem;

  /* Main füllt den Platz zwischen Header und Footer */
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Navigation ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 10, 0.95),
    rgba(3, 4, 10, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(31, 41, 55, 0.5);
}

.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-logo img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 14px; /* optional: passt zur bisherigen Optik */
  box-shadow: 0 0 30px rgba(248, 113, 113, 0.25); /* optional */
}

.brand-text-title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-links a:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-light);
  transform: translateY(-1px);
}

.nav-cta {
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.6);
  background: radial-gradient(
    circle at top left,
    rgba(248, 113, 113, 0.15),
    rgba(0, 0, 0, 0.4)
  );
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: #fed7aa;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 25px rgba(248, 113, 113, 0.5);
  background: radial-gradient(
    circle at top left,
    rgba(248, 113, 113, 0.25),
    rgba(0, 0, 0, 0.6)
  );
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 1.4rem;
  cursor: pointer;
}

.nav-links-mobile {
  display: none;
}

/* ---------- Generische Hero (Kontakt / andere Seiten) ---------- */

.hero {
  padding: 2.8rem 0 1.7rem;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.hero-title {
  font-size: clamp(2rem, 2.3vw + 1.2rem, 2.6rem);
  margin-bottom: 0.4rem;
}

.hero-title span {
  background: linear-gradient(120deg, #f97316, #fb7185, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.05em;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 36rem;
}

/* ---------- Kontakt-Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 1.7rem;
  align-items: flex-start;
  margin-top: 1.4rem;
}

.card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 1),
    rgba(3, 7, 18, 0.98)
  );
  padding: 1.6rem 1.5rem 1.8rem;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-field {
  margin-bottom: 0.8rem;
}

.label {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  display: block;
}

.label span.req {
  color: #f97316;
  margin-left: 0.1rem;
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.85);
  padding: 0.55rem 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-light);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.textarea {
  border-radius: 16px;
  min-height: 140px;
  resize: vertical;
  padding-top: 0.6rem;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: calc(100% - 14px) 13px, calc(100% - 9px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.7);
  background: rgba(15, 23, 42, 1);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

/* ===== Globaler Primary Button (orange Verlauf) ===== */

.btn-primary {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: #fffaf0;
  box-shadow: 0 20px 40px rgba(248, 113, 113, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 26px 55px rgba(248, 113, 113, 0.6);
}

.alert {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  margin-bottom: 0.8rem;
}

.alert-error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.contact-info-item {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info-item strong {
  color: var(--text-light);
}

.contact-info-item a {
  color: #fed7aa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(31, 41, 55, 1);
  padding-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);

  /* Footer wird am unteren Ende des flex-Containers positioniert */
  margin-top: auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ===== Danke-Seiten (contact-danke, termin-danke, etc.) ===== */

.thanks-wrapper {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0 1.5rem;
}

.thanks-card {
  max-width: 720px;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(34, 197, 94, 0.5);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 1),
    rgba(3, 7, 18, 0.98)
  );
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  padding: 1.8rem 1.6rem 2rem;
  position: relative;
  overflow: hidden;
}

.thanks-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.25), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.thanks-inner {
  position: relative;
  z-index: 1;
}

/* Badge hier: grün für Danke-Seiten */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(34, 197, 94, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #bbf7d0;
  margin-bottom: 0.9rem;
}

.badge-icon {
  font-size: 1rem;
}

.thanks-title {
  font-size: clamp(2rem, 2.3vw + 1.2rem, 2.5rem);
  margin-bottom: 0.3rem;
}

.thanks-title span {
  color: #bbf7d0;
}

.thanks-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1rem;
}

.thanks-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.thanks-meta strong {
  color: var(--text-light);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.btn {
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  background: none;
  color: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf5;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.45);
}

.btn-primary-green:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 26px 55px rgba(34, 197, 94, 0.6);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 1);
  background: rgba(15, 23, 42, 1);
}

.contact-inline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-inline a {
  color: #bbf7d0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Terminbuch-Assistent (termin.php) ===== */

.wizard-hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-top: 0.3rem;
}

.wizard-wrapper {
  margin-top: 1.6rem;
}

.wizard-card {
  /* nutzt das Card-Design, kann zusätzlich feinjustiert werden */
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.wizard-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(55, 65, 81, 0.85);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wizard-step-pill span.wizard-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(75, 85, 99, 0.9);
}

.wizard-step-pill.active {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fee2e2;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
  background: radial-gradient(
    circle at top left,
    rgba(248, 113, 113, 0.18),
    rgba(15, 23, 42, 1)
  );
}

.wizard-step-pill.active span.wizard-step-index {
  border-color: rgba(248, 113, 113, 0.9);
  background: linear-gradient(135deg, #f97316, #fb7185);
}

/* Inhaltliche Steps */

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

/* Navigation unten im Wizard */

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.wizard-nav-left,
.wizard-nav-right {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-secondary {
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-secondary:hover {
  border-color: rgba(229, 231, 235, 1);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.8);
}

.wizard-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Form-Felder speziell für Termin-Assistent */

.wizard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

/* ===== Allgemeine Sektionen (Features etc.) ===== */

.section {
  margin-top: 2.4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.45rem;
}

.section-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.section-header-right {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Feature-Gitter (Leistungen, Referenzen etc.) */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.95),
    rgba(3, 7, 18, 0.98)
  );
  padding: 1.2rem 1.1rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

/* „Über mich“-Bereich (allgemein) */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  margin-top: 1.1rem;
}

.about-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-highlight {
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
}

/* Hero-CTA-Buttons allgemein */

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-outline {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-outline:hover {
  border-color: rgba(229, 231, 235, 1);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.8);
}

/* ---------- Responsive allgemein ---------- */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
	.brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-logo img {
    height: 44px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links-mobile {
    display: none;
    padding: 0 1.25rem 0.7rem;
  }

  .nav-links-mobile.open {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-links-mobile a {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    color: var(--text-muted);
  }

  .nav-links-mobile a:hover {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
  }

  .page-wrapper {
    padding-inline: 1rem;
  }

  .card {
    padding-inline: 1.1rem;
  }

  .wizard-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .wizard-nav-left,
  .wizard-nav-right {
    justify-content: space-between;
  }

  .thanks-wrapper {
    padding-top: 2.2rem;
  }

  .thanks-card {
    padding-inline: 1.1rem;
  }
}

/* ===== Startseite (index.php) – Spezielle Styles ===== */

.page-home .hero {
  padding: 3.5rem 0 2.5rem;
}

.page-home .hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.page-home .badge {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(10px);
}

.page-home .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.page-home .badge-highlight {
  background: radial-gradient(
    circle at top left,
    rgba(248, 113, 113, 0.15),
    rgba(15, 23, 42, 0.95)
  );
  border-color: rgba(248, 113, 113, 0.7);
  color: #fed7aa;
}

.page-home .hero-title {
  font-size: clamp(2.4rem, 3.4vw + 1.4rem, 3.4rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.page-home .hero-title .highlight {
  background: linear-gradient(120deg, #f97316, #fb7185, #4f46e5);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(248, 113, 113, 0.5);
}

.page-home .hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

.page-home .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.page-home .btn {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
  font-weight: 500;
  background: none;
  color: inherit;
}

.page-home .btn-primary {
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: #fffaf0;
  box-shadow: 0 20px 40px rgba(248, 113, 113, 0.45);
}

.page-home .btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 26px 55px rgba(248, 113, 113, 0.6);
}

.page-home .btn-ghost {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

.page-home .btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(248, 113, 113, 0.65);
}

.page-home .btn .icon-arrow {
  font-size: 1.1rem;
  transform: translateX(0);
  transition: transform 150ms ease-out;
}

.page-home .btn:hover .icon-arrow {
  transform: translateX(3px);
}

.page-home .hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-home .hero-meta-item strong {
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* Sektionen auf der Startseite */

.page-home section {
  padding: 2rem 0;
}

.page-home .section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-home .section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.3rem;
}

.page-home .section-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.page-home .section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 430px;
}

/* Karten (Leistungen) Startseite */

.page-home .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.page-home .card-home {
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.95),
    rgba(3, 7, 18, 0.98)
  );
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.page-home .card-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(248, 113, 113, 0.16),
    transparent 55%
  );
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.page-home .card-home:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.85);
  border-color: rgba(248, 113, 113, 0.7);
}

.page-home .card-home:hover::before {
  opacity: 1;
}

.page-home .card-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(
    circle at top left,
    rgba(248, 113, 113, 0.28),
    rgba(15, 23, 42, 0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.page-home .card-home h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.page-home .card-home p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.page-home .card-list {
  list-style: none;
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 0.6rem;
}

.page-home .card-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.page-home .card-list li span.bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.9);
  flex-shrink: 0;
}

.page-home .card-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Portfolio-Grid Startseite */

.page-home .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-home .portfolio-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(
    circle at top,
    rgba(30, 64, 175, 0.3),
    rgba(15, 23, 42, 0.98)
  );
  min-height: 150px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.page-home .portfolio-label {
  font-size: 0.7rem;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.2rem;
}

.page-home .portfolio-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.page-home .portfolio-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

.page-home .portfolio-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
}

.page-home .portfolio-tag {
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Über-mich-Bereich Startseite */

.page-home .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.page-home .about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.page-home .facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.page-home .fact-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.95),
    rgba(3, 7, 18, 0.98)
  );
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 0.7rem 0.8rem;
  font-size: 0.8rem;
}

.page-home .fact-card strong {
  display: block;
  font-size: 1.1rem;
}

.page-home .badge-row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.page-home .mini-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
}

/* Startseite responsive */

@media (max-width: 960px) {
  .page-home .cards-grid,
  .page-home .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .page-home .cards-grid,
  .page-home .portfolio-grid,
  .page-home .facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .hero {
    padding-top: 2.4rem;
  }

  .page-home .hero-title {
    font-size: 2rem;
  }

  .page-home .hero-subtitle {
    font-size: 0.9rem;
  }
}

/* ===== Spezielles Layout für die Startseite – Flex wieder abschalten ===== */

body.page-home {
  display: block;
  min-height: auto;
}

body.page-home .page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  display: block;
}

body.page-home footer {
  margin-top: 2.5rem;
}

/* ===== Maintenance-Seite – eigener Look ===== */

body.page-maintenance .thanks-card {
  border-color: rgba(248, 113, 113, 0.75); /* orange statt grün */
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.95);
}

body.page-maintenance .thanks-card::before {
  background: radial-gradient(
    circle at top right,
    rgba(248, 113, 113, 0.28),
    transparent 55%
  );
}

body.page-maintenance .badge {
  border-color: rgba(248, 113, 113, 0.9);
  background: radial-gradient(
    circle at top left,
    rgba(248, 113, 113, 0.18),
    rgba(15, 23, 42, 0.98)
  );
  color: #fed7aa;
}

body.page-maintenance .thanks-title span {
  color: #fed7aa;
}

body.page-maintenance .contact-inline a {
  color: #fed7aa;
}

/* ===== Wartungsseite (maintenance.php) ===== */

body.page-maintenance .page-wrapper {
  /* etwas mehr Luft nach unten wie bei deiner alten Version */
  padding-bottom: 3rem;
}

body.page-maintenance .maintenance-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3rem;
}

body.page-maintenance .maintenance-card {
  width: 100%;
  max-width: 760px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left,
              rgba(15, 23, 42, 0.98),
              rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  padding: 1.8rem 1.6rem 2rem;
  position: relative;
  overflow: hidden;
}

body.page-maintenance .maintenance-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top right,
              rgba(248, 113, 113, 0.16),
              transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

body.page-maintenance .maintenance-inner {
  position: relative;
  z-index: 1;
}

/* Badge / Hinweis oben in der Karte */
body.page-maintenance .maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(248, 113, 113, 0.65);
  background: rgba(15, 23, 42, 0.95);
  color: #fed7aa;
  margin-bottom: 0.9rem;
}

body.page-maintenance .maintenance-badge .badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.9);
}

body.page-maintenance .maintenance-title {
  font-size: clamp(2rem, 2.3vw + 1.2rem, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

body.page-maintenance .maintenance-title span {
  background: linear-gradient(120deg, #f97316, #fb7185, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.05em;
}

body.page-maintenance .maintenance-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.2rem;
}

body.page-maintenance .maintenance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

body.page-maintenance .maintenance-meta strong {
  color: var(--text-light);
  display: block;
  margin-bottom: 0.1rem;
}

/* Button-Reihe & Kontaktzeile */
body.page-maintenance .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
}

body.page-maintenance .icon-arrow {
  font-size: 1.1rem;
}

body.page-maintenance .contact-inline {
  font-size: 0.86rem;
  color: var(--text-muted);
}

body.page-maintenance .contact-inline strong {
  color: var(--text-light);
}

body.page-maintenance .contact-inline a {
  color: #fed7aa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile Anpassungen für die Wartungsseite */
@media (max-width: 720px) {
  body.page-maintenance .page-wrapper {
    padding-inline: 1rem;
  }

  body.page-maintenance .maintenance-card {
    padding-inline: 1.1rem;
  }

  body.page-maintenance .maintenance-wrapper {
    padding-top: 2.2rem;
  }
}

/* --- Fix: Primary Button überall mit orangem Verlauf erzwingen (falls irgendwo überschrieben) --- */
.btn-primary {
  background: linear-gradient(135deg, #f97316, #fb7185) !important;
  color: #fffaf0 !important;
  border: none !important;
  box-shadow: 0 20px 40px rgba(248, 113, 113, 0.45) !important;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 26px 55px rgba(248, 113, 113, 0.6) !important;
}

/* ===== Rechteseiten (Impressum, Datenschutz, AGB etc.) ===== */

body.page-legal .page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Hauptsektion */
body.page-legal .content-section {
  padding: 2.8rem 0 1.5rem;
}

/* Kicker / Titel / Untertitel oben */
body.page-legal .section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

body.page-legal .section-title {
  font-size: clamp(2rem, 2.3vw + 1.2rem, 2.6rem);
  margin-bottom: 0.7rem;
}

body.page-legal .section-title span {
  background: linear-gradient(120deg, #f97316, #fb7185, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.page-legal .section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

/* Karte mit dem eigentlichen Rechtstext */
body.page-legal .content-card {
  width: 100%;
  max-width: 100%; /* breiter wie die anderen Cards innerhalb der page-wrapper */
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left,
              rgba(15, 23, 42, 0.98),
              rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1.6rem 1.5rem 1.9rem;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85);
}

body.page-legal .content-card h2 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

body.page-legal .content-card p,
body.page-legal .content-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
}

body.page-legal .content-card p + p {
  margin-top: 0.3rem;
}

body.page-legal .content-card ul {
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}

body.page-legal .content-card a {
  color: #fed7aa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Label für Hervorhebungen (z.B. Firmenname) */
body.page-legal .label {
  font-weight: 500;
  color: var(--text-light);
}

/* Zurück-Link oben */
body.page-legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
  color: #e5e7eb;
  text-decoration: none;
}

body.page-legal .back-link .icon {
  font-size: 1.1rem;
}

/* Mobile Anpassungen */
@media (max-width: 720px) {
  body.page-legal .page-wrapper {
    padding-inline: 1rem;
  }

  body.page-legal .content-card {
    padding-inline: 1.1rem;
  }
}
