/* ============================================================
   VITA Flow – Stylesheet
   ============================================================ */

:root {
  --sage: #7aaa8a;
  --sage-light: #a8c9b4;
  --sage-pale: #e8f2ec;
  --sage-bg: #f2f8f4;
  --sand: #e8e0d4;
  --sand-light: #f5f1eb;
  --sand-dark: #c8b89a;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f0f0ee;
  --gray-300: #d1d0cc;
  --gray-500: #8a8880;
  --gray-700: #4a4844;
  --gray-900: #1e1d1b;
  --text: #2e2d2a;
  --text-muted: #7a7870;
  --border: rgba(0,0,0,.08);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,.10);
  --nav-h: 72px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --r: 14px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .9rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--sage); }
.section-sub {
  font-size: .97rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 500;
  border-radius: 100px;
  transition: background .22s, transform .18s, box-shadow .22s;
  box-shadow: 0 4px 16px rgba(122,170,138,.35);
}
.btn-primary:hover {
  background: #6a9a7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122,170,138,.4);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: .85rem 2rem;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  font-size: .88rem;
  font-weight: 500;
  border-radius: 100px;
  transition: border-color .2s, color .2s, background .2s, transform .18s;
}
.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage);
  background: var(--sage-pale);
  transform: translateY(-2px);
}

/* ── NAV ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--sage);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gray-900);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--sage); }
.nav-cta {
  margin-left: 1.5rem;
  padding: .6rem 1.5rem;
  background: var(--sage);
  color: white;
  font-size: .82rem;
  font-weight: 500;
  border-radius: 100px;
  transition: background .2s;
}
.nav-cta:hover { background: #6a9a7a; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: .5rem;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gray-700);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 1rem 2rem;
  font-size: .9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s, background .2s;
}
.mobile-menu a:hover { color: var(--sage); background: var(--sage-pale); }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  background: var(--sage-bg);
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
/* subtle texture circles */
#hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,170,138,.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.4rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--sage);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 1.4rem;
}
.hero-title em { font-style: italic; color: var(--sage); }
.hero-sub {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-trust {
  display: flex;
  gap: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.trust-item { display: flex; flex-direction: column; flex: 1; gap: .2rem; }
.trust-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--sage);
}
.trust-label { font-size: .75rem; color: var(--text-muted); }
.trust-divider { width: 1px; background: var(--border); align-self: stretch; margin: 0 2rem; }

.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative;
  height: 500px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-pill {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  display: flex; align-items: center; gap: .5rem;
  background: white;
  padding: .6rem 1rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--sage);
  box-shadow: var(--shadow-sm);
}
.hero-card-float {
  position: absolute;
  top: 2rem; right: -1.5rem;
  background: white;
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  box-shadow: var(--shadow-md);
  min-width: 200px;
}
.hcf-icon { color: var(--sage); }
.hcf-title { font-size: .82rem; font-weight: 500; color: var(--gray-900); }
.hcf-sub { font-size: .75rem; color: var(--text-muted); }

.hero-wave {
  margin-top: 2rem;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ── LEISTUNGEN ──────────────────────────────────────────── */
#leistungen { padding: 7rem 0; background: var(--white); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-light);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sage-pale);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: .7rem;
}
.service-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.card-link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--sage);
  transition: gap .2s;
}
.card-link:hover { text-decoration: underline; }

/* ── ÜBER UNS ────────────────────────────────────────────── */
#ueber-uns {
  padding: 7rem 0;
  background: var(--sand-light);
}
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.ueber-imgs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ui-main {
  grid-column: 1 / -1;
  height: 280px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
}
.ui-side {
  height: 180px;
  border-radius: var(--r);
  overflow: hidden;
  display: block;
}
.ueber-tag {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: white;
  border-radius: 100px;
  padding: .6rem 1.1rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--sage);
  box-shadow: var(--shadow-sm);
  align-self: center;
}
.ueber-p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.team-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.team-member { display: flex; align-items: center; gap: .75rem; }
.tm-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 500;
  border: 2px solid var(--sage-light);
}
.tm-name { font-size: .85rem; font-weight: 500; color: var(--gray-900); }
.tm-role { font-size: .75rem; color: var(--text-muted); }

/* ── TERMIN ──────────────────────────────────────────────── */
#termin { padding: 7rem 0; background: var(--white); }
.termin-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.termin-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--gray-500); font-size: .85em; }
input, select, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%238a8880' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122,170,138,.15);
}
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .5; }
textarea { resize: vertical; min-height: 90px; }
input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--sage);
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.form-checkbox a { color: var(--sage); text-decoration: underline; }
.form-checkbox label { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Akut Banner */
.akut-banner {
  display: none;
  align-items: flex-start;
  gap: .9rem;
  background: #fff8e6;
  border: 1.5px solid #f0c84a;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: .85rem;
  color: #7a5a10;
  line-height: 1.6;
}
.akut-banner.visible { display: flex; }
.akut-banner svg { color: #d4a010; flex-shrink: 0; margin-top: 1px; }
.akut-banner strong { display: block; font-weight: 500; margin-bottom: .2rem; }

/* Availability hint */
.avail-hint {
  font-size: .82rem;
  min-height: 1.2rem;
  padding: .2rem 0;
  transition: color .3s;
}
.hint-ok { color: var(--sage); }
.hint-warn { color: #c88a30; }

.form-error { font-size: .82rem; color: #c04040; min-height: 1rem; }
.btn-submit { width: 100%; padding: .95rem; border-radius: 100px; font-size: .9rem; margin-top: .3rem; }

.termin-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  border: 1.5px solid var(--sage-light);
  border-radius: var(--r-lg);
  background: var(--sage-pale);
}
.termin-success.visible { display: block; }
.success-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.termin-success h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gray-900);
  margin-bottom: .8rem;
}
.termin-success p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Sidebar */
.termin-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem;
}
.sc-icon { color: var(--sage); margin-bottom: .8rem; }
.sc-title {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: .8rem;
}
.sc-rows { display: flex; flex-direction: column; gap: .5rem; }
.sc-row {
  display: flex;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--text);
}
.sc-row.muted, .sc-row .muted { color: var(--gray-500); font-size: .8rem; }
.sc-row.single { display: block; font-size: .84rem; line-height: 1.7; }

/* ── KONTAKT/FOOTER ──────────────────────────────────────── */
#kontakt { background: var(--gray-900); }
.kontakt-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1rem;
}
.footer-logo .logo-mark { background: var(--sage); }
.kontakt-brand p { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.7; }
.kl-title {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1rem;
}
.kontakt-links { display: flex; flex-direction: column; gap: .6rem; }
.kontakt-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.kontakt-links a:hover { color: var(--sage-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 1.5rem 2rem;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.3); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .ueber-grid { grid-template-columns: 1fr; }
  .ueber-imgs { display: none; }
  .termin-wrap { grid-template-columns: 1fr; }
  .termin-sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1; min-width: 200px; }
  .kontakt-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 3rem 1.5rem 2rem; }
  #leistungen, #ueber-uns, #termin { padding: 5rem 0; }
  .section-inner { padding: 0 1.5rem; }
  .termin-form { padding: 1.5rem; }
  .kontakt-inner { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .trust-divider { margin: 0 1rem; }
}
