/* ==========================================================================
   Private Physiotherapie Anja Gläßner — modernes Redesign
   ========================================================================== */

:root {
  --color-primary: #1b6b72;
  --color-primary-dark: #114952;
  --color-primary-light: #4fa8a0;
  --color-accent: #e2794f;
  --color-accent-dark: #c85f38;
  --color-bg: #f7f9f9;
  --color-surface: #ffffff;
  --color-text: #223034;
  --color-text-muted: #5b6b70;
  --color-border: #e3e9ea;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container-width: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(17, 73, 82, 0.08);
  --shadow-md: 0 10px 30px rgba(17, 73, 82, 0.12);
  --header-height: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

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

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

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: var(--color-surface); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.6em;
}

.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--color-text-muted); }
.section-intro { max-width: 680px; margin: 0 auto 2.5rem; }

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

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

.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.brand img { height: 2.6rem; width: auto; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--color-bg); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary-dark);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.is-active {
  background: var(--color-bg);
  color: var(--color-primary);
}
.nav-menu .btn-primary { margin-left: 0.4rem; color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.25rem 1.5rem;
    gap: 0.2rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a { padding: 0.85rem 0.5rem; font-size: 1.02rem; }
  .nav-menu .btn-primary { margin: 0.5rem 0 0; text-align: center; justify-content: center; }
}

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

.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,45,50,0.88), rgba(17,73,82,0.72));
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }
.hero-content h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.9); }

.page-header {
  position: relative;
  padding: 6.5rem 0 3.5rem;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,45,50,0.9), rgba(17,73,82,0.78));
}
.page-header .container { position: relative; z-index: 1; }
.page-header p { color: rgba(255,255,255,0.88); max-width: 620px; }

/* Grids & cards -------------------------------------------------------- */

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
}

.feature-card { text-align: left; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(27,107,114,0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.team-card { text-align: center; overflow: hidden; padding: 0; }
.team-photo { aspect-ratio: 4/5; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 1.5rem; }
.team-role { color: var(--color-accent-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.team-body ul { text-align: left; margin: 0.75rem 0 0; padding-left: 1.2em; color: var(--color-text-muted); font-size: 0.93rem; }
.team-body ul li { margin-bottom: 0.3em; }

.team-group { margin-bottom: 1rem; }
.team-group-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}
.team-schedule { text-align: left; margin-top: 0.9rem; }
.day-chips { display: flex; gap: 5px; margin-bottom: 0.5rem; }
.day-chip {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.day-chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.team-schedule p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }

.service-card { display: flex; flex-direction: column; gap: 0.5rem; }
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.service-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.service-card p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* Info / contact cards */
.info-card { display: flex; gap: 1rem; align-items: flex-start; }
.info-card .feature-icon { flex-shrink: 0; margin-bottom: 0; }
.info-card h3 { margin-bottom: 0.3em; }
.info-card p { color: var(--color-text-muted); margin: 0; }

/* Hours table --------------------------------------------------------- */

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  padding: 0.95rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.hours-table th {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { color: var(--color-text-muted); }

/* Gallery --------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  border: none;
  padding: 0;
  background: none;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.62), transparent);
  text-align: left;
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 20, 22, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* Notice / callout ------------------------------------------------------ */

.notice {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.notice-icon { font-size: 1.4rem; }
.notice h3 { margin-bottom: 0.25em; font-size: 1.05rem; }
.notice p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* Payment icon row -------------------------------------------------------- */

.pay-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  color: var(--color-text-muted); font-size: 0.95rem;
}
.pay-row span { display: inline-flex; align-items: center; gap: 0.4em; }

/* Form -------------------------------------------------------------------- */

.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4em; color: var(--color-primary-dark); }
input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-text);
}
input:focus, textarea:focus { outline: 2px solid var(--color-primary-light); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }

/* Map --------------------------------------------------------------------- */

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

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

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9em; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5em; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255,255,255,0.12);
  margin-right: 0.5rem;
}
.footer-social a:hover { background: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { opacity: 0.85; }
.footer-bottom-links a:hover { opacity: 1; }
.footer-bottom-links a:last-child {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255,255,255,0.25);
  opacity: 0.55;
  font-size: 0.8rem;
}
.footer-bottom-links a:last-child:hover { opacity: 0.9; }
.footer-bottom a { color: rgba(255,255,255,0.75); }

/* Legal text page ------------------------------------------------------------ */

.legal-text h3 { margin-top: 1.6em; font-size: 1.05rem; color: var(--color-primary-dark); }
.legal-text p { color: var(--color-text-muted); }
