/* =============================================
   Physiotherapie am Luisium – Hauptstylesheet
   Farben aus Logo: Teal #00959A / Grau #5A5A5A
   ============================================= */

:root {
  --teal:        #00959A;
  --teal-dark:   #007277;
  --teal-light:  #e6f5f6;
  --teal-mid:    #b3dfe1;
  --grey:        #4a4a4a;
  --grey-light:  #6b6b6b;
  --grey-bg:     #f7f8f8;
  --white:       #ffffff;
  --text:        #2e2e2e;
  --border:      #d8e8e9;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius:   8px;
  --shadow:   0 2px 16px rgba(0,149,154,0.10);
  --shadow-md:0 4px 32px rgba(0,149,154,0.14);

  --max-width: 1140px;
  --header-h: 80px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--grey);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #007a7e;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--grey);
}

.section-title span { color: var(--teal); }

.section-intro {
  max-width: 620px;
  color: var(--grey-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---- Skip-Link (Barrierefreiheit) ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---- Header / Navigation ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* Main Nav */
nav { display: flex; align-items: center; gap: 0.25rem; }

nav a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--teal);
  background: var(--teal-light);
}

.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  margin-left: 0.5rem;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  aria-label: "Menü öffnen";
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #00b8be 100%);
  color: #fff;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.65em;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 480px;
}

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

.hero-oz {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
}
.hero-oz svg { flex-shrink: 0; opacity: .5; }
.hero-oz a { color: rgba(255,255,255,.8); }
.hero-oz a:hover { color: #fff; }

@media (max-width: 600px) {
  .hero-oz { font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
}

.hero-image {
  position: relative;
}

/* Placeholder für Hero-Bild */
.img-placeholder {
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.img-placeholder svg {
  opacity: 0.5;
}

/* Zoom-Effekt fuer Fotos/Karten (nicht fuer Icons/Grafiken) */
.img-zoom {
  overflow: hidden;
  border-radius: var(--radius);
}
.img-zoom img {
  transition: transform 0.4s ease;
  display: block;
  width: 100%;
}
.img-zoom:hover img {
  transform: scale(1.04);
}

.img-placeholder.light {
  background: var(--teal-light);
  border-color: var(--teal-mid);
  color: var(--teal-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
  min-width: 220px;
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-ghost:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* Social Buttons */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--grey);
  transition: all 0.2s;
  text-decoration: none;
  min-width: 160px;
}
.btn-social:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.btn-social svg { flex-shrink: 0; }

/* ---- Leistungen (Service Cards) ---- */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}

.leistung-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.leistung-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--teal);
  border-radius: var(--radius) 0 0 var(--radius);
  transform: scaleY(0);
  transition: transform 0.25s;
}

.leistung-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal-mid);
  transform: translateY(-3px);
}

.leistung-card:hover::before {
  transform: scaleY(1);
}

.leistung-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.leistung-icon svg { color: var(--teal); }

.leistung-card h3 {
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.leistung-card p {
  color: var(--grey-light);
  font-size: 0.95rem;
}

/* ---- Über uns / Vorteile ---- */
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vorteile-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.vorteil-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.vorteil-icon svg { color: var(--teal); }
.vorteil-item p { margin: 0; font-size: 0.95rem; color: var(--grey-light); }
.vorteil-item strong { display: block; color: var(--grey); margin-bottom: 0.15rem; }

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1.5px solid var(--border);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--teal-mid);
}

.team-card h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.team-card .role { color: var(--teal); font-size: 0.85rem; font-weight: 600; font-family: var(--font-heading); }

/* ---- Kontakt-Sektion ---- */
.kontakt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.kontakt-card {
  background: var(--grey-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.kontakt-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.leistung-card { text-decoration: none; color: inherit; display: block; }
a.kontakt-card { text-decoration: none; color: inherit; display: flex; }
a.leistung-card:hover, a.kontakt-card:hover { border-color: var(--teal); }
.kontakt-card-icon svg { color: var(--teal); }
.kontakt-card h3 { font-size: 0.9rem; color: var(--grey-light); font-weight: 600; margin-bottom: 0.25rem; }
.kontakt-card p, .kontakt-card a { font-size: 1rem; color: var(--text); font-weight: 600; margin: 0; }
.kontakt-card a:hover { color: var(--teal); }

/* Öffnungszeiten */
.oz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.oz-table tr { border-bottom: 1px solid var(--border); }
.oz-table tr:last-child { border-bottom: none; }
.oz-table td { padding: 0.6rem 0; }
.oz-table td:last-child { text-align: right; color: var(--teal); font-weight: 600; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
footer {
  background: #1e1e1e;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
}

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

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

footer h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

footer ul li { margin-bottom: 0.5rem; }
footer ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
footer ul a:hover { color: var(--teal); }

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

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--grey-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--grey-light);
}

.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- Page Hero (Unterseiten) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; }

/* ---- Impressum / Datenschutz ---- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--grey);
}

.legal-content h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--grey);
}

.legal-content p, .legal-content li {
  font-size: 0.95rem;
  color: var(--grey-light);
}

.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .ueber-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* section padding handled by clamp() */

  nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    gap: 0.25rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  nav a { padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-cta { text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; min-width: 0; }
  .reviews-cta { flex-direction: column; align-items: stretch; }
}

/* ---- Kontakt-Seite: Formular + Infos Grid ---- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---- Kontaktformular ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,149,154,.12);
}
.form-group textarea { min-height: 160px; resize: vertical; }

.form-msg-ok { background: #e7f5e7; border: 1px solid #9fd39f; padding: 16px 20px; border-radius: var(--radius); color: #1a5c1a; margin-bottom: 1.5rem; }
.form-msg-err { background: #fef2f2; border: 1px solid #d39f9f; padding: 16px 20px; border-radius: var(--radius); color: #7f1d1d; margin-bottom: 1.5rem; }
.form-privacy { font-size: 0.82rem; color: var(--grey-light); margin-top: 1rem; line-height: 1.6; }
.form-privacy a { color: var(--teal); }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Responsive: Kontaktseite ---- */
@media (max-width: 768px) {
  .kontakt-grid { grid-template-columns: 1fr; gap: 2rem; }
  .kontakt-cards { grid-template-columns: 1fr !important; }
}

/* ---- Oeffnungsstatus Header ---- */
.oz-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.oz-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.oz-status.open { color: #16a34a; }
.oz-status.open .oz-dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.oz-status.closed { color: var(--grey-light); }
.oz-status.closed .oz-dot { background: var(--grey-light); }

@media (max-width: 768px) {
  .oz-status { display: none; }
}

/* ---- Scroll-to-Top ---- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, border-color 0.2s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.scroll-top svg { stroke: currentColor; }

@media (max-width: 600px) {
  .scroll-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }
}

/* ---- Hilfklassen ---- */
.text-center { text-align: center; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.bg-grey { background: var(--grey-bg); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---- Wellentrennlinie ---- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg { display: block; width: 100%; }
