/* ============================================================
   Physio Konrad – style.css
   ============================================================

   SCHRIFTEN (lokal gebundelt – DSGVO-konform, offline-fähig):
   Dateien in assets/fonts/ ablegen:
     - open-sans-400.woff2   (Regular)
     - open-sans-600.woff2   (Semibold)
   Download: https://fonts.google.com/specimen/Open+Sans
   → Schriftart → "Download family"
   Bis zur Ablage wird Arial als Fallback verwendet.
   ============================================================ */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-600.woff2') format('woff2');
}

/* ── Variablen ─────────────────────────────────────────────── */
:root {
  --primary:    #132e68;
  --accent:     #8c9abd;
  --bg-light:   #f4f7fc;
  --text:       #333333;
  --text-muted: #666666;
  --white:      #ffffff;
  --max-width:  1200px;
  --radius:     4px;
  --shadow:     0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.logo img { height: 46px; width: auto; }

nav ul {
  display: flex;
  gap: 2.25rem;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover,
nav a.active { color: var(--white); text-decoration: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Slideshow ──────────────────────────────────────────────── */
.slideshow {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--primary);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;   /* Fokuspunkt auf Kopfhöhe: Beschnitt erfolgt v.a. unten */
}

.slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 46, 104, 0.42);
}

.slide-caption h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  text-align: center;
  padding: 0 32px;
  max-width: 820px;
}

.slide-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.slide-dot.active,
.slide-dot:hover { background: var(--white); }

/* ── Sections ───────────────────────────────────────────────── */
section { padding: 72px 0; }
section.bg-light { background: var(--bg-light); }

.section-heading {
  text-align: center;
  margin-bottom: 52px;
}
.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}
.section-heading p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ── CTA Button ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: transparent;
  color: var(--primary);
  text-decoration: none;
}
.cta-center { text-align: center; margin-top: 36px; }

/* ── Banner (Bild-Trenner) ──────────────────────────────────── */
.banner {
  width: 100%;
  height: 260px;
  background-image: url('../img/PhysioKonrad-8-1365x630.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19, 46, 104, 0.35);
}

/* ── Icon-Liste (Startseite) ────────────────────────────────── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
}

.icon-item { display: flex; gap: 18px; align-items: flex-start; }

.icon-bubble {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.icon-bubble svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.icon-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Leistungen ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.service-list h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.service-list li {
  padding: 9px 0;
  border-bottom: 1px solid #e8edf5;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Praxis ─────────────────────────────────────────────────── */
.contact-box {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-box h2 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
  grid-column: 1 / -1;
}
.contact-box p { font-size: 0.95rem; line-height: 1.8; }
.contact-box a { color: var(--accent); }
.contact-box a:hover { color: var(--white); text-decoration: none; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.process-step {
  background: var(--white);
  border: 1px solid #d8e0ef;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.gutscheine-box {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin-bottom: 56px;
}
.gutscheine-box h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.gutscheine-box p { font-size: 0.95rem; color: var(--text-muted); }

.links-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.external-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
}
.external-links li {
  font-size: 0.9rem;
  padding: 5px 0;
  border-bottom: 1px solid #e8edf5;
}
.external-links li a { color: var(--accent); }
.external-links li a:hover { color: var(--primary); text-decoration: none; }

/* ── Team ───────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--white);
  border: 1px solid #d8e0ef;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
}
.team-card img {
  width: 280px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-card-body { padding: 24px 28px; flex: 1; }
.team-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.team-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}
.team-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.team-contact a { color: var(--accent); }
.team-contact a:hover { color: var(--primary); text-decoration: none; }

.competencies h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.competencies li {
  font-size: 0.87rem;
  color: var(--text);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.competencies li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Impressum / Datenschutz ─────────────────────────────────── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}
.page-content h1 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 36px;
}
.page-content h2 {
  color: var(--primary);
  font-size: 1.15rem;
  margin: 36px 0 10px;
}
.page-content p,
.page-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 10px;
}
.placeholder-notice {
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: #6d4c00;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 36px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-col .footer-logo img {
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.9;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 16px;
}
.footer-col p,
.footer-col li { font-size: 0.9rem; line-height: 1.85; }
.footer-col a { color: var(--accent); }
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ── Footer Karte (Klick-zum-Laden, DSGVO) ──────────────────── */
.footer-map {
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  aspect-ratio: 16 / 10;
  max-width: 340px;
}
.footer-map-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-map-load:hover,
.footer-map-load:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--white);
}
.footer-map-load svg {
  width: 32px;
  height: 32px;
  fill: var(--accent);
}
.footer-map-label {
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-map-load small {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}
.footer-map.is-loaded { border: 0; }
.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.45); margin-left: 16px; }
.footer-bottom a:hover { color: var(--white); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .icon-grid        { grid-template-columns: repeat(2, 1fr); }
  .services-grid    { grid-template-columns: 1fr; gap: 40px; }
  .team-grid        { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .process-grid     { grid-template-columns: 1fr; }
  .contact-box      { grid-template-columns: 1fr; }
  .external-links   { grid-template-columns: 1fr; }
  .banner           { background-attachment: scroll; }
}

@media (max-width: 680px) {
  .slideshow        { height: 300px; }
  section           { padding: 52px 0; }
  .icon-grid        { grid-template-columns: 1fr; gap: 32px; }
  .team-grid        { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .contact-box      { padding: 24px; }
  .banner           { height: 160px; }

  .hamburger        { display: flex; }

  nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  nav.open          { max-height: 320px; }
  nav ul            { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  nav a             { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
