/*
 * Modernes Design-Overlay für DeinPersönlicherPfleger.de.
 * Wird NACH dem Mobirise-Theme geladen und überschreibt bewusst nur Farben,
 * Radien, Schatten und Abstände – die bestehende Struktur/Bilder bleiben
 * unangetastet.
 */

:root {
  --brand: #2f6f6b;
  --brand-dark: #204d4a;
  --brand-light: #e8f3f2;
  --accent: #ef8354;
  --accent-dark: #d96a3a;
  --ink: #1f2933;
  --muted: #5b6b73;
  --surface: #ffffff;
  --surface-alt: #f6f9f9;
  --border-soft: #e1e8e7;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(15, 40, 38, 0.08);
  --shadow-md: 0 14px 34px rgba(15, 40, 38, 0.14);
  --transition: 180ms ease;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ---- Buttons ---- */
.btn {
  border-radius: 999px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary,
.btn-primary:active {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  box-shadow: var(--shadow-sm) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  box-shadow: var(--shadow-md) !important;
}
.btn-secondary,
.btn-secondary:active {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-sm) !important;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  box-shadow: var(--shadow-md) !important;
}
.btn-outline-secondary {
  border-radius: 999px !important;
}

/* ---- Sichtbare Login/Registrieren-Buttons in der Navbar ---- */
.nav-auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0.75rem;
}
.nav-auth-buttons .btn {
  white-space: nowrap;
}

/* ---- Navigation ---- */
.navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 40, 38, 0.06);
}
.navbar .nav-link {
  font-weight: 500;
  color: var(--ink) !important;
}
.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  overflow: hidden;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--brand-light) !important;
  color: var(--brand-dark) !important;
}

/* ---- Cards ---- */
.card {
  border: none !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team2 .card:hover,
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---- Forms ---- */
.form-control,
.form-select,
select.form-control {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-soft) !important;
  padding: 0.65rem 1rem !important;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus,
select.form-control:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-light) !important;
}
.form-check-input:checked {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}

/* ---- Alerts ---- */
.alert {
  border: none;
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
}
.alert-success {
  background: #eaf7f0;
  color: #1c6b43;
  border-left-color: #2ea36b;
}
.alert-danger {
  background: #fdedec;
  color: #a13327;
  border-left-color: #e5533d;
}
.alert-warning {
  background: #fff6e0;
  color: #7a5a00;
  border-left-color: #f0b90b;
}
.alert-info {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-left-color: var(--brand);
}

/* ---- Badges ---- */
.badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.4em 0.9em;
  letter-spacing: 0.02em;
}

/* =========================================================
   Auth-/Verwaltungsseiten (Login, Registrierung, Profil, Admin …)
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, var(--brand-light) 0%, #ffffff 55%);
  padding: 3rem 1rem;
}
.auth-shell.auth-shell-wide {
  align-items: flex-start;
}
.auth-card {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}
.auth-card-wide {
  max-width: 1080px;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 1.05rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.auth-brand:hover {
  color: var(--brand);
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.auth-back:hover {
  color: var(--brand-dark);
}
.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.auth-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.auth-card hr {
  border-top: 1px solid var(--border-soft);
  margin: 2rem 0;
}
.status-pill {
  display: inline-block;
  padding: 0.4em 1em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 575px) {
  .auth-card {
    padding: 1.75rem;
  }
}

/* =========================================================
   Seiten-Layout v2 – eigenes, schlankes Design für die
   öffentlichen Seiten (löst die alten Mobirise-Fullscreen-
   Blöcke ab). Texte/Inhalte bleiben unverändert, nur die
   Hülle drumherum ist neu.
   ========================================================= */
body {
  color: var(--ink);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.site-section {
  padding: 5rem 0;
}
.site-section-sm {
  padding: 3rem 0;
}
.site-section-alt {
  background: var(--surface-alt);
}
.site-section-dark {
  background: var(--brand-dark);
  color: #fff;
}
.site-section-dark .section-title,
.site-section-dark .eyebrow {
  color: #fff;
}
.site-section-dark .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}
.prose p {
  margin-bottom: 1.15rem;
}
.prose p:last-child {
  margin-bottom: 0;
}

/* ---- Hero ---- */
.hero-modern {
  padding: 3.5rem 0 1rem;
  overflow: hidden;
}
.hero-modern .hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}
.hero-modern h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.hero-modern .hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Callout (z.B. "Wie es weiter geht") ---- */
.callout {
  background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 70%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.callout .eyebrow {
  color: var(--brand-dark);
}

/* ---- Step-Cards (Lokal / Bezahlung usw.) ---- */
.step-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  height: 100%;
}
.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.6rem;
}

/* ---- Team-Cards ---- */
.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.team-card .card-body {
  padding: 1.75rem;
}

/* ---- Pricing ---- */
.price-card {
  height: 100%;
  padding: 2rem;
  text-align: center;
  border-top: 4px solid var(--brand);
}
.price-card .price-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.price-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
}
.price-card ul li:last-child {
  border-bottom: none;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 1.35rem 0;
}
.faq-item:first-child {
  padding-top: 0;
}
.faq-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.faq-item p {
  color: var(--muted);
  margin: 0;
}

/* ---- Kontakt-Karten ---- */
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.75rem;
  height: 100%;
}
.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-card h6 {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 700;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #b9c4c2;
  padding: 3.5rem 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.75;
}
.site-footer a {
  color: #ffffff;
}
.site-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.site-footer .legal-text {
  color: #8b9997;
  font-size: 0.82rem;
}

@media (max-width: 767px) {
  .site-section {
    padding: 3.25rem 0;
  }
}
