/*
Theme Name: Auerbach
Theme URI: https://auerbach-es.de
Author: Martin Auerbach
Author URI: https://auerbach-es.de
Description: Navigator für Lebensqualität & Präsenz – Coaching, Mediation & Immobilien
Version: 1.0.0
License: Private
Text Domain: auerbach
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:    #1a3a5c;
  --blue-mid:     #2563a8;
  --blue-light:   #dbeafe;
  --blue-accent:  #3b82f6;

  --green-dark:   #1a3d2b;
  --green-mid:    #2d7a4f;
  --green-light:  #dcfce7;
  --green-accent: #22c55e;

  --neutral-50:   #fafafa;
  --neutral-100:  #f4f4f5;
  --neutral-200:  #e4e4e7;
  --neutral-500:  #71717a;
  --neutral-700:  #3f3f46;
  --neutral-900:  #18181b;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 900px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.65;
  font-size: 17px;
}

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--neutral-700); }
a  { color: inherit; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,250,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--neutral-200);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.nav-brand {
  font-size: .9rem;
  font-weight: 600;
  color: var(--neutral-900);
  text-decoration: none;
  margin-right: auto;
  letter-spacing: -.01em;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  color: var(--neutral-700);
}

.nav-link:hover { background: var(--neutral-100); color: var(--neutral-900); }
.nav-link.blue  { color: var(--blue-mid); }
.nav-link.blue:hover  { background: var(--blue-light); color: var(--blue-dark); }
.nav-link.green { color: var(--green-mid); }
.nav-link.green:hover { background: var(--green-light); color: var(--green-dark); }
.nav-link.active-blue  { background: var(--blue-light);  color: var(--blue-dark); }
.nav-link.active-green { background: var(--green-light); color: var(--green-dark); }

/* ── Layout ── */
.page-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Hero ── */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 56px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 16px;
}

.hero h1 { margin-bottom: 20px; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--neutral-500);
  max-width: 620px;
  margin-bottom: 10px;
}

/* ── Divider ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--neutral-200);
  margin: 56px 0;
}

/* ── Cards grid ── */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card.blue  { background: var(--blue-light);  border: 1px solid #bfdbfe; }
.card.green { background: var(--green-light); border: 1px solid #bbf7d0; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}

.card.blue  .card-icon { background: var(--blue-mid); }
.card.green .card-icon { background: var(--green-mid); }

.card h2 { font-size: 1.3rem; line-height: 1.2; }
.card.blue  h2 { color: var(--blue-dark); }
.card.green h2 { color: var(--green-dark); }
.card p { font-size: .95rem; color: var(--neutral-700); flex-grow: 1; }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 4px;
}

.card.blue  .card-cta { color: var(--blue-mid); }
.card.green .card-cta { color: var(--green-mid); }
.card-cta svg { transition: transform .15s; }
.card:hover .card-cta svg { transform: translateX(4px); }

/* ── Quote ── */
.quote-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 56px 0;
  text-align: center;
}

.profile-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-md);
  border: 3px solid white;
}

blockquote {
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--neutral-700);
  letter-spacing: -.01em;
  max-width: 560px;
}

blockquote::before { content: '\201E'; font-size: 3rem; color: var(--neutral-200); line-height: 0; vertical-align: -.4em; margin-right: 4px; }
blockquote::after  { content: '\201C'; font-size: 3rem; color: var(--neutral-200); line-height: 0; vertical-align: -.4em; margin-left: 4px; }

/* ── Sub-page hero ── */
.sub-hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 48px;
}

.sub-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.sub-hero.blue .badge  { background: var(--blue-light);  color: var(--blue-dark); }
.sub-hero.green .badge { background: var(--green-light); color: var(--green-dark); }
.sub-hero h1 { margin-bottom: 18px; }
.sub-hero.blue  h1 { color: var(--blue-dark); }
.sub-hero.green h1 { color: var(--green-dark); }
.sub-hero .lead { font-size: 1.1rem; color: var(--neutral-500); max-width: 580px; }

/* ── Feature list ── */
.feature-section { margin-bottom: 48px; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  font-size: .97rem;
  color: var(--neutral-700);
}

.feature-list li .dot {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  margin-top: 2px;
}

.blue-theme  .dot { background: var(--blue-light);  border: 2px solid var(--blue-accent); }
.green-theme .dot { background: var(--green-light); border: 2px solid var(--green-accent); }

/* ── Closing note ── */
.closing-note {
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 48px;
}

.blue-theme  .closing-note { background: var(--blue-light);  border: 1px solid #bfdbfe; }
.green-theme .closing-note { background: var(--green-light); border: 1px solid #bbf7d0; }
.closing-note p { font-size: 1.05rem; }
.blue-theme  .closing-note p { color: var(--blue-dark); }
.green-theme .closing-note p { color: var(--green-dark); }

/* ── CTA button ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  margin-top: 16px;
}

.cta-btn:hover { opacity: .88; transform: translateY(-1px); }
.blue-theme  .cta-btn { background: var(--blue-mid);  color: white; }
.green-theme .cta-btn { background: var(--green-mid); color: white; }

/* ── Contact ── */
.contact-section {
  border-top: 1px solid var(--neutral-200);
  padding-top: 56px;
}

.contact-section h2 { margin-bottom: 8px; }
.contact-section .sub { color: var(--neutral-500); margin-bottom: 32px; font-size: .97rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 520px;
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--neutral-200);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}

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

.contact-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-card.email .contact-icon { background: var(--blue-light); }
.contact-card.phone .contact-icon { background: var(--green-light); }
.contact-label { font-size: .75rem; color: var(--neutral-500); font-weight: 500; }
.contact-value { font-size: .9rem; font-weight: 600; }
.contact-card.email .contact-value { color: var(--blue-mid); }
.contact-card.phone .contact-value { color: var(--green-mid); }

/* ── Footer ── */
footer {
  margin-top: 72px;
  padding: 24px;
  text-align: center;
  font-size: .8rem;
  color: var(--neutral-500);
  border-top: 1px solid var(--neutral-200);
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--neutral-900); }

/* ── Accent bar ── */
.accent-bar { height: 3px; width: 100%; }
.accent-bar.blue  { background: linear-gradient(90deg, var(--blue-mid), var(--blue-accent)); }
.accent-bar.green { background: linear-gradient(90deg, var(--green-mid), var(--green-accent)); }

/* ── Hero deco ── */
.hero-deco { display: flex; gap: 6px; margin-bottom: 28px; }
.hero-deco span { height: 4px; border-radius: 2px; }
.hero-deco .deco-blue  { width: 32px; background: var(--blue-accent); }
.hero-deco .deco-green { width: 20px; background: var(--green-accent); }
.hero-deco .deco-gray  { width: 12px; background: var(--neutral-200); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero, .sub-hero   { animation: fadeUp .5s ease both; }
.cards             { animation: fadeUp .5s .15s ease both; }
.quote-section     { animation: fadeUp .5s .25s ease both; }
.feature-section   { animation: fadeUp .5s .1s ease both; }
.closing-note      { animation: fadeUp .5s .2s ease both; }

.fade-up { animation: fadeUp .55s ease both; }
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .15s; }
.fade-up:nth-child(3) { animation-delay: .25s; }
.fade-up:nth-child(4) { animation-delay: .35s; }
.fade-up:nth-child(5) { animation-delay: .45s; }

/* ── Mobile nav ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background .15s;
  margin-left: 4px;
}

.nav-hamburger:hover { background: var(--neutral-100); }
.nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--neutral-700); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links { display: flex; align-items: center; gap: 8px; }

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

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(250,250,250,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--neutral-200);
    padding: 12px 16px 16px;
    gap: 6px;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }
  .nav-link { padding: 10px 16px; border-radius: var(--radius-md); font-size: .95rem; }
  nav { position: sticky; }
}

/* ── Legal page ── */
.legal-section {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--neutral-200);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 { margin-bottom: 24px; color: var(--neutral-900); }
.legal-section h3 { margin: 28px 0 10px; color: var(--neutral-700); font-size: 1rem; }
.legal-section p  { margin-bottom: 12px; font-size: .95rem; line-height: 1.7; }
.legal-section ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.legal-section ul li { font-size: .95rem; color: var(--neutral-700); margin-bottom: 6px; line-height: 1.6; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--neutral-500);
  text-decoration: none;
  padding: 40px 0 0;
  transition: color .15s;
}
.legal-back:hover { color: var(--neutral-900); }
.anchor-offset { scroll-margin-top: 80px; }
