/* ============================================
   Michelson Pflegeambulanz - Stylesheet
   Farben: Rot #C8102E | Gold #F0C040 | Weiß #FFFFFF | Grau #F5F5F5 | Dunkel #2C2C2C
   ============================================ */

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

:root {
  --red: #C8102E;
  --red-dark: #a00d24;
  --gold: #F0C040;
  --gold-dark: #d4a820;
  --white: #ffffff;
  --gray-light: #F7F7F7;
  --gray-mid: #e8e8e8;
  --gray: #6B6B6B;
  --dark: #2C2C2C;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 32px rgba(0,0,0,0.13);
  --transition: 0.22s ease;
}

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

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red-dark);
}

/* ─── LAYOUT HELPERS ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--gray-light);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.75rem auto 1.25rem;
}

.divider--left {
  margin-left: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.30);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--red);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--dark);
}

.btn--gold:hover {
  background: var(--gold-dark);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,192,64,0.35);
}

/* ─── HEADER / NAV ─── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: box-shadow var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 54px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav__menu a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav__menu a:hover,
.nav__menu a.active {
  background: var(--gray-light);
  color: var(--red);
}

.nav__cta {
  background: var(--red);
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 0.45rem 1.2rem !important;
}

.nav__cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

.nav__lang {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.nav__lang button {
  background: none;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--gray);
  transition: all var(--transition);
}

.nav__lang button.active,
.nav__lang button:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav__burger { display: flex; }

  .nav__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav__menu.open { display: flex; }

  .nav__menu a {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--gray-mid);
    border-radius: 0;
  }

  .nav__lang { display: none; }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, #8B0015 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('img/front.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  color: var(--white);
}

.hero__badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__sub p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── QUICK INFO BAR ─── */
.infobar {
  background: var(--dark);
  color: var(--white);
  padding: 1.1rem 0;
}

.infobar__grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.infobar__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.infobar__item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.infobar__item a {
  color: var(--white);
  font-weight: 500;
}

.infobar__item a:hover { color: var(--gold); }

/* ─── ABOUT ─── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text h2 { margin-bottom: 0.3rem; }

.about__text p { font-size: 1.02rem; }

.about__highlights {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about__highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about__highlight-icon {
  width: 36px;
  height: 36px;
  background: rgba(240,192,64,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.about__highlight-icon svg { color: var(--gold-dark); }

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ─── SERVICES ─── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--red);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(200,16,46,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__icon svg { color: var(--red); }

.service-card h3 { color: var(--dark); margin-bottom: 0.5rem; }

.service-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ─── FAMILY CARE ─── */
.family {
  background: linear-gradient(135deg, var(--red) 0%, #8B0015 100%);
  color: var(--white);
}

.family .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.family__text h2 { color: var(--white); margin-bottom: 0.5rem; }

.family__text p { color: rgba(255,255,255,0.87); }

.family__text .divider { background: var(--gold); }

.family__list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.family__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255,255,255,0.90);
  font-size: 0.97rem;
}

.family__list li svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }

.family__card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 2.5rem;
}

.family__card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 1rem; }

.family__card p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .family .container { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── TEAM / JOBS ─── */
.jobs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.job-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.job-card h3 { color: var(--dark); margin-bottom: 0.75rem; }
.job-card p { font-size: 0.95rem; margin-bottom: 1.25rem; }

.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--gray-light);
  color: var(--gray);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 500;
}

/* ─── CONTACT ─── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h2 { margin-bottom: 0.3rem; }

.contact__items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,16,46,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon svg { color: var(--red); }

.contact__item-body strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 0.2rem;
}

.contact__item-body a,
.contact__item-body span {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 500;
}

.contact__item-body a:hover { color: var(--red); }

/* Contact Form */
.contact__form {
  background: var(--gray-light);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact__form h3 { margin-bottom: 1.5rem; color: var(--dark); }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
}

.form-group textarea { resize: vertical; min-height: 130px; }

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input { width: auto; margin-top: 3px; accent-color: var(--red); }

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 400;
}

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── MAP ─── */
.map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand img {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  max-width: 260px;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer__col ul a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a { color: rgba(255,255,255,0.65); }
.footer__bottom-links a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ─── PAGE WRAPPER (Datenschutz / Impressum) ─── */
.page-content {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.page-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.page-content .divider { margin-bottom: 2rem; }

.legal-body h2 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-body h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-body p { margin-bottom: 1rem; }

.legal-body ul, .legal-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.legal-body li { margin-bottom: 0.4rem; color: var(--gray); }

.legal-body a { color: var(--red); }

.legal-body strong { color: var(--dark); }

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ─── ANIMATIONS ─── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,16,46,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 500;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover { transform: translateY(-3px); }

/* ─── NOTICE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,0.90);
  padding: 1rem 1.5rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show { transform: none; }

.cookie-banner a { color: var(--gold); }

.cookie-banner__actions { display: flex; gap: 0.75rem; }
