/* SUN TCM Praxis — site styles */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f6f7f3;
  --color-bg-soft-2: #e0ead2;
  --color-text: #2a2a28;
  --color-text-soft: #5c5c58;
  --color-border: #e4e4de;

  --color-primary: #8cc63e;
  --color-primary-dark: #507222;
  --color-primary-darker: #344b16;
  --color-primary-light: #d8e4c8;
  --color-accent: #f7941d;
  --color-accent-dark: #a85e06;
  --color-accent-darker: #774304;

  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1140px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(30, 40, 20, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}
.section-lead {
  color: var(--color-text-soft);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--color-primary-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-darker); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.btn-outline:hover { background: var(--color-primary-dark); color: #fff; border-color: var(--color-primary-dark); }
.btn-text {
  color: var(--color-primary-dark);
  font-weight: 600;
  padding: 0;
}
.btn-text::after { content: '→'; margin-left: 6px; transition: margin-left 0.15s ease; }
.btn-text:hover::after { margin-left: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img { height: 52px; width: auto; }
.brand-title { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title .line1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  white-space: nowrap;
}
.brand-title .line2 {
  font-weight: 600;
  color: var(--color-text-soft);
  white-space: nowrap;
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.main-nav ul li { white-space: nowrap; }
.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
}
.lang-switch a.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.main-nav .lang-switch a.active { border-bottom: none; }
.lang-switch-item { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 68px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo img {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.hero-copy p { color: var(--color-text-soft); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-badge {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  flex: none;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 48px 0 36px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--color-text-soft); }
.breadcrumb a:hover { color: var(--color-primary-dark); }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block.soft { background: var(--color-bg-soft); }
section.block.tight { padding: 40px 0; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; color: var(--color-primary-dark); }
.card-body p { color: var(--color-text-soft); font-size: 0.92rem; margin: 0; flex: 1; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 22px;
  background: var(--color-bg);
}
.trust-item h3 { color: var(--color-primary-dark); font-size: 1rem; margin-bottom: 6px; }
.trust-item p { color: var(--color-text-soft); font-size: 0.9rem; margin: 0; }

/* ---------- Treatment methods (Behandlung page) ---------- */
.method {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 100px;
}
.method:last-child { border-bottom: none; }
.method-image img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.method h3 { color: var(--color-primary-dark); font-size: 1.35rem; }

/* ---------- Condition tags ---------- */
.condition-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
  margin-top: 8px;
}
.condition-group h4 {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.condition-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.condition-group li {
  font-size: 0.83rem;
  color: var(--color-text-soft);
  background: var(--color-bg-soft-2);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- Pricing table ---------- */
.price-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}
.price-table th:nth-child(1),
.price-table td:nth-child(1) { width: 58%; }
.price-table th:nth-child(2),
.price-table td:nth-child(2) { width: 20%; }
.price-table th:nth-child(3),
.price-table td:nth-child(3) { width: 22%; }
.price-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding: 26px 0 10px;
  font-size: 1.05rem;
}
.price-table caption:first-of-type { padding-top: 0; }
.price-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 12px;
}
.price-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--color-border);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td.price { text-align: right; font-weight: 700; color: var(--color-primary-dark); white-space: nowrap; }
.price-table td.time { color: var(--color-text-soft); white-space: nowrap; }
.price-note { color: var(--color-text-soft); font-size: 0.88rem; margin-top: 18px; }

/* ---------- Booking table ---------- */
.booking-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}
.booking-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding: 26px 0 10px;
  font-size: 1.05rem;
}
.booking-table caption:first-of-type { padding-top: 0; }
.booking-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 12px;
}
.booking-table th:nth-child(1), .booking-table td:nth-child(1) { width: 44%; }
.booking-table th:nth-child(2), .booking-table td:nth-child(2) { width: 15%; }
.booking-table th:nth-child(3), .booking-table td:nth-child(3) { width: 17%; }
.booking-table th:nth-child(4), .booking-table td:nth-child(4) { width: 24%; }
.booking-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.booking-table tr:last-child td { border-bottom: none; }
.booking-table td.price { text-align: right; font-weight: 700; color: var(--color-primary-dark); white-space: nowrap; }
.booking-table td.time { color: var(--color-text-soft); white-space: nowrap; }
.booking-table td.book-cell { text-align: right; }
.btn-book {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.btn-book:hover { background: var(--color-primary-darker); }
.booking-note { color: var(--color-text-soft); font-size: 0.88rem; margin-top: 18px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.info-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .label { font-weight: 700; color: var(--color-primary-dark); min-width: 92px; flex: none; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--color-border); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  margin-top: 28px;
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-soft);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--color-text-soft); margin-top: 10px; }
.form-status { font-size: 0.88rem; margin-top: 12px; display: none; }
.form-status.visible { display: block; }

/* ---------- News ---------- */
.news-post {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 32px;
  background: var(--color-bg);
}
.news-post time { font-size: 0.82rem; color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.6px; }
.news-post h2 { margin-top: 8px; color: var(--color-primary-dark); }

/* ---------- Career note ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 44px;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.insurer-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.insurer-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: var(--color-bg-soft-2);
  border-radius: 999px;
  padding: 6px 14px;
}

.career-note {
  background: var(--color-bg-soft-2);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-top: 12px;
}
.career-note h3 { margin-bottom: 8px; }
.career-note p { margin: 0; color: var(--color-text-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: #1d2414;
  color: #dbe3d3;
  padding: 60px 0 26px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand-title { display: flex; flex-direction: column; line-height: 1.05; }
.footer-brand-title .line1 { font-weight: 800; font-size: 1.15rem; color: var(--color-accent); white-space: nowrap; }
.footer-brand-title .line2 { font-weight: 600; color: #c3cdba; white-space: nowrap; margin-top: 4px; }
.site-footer p { color: #c3cdba; font-size: 0.9rem; line-height: 1.7; }
.site-footer h4 {
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin: 0 0 16px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { color: #c3cdba; font-size: 0.92rem; }
.footer-list a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 44px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #9aa88f;
}
.footer-bottom a { color: #9aa88f; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
/* Nav switches to the hamburger menu earlier than the content grids below,
   so header items never get squeezed into wrapping mid-label. */
@media (max-width: 1060px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
  }
  .site-header.nav-open .main-nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--color-border);
    gap: 14px;
  }
  .lang-switch-item {
    margin-left: 0;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
  }
}
@media (max-width: 980px) {
  .condition-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 320px; margin: 0 auto; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 160px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .method-image { order: -1; }
  .condition-groups { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .site-header .container { height: 72px; padding: 0 16px; }
  .brand { gap: 10px; }
  .brand img { height: 42px; }
  .brand-title { max-width: 250px; }
  .brand-title .line1 { font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; }
  /* Fixed (not width-matched) size here — matching this to line1's own
     small mobile width would make a long subtitle illegibly tiny. */
  .brand-title .line2 { font-size: 9.5px; letter-spacing: 0.2px; white-space: normal; margin-top: 3px; }
  .lang-switch { gap: 3px; }
  .lang-switch a { padding: 5px 8px; }
  .hero { padding: 44px 0 40px; }
  section.block { padding: 46px 0; }
}

/* Booking table: the fixed 4-column layout is too tight for narrow phones
   (long treatment names + a "Jetzt buchen" button all need real room), so
   it becomes a stacked card per row instead. */
@media (max-width: 640px) {
  .booking-table thead { display: none; }
  .booking-table, .booking-table tbody, .booking-table tr, .booking-table td {
    display: block;
  }
  .booking-table th:nth-child(1), .booking-table td:nth-child(1),
  .booking-table th:nth-child(2), .booking-table td:nth-child(2),
  .booking-table th:nth-child(3), .booking-table td:nth-child(3),
  .booking-table th:nth-child(4), .booking-table td:nth-child(4) {
    width: auto;
  }
  .booking-table tr {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .booking-table td {
    padding: 0;
    border-bottom: none;
  }
  .booking-table td:nth-child(1) {
    font-weight: 600;
    margin-bottom: 6px;
  }
  .booking-table td:nth-child(2),
  .booking-table td:nth-child(3) {
    display: inline-block;
    text-align: left;
  }
  .booking-table td:nth-child(2)::after { content: '\00b7'; margin: 0 6px; color: var(--color-text-soft); }
  .booking-table td:nth-child(4) {
    margin-top: 12px;
  }
  .btn-book { display: block; width: 100%; text-align: center; padding: 11px 18px; }
}
