/* R&R Physiotherapie — Stylesheet */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brown: #75482a;
  --brown-dark: #4a2d19;
  --brown-darker: #3a2213;
  --cream: #f3e0b8;
  --cream-light: #faf3e0;
  --white: #fffdf8;
  --sage: #7f9271;
  --sage-light: #e9efe3;
  --terracotta: #c17a4f;
  --terracotta-light: #f6e5d6;
  --shadow: 0 10px 30px rgba(74, 45, 25, 0.15);
  --shadow-lg: 0 24px 48px rgba(58, 34, 19, 0.16);
  --radius: 18px;
  --radius-lg: 26px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--brown-dark);
  background: var(--cream-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
  letter-spacing: -0.01em;
}

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

p {
  margin: 0 0 1em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--brown);
  color: var(--cream-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  margin-bottom: 1.2em;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 0 rgba(193, 122, 79, 0.7);
  animation: pulse 2.2s infinite;
  flex: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(193, 122, 79, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(193, 122, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(193, 122, 79, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--brown);
  color: var(--white);
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--brown);
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(74, 45, 25, 0.22);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 45, 25, 0.3);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn.btn-outline {
  background: transparent;
  color: var(--brown);
  box-shadow: none;
}

.btn.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
}

/* Reveal-on-scroll */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .eyebrow .dot {
    animation: none;
  }
}

/* Icon circles */

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brown);
  margin-bottom: 16px;
  flex: none;
}

.icon-circle.tone-sage {
  background: var(--sage-light);
  color: var(--sage);
}

.icon-circle.tone-terracotta {
  background: var(--terracotta-light);
  color: var(--terracotta);
}

.icon-circle .icon {
  width: 26px;
  height: 26px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 45, 25, 0.1);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(74, 45, 25, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brown-darker);
}

.brand img {
  width: 48px;
  height: 48px;
  transition: transform 0.25s ease;
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.05);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  font-weight: 600;
  padding: 0.5em 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--terracotta);
  transition: right 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--brown-darker);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
  opacity: 0.55;
}

.hero-blob.b1 {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, var(--cream) 0%, transparent 72%);
}

.hero-blob.b2 {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: 38%;
  background: radial-gradient(circle at 60% 40%, var(--sage-light) 0%, transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  z-index: 1;
}

.hero-text p.lead {
  font-size: 1.2rem;
  color: var(--brown);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 1.4em;
  margin-top: 2em;
  padding: 0;
  list-style: none;
}

.trust-pills li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brown-dark);
}

.trust-pills svg {
  width: 20px;
  height: 20px;
  color: var(--sage);
  flex: none;
}

.hero-image {
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 70%;
  height: 70%;
  background: var(--cream);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: auto auto -16px -16px;
  width: 46%;
  height: 46%;
  border: 3px solid var(--terracotta);
  border-radius: var(--radius-lg);
  z-index: 0;
  opacity: 0.5;
}

.hero-image img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.hero-image:hover img {
  transform: translateY(-4px);
}

.hero-float-card {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: -28px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
}

.hero-float-card .icon-circle {
  width: 40px;
  height: 40px;
  margin: 0;
}

.hero-float-card .icon-circle .icon {
  width: 20px;
  height: 20px;
}

.hero-float-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--brown-darker);
  line-height: 1.3;
}

.hero-float-card span {
  font-size: 0.75rem;
  color: var(--brown);
}

/* Section wave dividers */

.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}

.wave-divider path {
  fill: var(--white);
}

.wave-divider.flip path {
  fill: var(--brown-darker);
}

/* Info / cards section */

.info-section {
  background: var(--white);
  padding: 24px 0 72px;
  position: relative;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--cream-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-grid .card:hover,
.contact-info .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.card p {
  margin-bottom: 0.3em;
}

/* USP / "Warum wir" section */

.usp-section {
  background: var(--cream-light);
  padding: 72px 0;
}

.usp-section .section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.usp-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.usp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.usp-card .icon-circle {
  margin: 0 auto 16px;
}

.usp-card h4 {
  margin-bottom: 0.5em;
}

.usp-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Page header (inner pages) */

.page-header {
  position: relative;
  padding: 56px 0 32px;
  text-align: center;
  overflow: hidden;
}

.page-header .eyebrow {
  margin-bottom: 0.8em;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cream) 0%, transparent 70%);
  z-index: 0;
}

.page-header .container {
  z-index: 1;
}

/* Services grid */

.services-section {
  padding: 24px 0 72px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(74, 45, 25, 0.08);
  border-top: 3px solid var(--brown);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card.tone-sage {
  border-top-color: var(--sage);
}

.service-card.tone-terracotta {
  border-top-color: var(--terracotta);
}

.service-card .icon-circle {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.service-card .icon-circle .icon {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--brown);
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--terracotta-light);
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-top: 0.8em;
}

/* CTA banner (services page) */

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
}

.cta-banner h4 {
  color: var(--white);
  font-size: 1.4rem;
}

.cta-banner p {
  color: var(--cream);
  max-width: 44ch;
  margin-inline: auto;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--brown-darker);
  border-color: var(--white);
  margin-top: 0.6em;
}

.cta-banner .btn:hover {
  background: var(--cream);
  border-color: var(--cream);
}

/* Map */

.map-section {
  padding: 0 0 80px;
}

.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
}

.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.map-label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5em;
  z-index: 2;
}

.map-label svg {
  width: 18px;
  height: 18px;
  color: var(--terracotta);
}

/* Contact page */

.contact-section {
  padding: 24px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info .card {
  margin-bottom: 20px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  color: var(--brown-darker);
}

.form-group .req {
  font-weight: 400;
  color: var(--brown);
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid rgba(74, 45, 25, 0.25);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--brown-darker);
  background: var(--cream-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193, 122, 79, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.success {
  color: #2f6b3a;
}

.form-status.error {
  color: #a4342a;
}

/* Legal pages */

.legal-section {
  padding: 24px 0 80px;
}

.legal-section .container {
  max-width: 820px;
}

.legal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px clamp(24px, 5vw, 56px);
}

.legal-section h2 {
  margin-top: 1.6em;
}

.legal-section h3 {
  font-size: 1.1rem;
  margin-top: 1.2em;
}

/* Footer */

.site-footer {
  position: relative;
  background: var(--brown-darker);
  color: var(--cream);
  padding: 40px 0 24px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream-light);
  margin-bottom: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.site-footer h5 {
  color: var(--cream-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 1em;
}

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

.site-footer li {
  margin-bottom: 0.6em;
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 224, 184, 0.2);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(243, 224, 184, 0.7);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    height: 280px;
  }

  .hero-float-card {
    left: 12px;
    bottom: -18px;
  }

  .card-grid,
  .usp-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-light);
    border-bottom: 1px solid rgba(74, 45, 25, 0.1);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

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

  .main-nav li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(74, 45, 25, 0.08);
  }

  .main-nav a::after {
    display: none;
  }
}
