/* ============================================
   ABEND PRPraxis Düsseldorf — Design Tokens
   ============================================ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(2.5rem,   1rem    + 4vw,    4.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  /* Color Palette — Navy & Gold */
  --color-bg:          #FAFAF8;
  --color-surface:     #FFFFFF;
  --color-surface-2:   #F5F4F0;
  --color-border:      #E0DDD6;
  --color-text:        #1A1F2E;
  --color-text-muted:  #5A6178;
  --color-text-faint:  #9DA3B4;
  --color-navy:        #0D1B2A;
  --color-navy-light:  #1B2D45;
  --color-navy-mid:    #2A3F5F;
  --color-gold:        #C4A84C;
  --color-gold-light:  #D4BC6A;
  --color-gold-dark:   #A08B3A;
  --color-gold-bg:     #FAF6EA;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 27, 42, 0.12);

  /* Content */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg:          #0D1117;
  --color-surface:     #161B22;
  --color-surface-2:   #1C2333;
  --color-border:      #2A3444;
  --color-text:        #E2E4E8;
  --color-text-muted:  #9DA5B4;
  --color-text-faint:  #5C6370;
  --color-navy:        #0A1628;
  --color-navy-light:  #162238;
  --color-navy-mid:    #1E3050;
  --color-gold:        #D4BC6A;
  --color-gold-light:  #E2CF85;
  --color-gold-dark:   #B8A050;
  --color-gold-bg:     #1A1C14;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:          #0D1117;
    --color-surface:     #161B22;
    --color-surface-2:   #1C2333;
    --color-border:      #2A3444;
    --color-text:        #E2E4E8;
    --color-text-muted:  #9DA5B4;
    --color-text-faint:  #5C6370;
    --color-navy:        #0A1628;
    --color-navy-light:  #162238;
    --color-navy-mid:    #1E3050;
    --color-gold:        #D4BC6A;
    --color-gold-light:  #E2CF85;
    --color-gold-dark:   #B8A050;
    --color-gold-bg:     #1A1C14;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================
   Components
   ============================================ */

/* --- Header / Nav --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-6);
  transition: box-shadow 300ms ease;
}

[data-theme="dark"] .header {
  background: rgba(13, 17, 23, 0.92);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

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

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--color-gold);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--color-gold-dark);
}

.theme-toggle {
  padding: var(--space-1);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

.theme-toggle:hover {
  color: var(--color-gold);
}

.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
  color: var(--color-text);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.88) 0%,
    rgba(13, 27, 42, 0.65) 50%,
    rgba(13, 27, 42, 0.4) 100%
  );
}

/* Hero without image */
.hero--no-image {
  background: linear-gradient(
    160deg,
    #0D1B2A 0%,
    #1B2D45 40%,
    #162238 70%,
    #0D1B2A 100%
  );
  min-height: 75vh;
}

.hero--no-image .hero-content {
  text-align: center;
  max-width: var(--content-default);
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.hero--no-image h1 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--no-image .hero-desc {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--no-image .hero-btns {
  justify-content: center;
}

.hero--no-image .hero-eyebrow {
  margin-bottom: var(--space-6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  color: #fff;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.hero-desc {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
  margin-bottom: var(--space-8);
}

.hero-btns {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-gold);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-gold-light);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- Section Spacing --- */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto;
}

/* --- Leistungen (Services) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow 300ms ease, transform 300ms ease;
}

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

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-gold-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-gold-dark);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-price {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold-dark);
}

/* --- Behandlung (Treatment) --- */
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.treatment-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.treatment-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.treatment-steps {
  list-style: none;
  counter-reset: step;
}

.treatment-steps li {
  counter-increment: step;
  position: relative;
  padding-left: var(--space-12);
  padding-bottom: var(--space-6);
  border-left: 2px solid var(--color-border);
  margin-left: var(--space-5);
}

.treatment-steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.treatment-steps li::before {
  content: counter(step);
  position: absolute;
  left: calc(-1 * var(--space-5) - 1px);
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  color: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
}

.treatment-steps h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.treatment-steps p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Über Uns (About) --- */
.about-bg {
  background: var(--color-navy);
  color: #fff;
}

.about-bg .section-eyebrow {
  color: var(--color-gold-light);
}

.about-bg .section-title {
  color: #fff;
}

.about-bg .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.about-feature {
  text-align: center;
}

.about-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: rgba(196, 168, 76, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
}

.about-feature h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.about-feature p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  max-width: 30ch;
  margin: 0 auto;
}

/* --- Preise (Pricing) --- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

[data-theme="dark"] .pricing-price {
  color: var(--color-text);
}

.pricing-price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-6);
}

.pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pricing-features li::before {
  content: "✓";
  color: var(--color-gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Öffnungszeiten (Hours) --- */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.hours-table {
  width: 100%;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table td {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}

.contact-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--color-gold-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-gold-dark);
}

.contact-item h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-item a {
  color: var(--color-gold-dark);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* --- Terminbuchung (Booking) --- */
.booking-bg {
  background: var(--color-gold-bg);
}

[data-theme="dark"] .booking-bg {
  background: var(--color-surface-2);
}

.booking-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(196, 168, 76, 0.15);
}

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

.form-submit {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  margin-top: var(--space-4);
}

.form-submit:hover {
  background: var(--color-gold-dark);
}

/* --- Footer --- */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) var(--space-6) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 36ch;
  margin-top: var(--space-4);
}

.footer h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  max-width: var(--content-wide);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-gold-light);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  padding: var(--space-16) var(--space-6);
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:hover {
  color: var(--color-gold);
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: var(--text-xl);
  color: var(--color-text);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: 70vh;
  }

  .hero--no-image {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }

  .treatment-grid,
  .hours-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}
