/* ==========================================================================
   Praxis für Ergotherapie – Inhaber Ralph Berger
   ========================================================================== */

:root {
  --color-blue-dark: #284b61;
  --color-blue: #3d7294;
  --color-blue-light: #e8f1f5;
  --color-green: #7cb342;
  --color-yellow: #f3c23a;
  --color-text: #333333;
  --color-text-light: #5a6670;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9fa;
  --max-width: 1140px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(40, 75, 97, 0.1);
  --font-base: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  color: var(--color-blue-dark);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

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

.btn {
  display: inline-block;
  background: var(--color-blue);
  color: #fff;
  padding: 0.85em 1.8em;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);
}

.btn.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

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

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(40, 75, 97, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link img {
  height: 56px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 26px;
  background: var(--color-blue-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--color-blue-dark);
  border-radius: 50px;
  transition: background 0.2s ease, color 0.2s ease;
}

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  min-height: clamp(260px, 42vw, 460px);
  background-image: url("../img/meer.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  min-height: clamp(260px, 42vw, 460px);
  background: linear-gradient(120deg, rgba(40, 75, 97, 0.88) 0%, rgba(61, 114, 148, 0.65) 55%, rgba(61, 114, 148, 0.35) 100%);
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.hero-content {
  max-width: 620px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}

.hero .container.hero-content {
  padding: 0 24px;
}

.hero h1 {
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  color: #eef4f7;
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-yellow);
  font-size: 0.9rem;
  margin-bottom: 0.8em;
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 700px;
  margin: 0 0 2.2rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--color-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  margin-bottom: 0.6em;
}

/* ---------- Grids / Cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-green);
}

.card h3 {
  margin-bottom: 0.4em;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.7em;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-green);
  font-weight: 700;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
}

.dot-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.5em;
}

.quote-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.45em;
  font-size: 1.05rem;
  color: var(--color-blue-dark);
  font-weight: 500;
}

/* ---------- Two-column split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 920 / 424;
}

/* ---------- Pull quote ---------- */

.pullquote {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--color-blue-dark);
  font-weight: 600;
  position: relative;
  padding: 0 20px;
}

.pullquote::before,
.pullquote::after {
  content: "“";
  color: var(--color-yellow);
  font-size: 1.1em;
  font-family: Georgia, serif;
  vertical-align: -0.1em;
}

.pullquote::after {
  content: "”";
}

/* ---------- Team ---------- */

.team-member {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  text-align: center;
  border-bottom: 4px solid var(--color-blue);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 14px;
}

.team-member .role {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* ---------- Info / contact boxes ---------- */

.info-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.info-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box h3:not(:first-child) {
  margin-top: 1.6em;
}

.info-box .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--color-blue-dark), var(--color-blue));
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: #e8f1f5;
  max-width: 560px;
  margin: 0 auto 1.6em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-blue-dark);
  color: #cfe0e9;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 0.9em;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.site-footer a:hover {
  color: var(--color-yellow);
}

.site-footer p {
  margin: 0 0 0.5em;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #9fb8c4;
  text-align: center;
}

.footer-credit {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- Legal pages ---------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content address {
  font-style: normal;
}

.legal-content .plain-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 0.4em;
}

.legal-content .plain-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-blue);
}

/* ---------- Map consent placeholder ---------- */

.map-consent {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 32px;
  background: var(--color-blue-light);
}

.map-consent p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.map-consent .btn {
  background: var(--color-blue);
}

.map-consent .btn:hover {
  background: var(--color-blue-dark);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 880px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 20px rgba(40, 75, 97, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 10px 24px 20px;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px 10px;
    border-radius: 6px;
  }

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

  .logo-link img {
    height: 42px;
  }

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

  .split.reverse .split-img {
    order: -1;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  section {
    padding: 46px 0;
  }

  .hero-overlay {
    padding: 32px 0;
  }
}
