/*
Theme Name: mb HealthCare Physiotherapy
Theme URI: https://mb-healthcare.de
Author: mb HealthCare
Author URI: https://mb-healthcare.de
Description: Professionelles Theme für die Physiotherapie-Praxis mb HealthCare. Vollständig anpassbar über den WordPress-Editor.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mb-healthcare
Tags: physiotherapy, health, business, responsive, custom-colors
*/

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

:root {
  --blue:       #0077b6;
  --blue-light: #00b4d8;
  --blue-dark:  #023e8a;
  --bg:         #f0f4f8;
  --bg-white:   #ffffff;
  --text:       #1a1a2e;
  --text-soft:  #4a5568;
  --border:     #dde3ea;
  --shadow:     0 4px 24px rgba(0,119,182,0.10);
  --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }

/* ===== NAV ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  transition: box-shadow 0.3s;
}

#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-branding img.custom-logo { height: 44px; width: auto; }
.site-branding .site-title-fallback {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.site-branding .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 16px;
}
.site-branding .brand-text { font-size: 17px; font-weight: 600; color: var(--text); }
.site-branding .brand-text em { font-style: italic; color: var(--blue); font-size: 13px; display: block; }

/* Nav menu */
#main-navigation ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

#main-navigation ul li a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

#main-navigation ul li a:hover { color: var(--blue); }

#main-navigation ul li.menu-cta > a {
  background: var(--blue);
  color: white;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

#main-navigation ul li.menu-cta > a:hover { background: var(--blue-dark); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; border: none; background: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero-section {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f4f8 40%, #dbeafe 100%);
  display: flex;
  align-items: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,119,182,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1; width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,119,182,0.10);
  color: var(--blue); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(36px, 5vw, 54px); line-height: 1.2;
  color: var(--text); margin-bottom: 20px;
}

.hero-text h1 span { color: var(--blue); }
.hero-text p { font-size: 17px; color: var(--text-soft); margin-bottom: 36px; }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--blue); color: white;
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 15px; transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); color: white; }

.btn-outline {
  background: transparent; color: var(--blue);
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 15px; border: 2px solid var(--blue); transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--blue); color: white; }

.hero-card {
  background: white; border-radius: 20px; padding: 36px;
  box-shadow: var(--shadow); width: 100%; max-width: 400px; margin: 0 auto;
}

.hero-card-logo { text-align: center; margin-bottom: 28px; }
.hero-card-logo img { max-width: 260px; width: 100%; border-radius: 8px; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--bg); border-radius: 10px; padding: 16px; text-align: center; }
.stat-number { font-size: 24px; font-weight: 700; color: var(--blue); display: block; }
.stat-label { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

/* ===== SECTIONS ===== */
section { padding: 90px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { display: inline-block; color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 40px); color: var(--text); margin-bottom: 16px; line-height: 1.25; }
.section-sub { font-size: 16px; color: var(--text-soft); max-width: 560px; }

/* ===== LEISTUNGEN ===== */
.services-section { background: var(--bg-white); }
.services-header { text-align: center; margin-bottom: 56px; }
.services-header .section-sub { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.service-card {
  background: var(--bg); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--border); transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; stroke: white; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.service-card p { font-size: 14.5px; color: var(--text-soft); line-height: 1.65; }

/* ===== KONTAKT ===== */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; align-items: start; }

.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 42px; height: 42px; background: white; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-text strong { display: block; font-size: 13px; color: var(--text-soft); font-weight: 500; margin-bottom: 2px; }
.contact-item-text span, .contact-item-text a { font-size: 15px; color: var(--text); text-decoration: none; }
.contact-item-text a:hover { color: var(--blue); }

.opening-hours { background: white; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); margin-top: 24px; }
.opening-hours h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--text-soft); }
.hours-row .time { color: var(--text); font-weight: 500; }

.contact-form-box { background: white; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-form-box h3 { font-size: 20px; font-weight: 600; margin-bottom: 24px; color: var(--text); }

/* WP Forms / CF7 base reset */
.wpcf7-form .form-group,
.contact-form .form-group { margin-bottom: 18px; }
.wpcf7-form label,
.contact-form label { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-soft); margin-bottom: 6px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; color: var(--text); background: var(--bg);
  transition: border-color 0.2s; outline: none;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue); background: white; }
.wpcf7-form textarea,
.contact-form textarea { resize: vertical; min-height: 110px; }
.wpcf7-form .wpcf7-submit,
.contact-form .btn-submit {
  width: 100%; background: var(--blue); color: white; border: none;
  padding: 13px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.wpcf7-form .wpcf7-submit:hover,
.contact-form .btn-submit:hover { background: var(--blue-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--text); color: #94a3b8;
  text-align: center; padding: 36px 5%; font-size: 13.5px;
}
#site-footer strong { color: white; }
#site-footer .footer-nav { margin-top: 14px; }
#site-footer .footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
#site-footer .footer-nav ul li a { color: #94a3b8; text-decoration: none; font-size: 13px; }
#site-footer .footer-nav ul li a:hover { color: white; }
#site-footer .footer-copy { margin-top: 14px; font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #main-navigation ul { display: none; }
  .hamburger { display: flex; }
  #main-navigation ul.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: white; padding: 20px 5%; border-top: 1px solid var(--border); gap: 14px;
  }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-text p { margin: 0 auto 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 60px 4%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* WordPress admin bar fix */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}
