/* ============================================================
   APPAREO PFLEGEDIENST — style.css
   ============================================================ */

/* === 1. CUSTOM PROPERTIES === */
:root {
  --clr-primary:       #7B2D42;
  --clr-primary-hover: #5E2133;
  --clr-primary-light: #F5E8EC;
  --clr-secondary:     #B8647A;
  --clr-accent:        #7A9E87;
  --clr-accent-light:  #EAF2ED;
  --clr-bg:            #FAF6F0;
  --clr-bg-alt:        #EDE8E0;
  --clr-bg-dark:       #3C1520;
  --clr-text:          #1C1C1E;
  --clr-text-muted:    #64535A;
  --clr-text-inv:      #FAF6F0;
  --clr-border:        #D4C8BC;
  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1100px;
  --px: clamp(1rem, 4vw, 1.5rem);
  --radius: 10px;
  --shadow: 0 2px 16px rgba(60, 21, 32, 0.09);
  --t: 200ms ease;
}

/* === 2. RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* === 3. BASE === */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  line-height: 1.25;
  color: var(--clr-primary);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; font-family: var(--font-b); font-weight: 600; }

p { margin-bottom: 1rem; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

/* === 4. LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section        { padding: 4rem 0; }
.section--alt   { background: var(--clr-bg-alt); }
.section--dark  { background: var(--clr-bg-dark); color: var(--clr-text-inv); }
.section--dark h2, .section--dark h3 { color: var(--clr-text-inv); }

/* === 5. SITE HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-bg-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem var(--px);
  min-height: 68px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; border-radius: 4px; }

/* === 6. NAVIGATION === */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  color: var(--clr-text-inv);
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--t);
}

.main-nav ul {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: rgba(250, 246, 240, 0.80);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--clr-text-inv);
}

.main-nav a.active {
  background: var(--clr-primary);
  color: white;
}

/* === 7. HERO (Startseite) === */
.hero {
  background: var(--clr-bg-alt);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 3px solid var(--clr-primary);
}

.hero__logo {
  max-width: 300px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__title {
  color: var(--clr-primary);
  margin-bottom: 1.25rem;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__text {
  color: var(--clr-text-muted);
  max-width: 58ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.hero__cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* === 8. BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background: var(--clr-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(123, 45, 66, 0.25);
}
.btn--primary:hover {
  background: var(--clr-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123, 45, 66, 0.30);
}

.btn--outline {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--clr-primary-light);
}

/* === 9. CONTACT BAR === */
.contact-bar {
  background: var(--clr-primary);
  color: white;
  padding: 2.5rem 0;
}

.contact-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.contact-bar__badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-bar__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-bar__label {
  font-size: 0.8rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-bar__value {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.contact-bar__value a {
  color: white;
  transition: opacity var(--t);
}
.contact-bar__value a:hover { opacity: 0.8; }

.contact-bar__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn--light {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--t);
}
.btn--light:hover { background: rgba(255,255,255,0.25); }

/* === 10. SERVICE OVERVIEW CARDS === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--clr-primary);
  transition: transform var(--t), box-shadow var(--t);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(60, 21, 32, 0.13);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  background: var(--clr-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: 0;
}

/* === 11. PAGE HEADER (Unterseiten) === */
.page-header {
  background: linear-gradient(135deg, var(--clr-bg-dark) 0%, var(--clr-primary) 100%);
  color: var(--clr-text-inv);
  padding: 3.5rem 0;
}

.page-header h1 { color: white; margin-bottom: 0.75rem; }
.page-header p  { color: rgba(250,246,240,0.78); font-size: 1.05rem; max-width: 60ch; }

/* === 12. CONTENT SECTION === */
.content-section { padding: 4rem 0; }
.content-section h2 { margin-bottom: 1.5rem; }
.content-section h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--clr-secondary);
}

.text-lead {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  max-width: 70ch;
}

/* === 13. LEISTUNGEN CARDS === */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.leistungen-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.leistungen-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--clr-primary);
  font-family: var(--font-h);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--clr-primary-light);
  font-style: italic;
}

.leistungen-card__header span { font-size: 1.1rem; }

.leistungen-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.leistungen-card ul li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  align-items: flex-start;
  line-height: 1.4;
}

.leistungen-card ul li::before {
  content: '✓';
  color: var(--clr-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === 14. PFLEGEGRADE === */
.pflegegrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.pflegegrad-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--clr-primary);
}

.pflegegrad-card h4 {
  font-family: var(--font-h);
  font-size: 0.95rem;
  color: var(--clr-primary);
  margin-bottom: 0.35rem;
  font-style: italic;
}

.pflegegrad-card p { font-size: 0.82rem; color: var(--clr-text-muted); margin: 0; }

/* === 15. PHILOSOPHY CARDS (Über uns) === */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.philosophy-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--t);
}
.philosophy-card:hover { transform: translateY(-2px); }

.philosophy-card__icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.philosophy-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: var(--clr-primary);
}

.philosophy-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin: 0;
}

/* === 16. INFO BOX === */
.info-box {
  background: var(--clr-accent-light);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.info-box p { color: var(--clr-text); font-size: 0.95rem; margin: 0; }

/* === 17. KONTAKT LAYOUT === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1rem; }
.contact-info a { color: var(--clr-primary); font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.contact-detail__row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.925rem;
  align-items: baseline;
}

.contact-detail__label {
  color: var(--clr-text-muted);
  font-size: 0.82rem;
  min-width: 78px;
  flex-shrink: 0;
}

.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--clr-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  background: var(--clr-bg);
  transition: border-color var(--t);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: white;
}

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

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

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--clr-primary);
  cursor: pointer;
}
.form-checkbox label { font-size: 0.82rem; color: var(--clr-text-muted); line-height: 1.5; }

.required { color: var(--clr-primary); }

/* === 18. ANFAHRT === */
.anfahrt-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

.anfahrt-info h3 { margin-bottom: 1rem; }
.anfahrt-info address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--clr-text-muted);
}
.anfahrt-info strong { color: var(--clr-text); }

/* === 19. IMPRESSUM === */
.impressum-section { margin-bottom: 2.5rem; }
.impressum-section h3 {
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.impressum-section p,
.impressum-section li { font-size: 0.925rem; color: var(--clr-text-muted); line-height: 1.8; }

/* === 20. FOOTER === */
.site-footer {
  background: var(--clr-bg-dark);
  color: var(--clr-text-inv);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--clr-secondary);
  font-family: var(--font-h);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col address {
  font-size: 0.875rem;
  line-height: 1.9;
  font-style: normal;
  opacity: 0.75;
}

.footer-col a { opacity: 0.75; transition: opacity var(--t); }
.footer-col a:hover { opacity: 1; text-decoration: underline; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-nav a { font-size: 0.875rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  opacity: 0.55;
}

/* === 21. RESPONSIVE === */
@media (max-width: 900px) {
  .contact-layout  { grid-template-columns: 1fr; }
  .anfahrt-layout  { grid-template-columns: 1fr; }
}

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

  .main-nav ul {
    position: fixed;
    inset: 0;
    flex-direction: column;
    background: var(--clr-bg-dark);
    padding: 5.5rem var(--px) 2rem;
    gap: 0.25rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 280ms ease;
    z-index: 90;
  }
  .main-nav ul.is-open { transform: translateX(0); }

  .main-nav a {
    font-size: 1.05rem;
    padding: 0.6rem 1rem;
  }

  .section        { padding: 3rem 0; }
  .content-section { padding: 3rem 0; }
  .hero           { padding: 3rem 0; }
}

@media (max-width: 520px) {
  .contact-bar__inner { flex-direction: column; text-align: center; }
  .contact-bar__badge { justify-content: center; }
  .contact-bar__actions { justify-content: center; }
  .hero__cta { flex-direction: column; align-items: center; }
  .form-card { padding: 1.5rem; }
  .map-wrapper iframe { height: 300px; }
}
