/* ============================================
   Lokale Schriftarten (DSGVO-konform, keine externen Anfragen)
   ============================================ */
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('assets/fonts/sourcesans3-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('assets/fonts/sourcesans3-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CI Custom Properties
   ============================================ */
:root {
  --primaer:        #6B8F6E;
  --primaer-hell:   #EEF3EE;
  --primaer-dunkel: #4F6E52;
  --hintergrund:    #F7F3ED;
  --akzent:         #C47C5A;
  --akzent-dunkel:  #A8623F;
  --text:           #2C2416;
  --text-hell:      #4A3F34;
  --weiss:          #FFFFFF;
  --schatten:       0 4px 24px rgba(44, 36, 22, 0.09);
  --schatten-hover: 0 10px 36px rgba(44, 36, 22, 0.15);
  --radius:         16px;
  --max-breite:     1100px;
  --abstand:        96px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--hintergrund);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ============================================
   Typografie
   ============================================ */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primaer);
  display: block;
  margin-bottom: 0.6rem;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 28px;
}

.section     { padding: var(--abstand) 0; }
.section-alt { background-color: var(--primaer-hell); }
/* Section-Labels auf hellem Grünhintergrund: dunkleres Grün für ausreichend Kontrast */
.section-alt .section-label { color: var(--primaer-dunkel); }
.text-center { text-align: center; }

/* ============================================
   Navigation
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Immer lesbarer Hintergrund — dunkler Gradient über Fotobereichen */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
  background: var(--weiss);
  box-shadow: 0 2px 20px rgba(44, 36, 22, 0.08);
}

.nav-inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — deutlich und mit Pfeil-Akzent */
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--weiss);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: color 0.35s ease, text-shadow 0.35s ease;
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.nav-logo::before {
  content: '→';
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--akzent);
  transition: color 0.35s ease;
  line-height: 1;
}

#navbar.scrolled .nav-logo { color: var(--primaer); text-shadow: none; }
#navbar.scrolled .nav-links a { text-shadow: none; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--weiss);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: rgba(255, 255, 255, 0.85); }

#navbar.scrolled .nav-links a       { color: var(--text); }
#navbar.scrolled .nav-links a:hover { color: var(--primaer); }

.nav-cta {
  background: var(--akzent) !important;
  color: var(--weiss) !important;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--akzent-dunkel) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--weiss);
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

#navbar.scrolled .nav-toggle span { background: var(--text); }

.nav-toggle.aktiv span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.aktiv span:nth-child(2) { opacity: 0; }
.nav-toggle.aktiv span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   Hero-Bild: Alltagsszene (Einkauf, Stadt, unterwegs).
   Durch eigenes Foto von Yvonne im Einsatz ersetzen.
   ============================================ */
#hero {
  min-height: 100vh;
  background-image: url('assets/hero.jpg');
  /* Älteres Paar, Spaziergang im Park, Hand in Hand — Teilhabe am Leben */
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Einheitlich dunkel genug für gute Lesbarkeit — ältere Augen einberechnet */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(44, 36, 22, 0.62) 35%,
    rgba(44, 36, 22, 0.62) 70%,
    rgba(44, 36, 22, 0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 820px;
}

.hero-headline {
  color: var(--weiss);
  line-height: 1.18;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(28px);
  animation: aufwaerts 0.9s ease 0.2s forwards;
}

.hero-subline {
  color: var(--weiss);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(28px);
  animation: aufwaerts 0.9s ease 0.5s forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--akzent);
  color: var(--weiss);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2.4rem;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(28px);
  animation: aufwaerts 0.9s ease 0.8s forwards;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--akzent-dunkel);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(196, 124, 90, 0.38);
}

@keyframes aufwaerts {
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: aufwaerts 0.9s ease 1.2s forwards;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  animation: pfeil 1.8s ease infinite;
}

@keyframes pfeil {
  0%   { transform: rotate(45deg) translate(-4px, -4px); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: rotate(45deg) translate(4px, 4px); opacity: 0; }
}

/* ============================================
   Über mich
   ============================================ */
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ueber-bild img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.ueber-text h2 { margin-top: 0.4rem; }
.ueber-text p  { color: var(--text-hell); }

/* ============================================
   Leistungen — Karten (vergrößert)
   ============================================ */
#leistungen h2 { margin-bottom: 0.5rem; }

.karten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 3rem;
}

.karte {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--schatten);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.karte:hover {
  transform: translateY(-6px);
  box-shadow: var(--schatten-hover);
}

.karte-icon {
  width: 60px;
  height: 60px;
  color: var(--primaer);
  background: var(--primaer-hell);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.karte-icon svg { width: 100%; height: 100%; }

.karte h3 {
  color: var(--primaer);
  font-size: 1.3rem;
}

.karte p {
  font-size: 1rem;
  color: var(--text-hell);
}

/* ============================================
   Für wen
   ============================================ */
#fuer-wen h2 { margin-bottom: 0.5rem; }

.fuer-wen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 3rem;
}

.fuer-wen-block {
  background: var(--weiss);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  border-top: 4px solid var(--primaer);
  transition: box-shadow 0.3s ease;
}

.fuer-wen-block--alt { border-top-color: var(--akzent); }
.fuer-wen-block:hover { box-shadow: var(--schatten-hover); }

.fuer-wen-bild img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fuer-wen-block:hover .fuer-wen-bild img { transform: scale(1.03); }

.fuer-wen-text { padding: 2rem 2rem 2.25rem; }

.fuer-wen-text h3              { color: var(--primaer); }
.fuer-wen-block--alt .fuer-wen-text h3 { color: var(--akzent); }

.fuer-wen-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.fuer-wen-text p        { color: var(--text-hell); }
.fuer-wen-text strong   { color: var(--text); }

/* ============================================
   Prozess
   ============================================ */
#prozess h2 { margin-bottom: 0.5rem; }

.schritte {
  display: flex;
  align-items: flex-start;
  margin-top: 3.5rem;
}

.schritt {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.schritt-nummer {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primaer);
  color: var(--weiss);
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  box-shadow: 0 6px 20px rgba(107, 143, 110, 0.32);
}

.schritt h3 { color: var(--primaer-dunkel); margin-bottom: 0.5rem; }
.schritt p  { font-size: 1rem; color: var(--text); }

.schritt-verbinder {
  flex: 0 0 48px;
  height: 2px;
  background: var(--primaer);
  opacity: 0.25;
  margin-top: 28px;
  flex-shrink: 0;
}

/* ============================================
   Pflegekasse
   ============================================ */
.info-box {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  box-shadow: var(--schatten);
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  border-left: 5px solid var(--primaer);
}

.info-box-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--primaer);
  margin-top: 2px;
}

.info-box-icon svg { width: 100%; height: 100%; }

.info-box-text h3 { color: var(--primaer); margin-bottom: 0.6rem; }
.info-box-text p  { font-size: 1rem; color: var(--text-hell); }

.info-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primaer);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.info-link:hover { color: var(--primaer-dunkel); }

/* ============================================
   Kontakt
   ============================================ */
.section-kontakt { background: var(--primaer); }

.section-kontakt .section-label { color: rgba(255, 255, 255, 0.90); }

.section-kontakt h2 {
  color: var(--weiss);
  margin-bottom: 1rem;
}

.kontakt-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.kontakt-wege {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.kontakt-weg {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--weiss);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 5px;
  transition: border-color 0.25s ease;
}

.kontakt-weg:hover { border-color: var(--weiss); }

.kontakt-weg svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ============================================
   Footer
   ============================================ */
footer { background: var(--text); padding: 2.75rem 0; }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-marke  { color: rgba(255, 255, 255, 0.90); font-size: 0.95rem; }

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--weiss); }

.footer-hinweis { color: rgba(255, 255, 255, 0.60); font-size: 0.82rem; }

/* ============================================
   Pflegekasse-Unterseite
   ============================================ */
.page-header {
  background: var(--primaer);
  padding: 120px 0 64px;
  text-align: center;
}

.page-header .section-label { color: rgba(255, 255, 255, 0.90); }
.page-header h1 { color: var(--weiss); font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 1rem; }
.page-header p  { color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.pk-karten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3rem;
}

.pk-karte {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--schatten);
}

.pk-karte-badge {
  display: inline-block;
  background: var(--primaer-hell);
  color: var(--primaer);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.pk-karte h3 { color: var(--primaer); font-size: 1.3rem; margin-bottom: 1rem; }

.pk-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pk-liste li {
  font-size: 0.97rem;
  color: var(--text-hell);
  padding-left: 1.4em;
  position: relative;
}

.pk-liste li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primaer);
  font-weight: 600;
}

.pk-hinweis {
  background: var(--primaer-hell);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-top: 3rem;
  border-left: 4px solid var(--primaer);
}

.pk-hinweis p {
  color: var(--text-hell);
  font-size: 0.97rem;
}

.pk-cta {
  background: var(--primaer);
  border-radius: var(--radius);
  padding: 3rem;
  margin-top: 3rem;
  text-align: center;
}

.pk-cta h2   { color: var(--weiss); margin-bottom: 0.75rem; }
.pk-cta p    { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.75rem; }

/* ============================================
   Responsive — 960px
   ============================================ */
@media (max-width: 960px) {
  :root { --abstand: 72px; }

  .karten-grid      { grid-template-columns: 1fr 1fr; }
  .pk-karten        { grid-template-columns: 1fr; }

  .ueber-grid       { grid-template-columns: 1fr; gap: 44px; }
  .ueber-bild img   { height: 380px; }

  .fuer-wen-grid    { grid-template-columns: 1fr; }

  .kontakt-weg { font-size: 1.2rem; }

  .schritte         { flex-direction: column; align-items: center; }
  .schritt          { padding: 2rem 1rem; width: 100%; max-width: 380px; }
  .schritt-verbinder { width: 2px; height: 48px; flex: 0; margin: 0 auto; }
}

/* ============================================
   Responsive — 768px (Hamburger)
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--weiss);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 28px;
    gap: 1.5rem;
    box-shadow: 0 12px 32px rgba(44, 36, 22, 0.10);
  }

  .nav-links.offen { display: flex; }

  .nav-links a { color: var(--text); font-size: 1.1rem; }
  .nav-cta     { width: 100%; text-align: center; }

  #hero { background-attachment: scroll; }

  .info-box { flex-direction: column; padding: 2rem; gap: 1rem; }

  .form-grid { grid-template-columns: 1fr; }

  .kontakt-form { padding: 2rem 1.5rem; }
}

/* ============================================
   Responsive — 480px
   ============================================ */
@media (max-width: 480px) {
  :root { --abstand: 56px; }

  .karten-grid { grid-template-columns: 1fr; }
  .info-box    { padding: 1.75rem 1.5rem; }
}
