/* =============================================
   KG Kettner – Hugo Theme
   Pixel-genau nach Original
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --w: 1200px;
  --orange: #FF9F00;
  --text:   #000000;
  --muted:  #939393;
  --border: #cccccc;
  --serif:  'PT Serif', 'Times New Roman', serif;
  --sans:   'PT Serif', 'Times New Roman', serif;
}

body {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
}

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

::selection { color: #fff; background: var(--orange); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background-color: var(--orange); }
::-webkit-scrollbar-thumb:hover { background-color: #ffb233; }


/* ── WRAPPER ── */
.site-wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  background: #ffffff;
}

/* ── HEADER ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  gap: 0;
}

/* Logo: nur das PNG (enthält bereits Text + Kreis) */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 24px;
  text-decoration: none;
}

.logo-img {
  width: 380px;   /* Original-Breite laut Kettner-CSS */
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── NAVIGATION ── */
.nav-toggle { display: none; }

.nav-menu { flex: 1; }

.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-menu ul li { position: relative; }

.nav-menu ul li a {
  display: block;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: normal;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

/* Animierter oranger Balken (magic-line) — 4px hoch wie Original */
.nav-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 4px;
  background: var(--orange);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-menu ul li a:hover {
  color: var(--orange);
  text-decoration: none;
}

.nav-menu ul li a:hover::after {
  transform: scaleX(1);
}

/* Aktive Seite: oranger Text + dauerhafter Balken */
.nav-menu ul li a.active {
  color: var(--orange);
}

.nav-menu ul li a.active::after {
  transform: scaleX(1);
}

/* ── HERO ── */
.hero { width: 100%; overflow: hidden; }

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* ── STARTSEITE: Icon-Grid ── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.icon-card {
  padding: 36px 40px;
}

.icon-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.icon-card-header img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}

.icon-card-header h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: normal;
  color: var(--muted);
  letter-spacing: 1px;
}

.icon-card p {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
}

/* ── CONTENT-SEITEN: kurzer horizontaler Strich oben links ── */
.page-layout {
  display: block;
}

.page-content {
  position: relative;
  padding: 30px 30px 40px 240px;
}

/* Kurzer horizontaler oranger Strich oben links, neben dem Titel */
.page-content::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 44px;
  width: 175px;
  height: 4px;
  background: var(--orange);
}

.page-content h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 3px;
  color: #000;
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-content > p {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* Unterüberschriften (h2) auf Content-Seiten */
.page-content h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #000;
  margin: 18px 0 6px;
}

/* Bullet-Listen mit Original-bullet-Bild */
.page-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.page-content ul li {
  font-family: var(--serif);
  font-size: 18px;
  padding: 2px 0 2px 24px;
  position: relative;
  line-height: 1.5;
}

.page-content ul li::before {
  content: '▪';
  color: var(--orange);
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 14px;
}

/* ── AKKORDEON (einheitlich, alle Seiten) ── */

/* Eigenständiger Block (Heilpraktiker) */
.acc-block {
  margin: 16px 0;
}

.acc-block .acc-item {
  /* keine Trennlinien – einheitlich mit Physio-Seite */
}

/* Listen-Variante (Physio) */
.acc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
}

.acc-li {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  padding: 2px 0 2px 24px;
  position: relative;
}

.acc-li::before {
  content: '\25AA';
  color: var(--orange);
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 14px;
}

/* Akkordeon-Kopf (Button) */
.acc-head {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Heilpraktiker-Block: schwarzer Titel, Pfeil daneben */
.acc-block .acc-head {
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #000;
  display: inline-flex;
  width: auto;
  justify-content: flex-start;
  gap: 8px;
}

/* Physio-Liste: Button inline im li */
.acc-head-inline {
  display: inline-flex;
  width: auto;
  justify-content: flex-start;
  font-size: 18px;
  font-weight: normal;
  color: var(--text);
  padding: 0;
  gap: 6px;
}

.acc-title { flex: 0 1 auto; }

/* Pfeil (arrow) */
.acc-arrow {
  color: var(--orange);
  font-size: 16px;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.25s ease;
}

.acc-block .acc-arrow {
  font-size: 18px;
}

/* Pfeil dreht sich beim Öffnen */
.acc-item.open .acc-arrow {
  transform: rotate(180deg);
}

/* Aufklappbarer Bereich — sanfte Animation via max-height */
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.acc-item.open .acc-panel {
  max-height: 600px;
}

.acc-panel-inner {
  padding: 6px 0 14px 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
}

.acc-panel-inner p { margin-bottom: 8px; }
.acc-panel-inner p:last-child { margin-bottom: 0; }

/* Freistehende h2-Überschriften (Manuelle Therapie etc.) */
.h2-item {
  margin: 14px 0 6px 0;
}

.h2-static {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #000;
}

.acc-head-h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #000;
  display: inline-flex;
  width: auto;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
}

.acc-head-h2 .acc-arrow {
  font-size: 18px;
}

/* ── KARTE ── */
.map-wrap { margin-top: 20px; }
.map-wrap img {
  width: 600px;
  height: auto;
  border: 1px solid var(--border);
  display: block;
}

/* ── FOOTER ── */
.site-footer {
  background: #fff;
  padding: 0 30px;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  padding-top: 10px;
  border-top: 1px solid #939393;
  font-family: var(--sans);
  font-size: 14px;
  color: #939393;
}

.footer-inner a { color: #939393; font-size: 14px; }
.footer-inner a:hover { color: var(--orange); text-decoration: none; }

/* =============================================
   RESPONSIVE – Tablet & Handy
   ============================================= */

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 20px;
  }

  .logo-img { width: 280px; height: auto; }
  .logo-link { margin-right: 20px; }

  /* Hamburger-Button einblenden */
  .nav-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 20px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
  }

  /* Nav zunächst ausgeblendet, per Klick einblendbar */
  .nav-menu {
    flex: 1 0 100%;
    display: none;
    margin-top: 10px;
  }
  .nav-menu.open { display: block; }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu ul li a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }

  /* Unterstrich-Animation auf Mobile durch einfachen Rand ersetzen */
  .nav-menu ul li a::after { display: none; }
  .nav-menu ul li a.active {
    color: var(--orange);
    border-left: 3px solid var(--orange);
    padding-left: 12px;
  }

  .hero-image { height: 340px; }

  /* Icon-Grid: 1 Spalte */
  .icon-grid { grid-template-columns: 1fr; }
  .icon-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .icon-card:last-child { border-bottom: none; }

  /* Content: Strich nach oben über Titel, Einrückung weg */
  .page-content {
    padding: 44px 30px 40px 30px;
  }
  .page-content::before {
    left: 30px;
    top: 30px;
    width: 130px;
  }
  .page-content h1 {
    padding-top: 0;
    font-size: 30px;
    letter-spacing: 1px;
    word-break: break-word;
  }
}

/* ── HANDY (≤ 600px) ── */
@media (max-width: 600px) {
  body { font-size: 14px; }

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

  .hero-image { height: 220px; }

  .page-content {
    padding: 28px 18px 32px 18px;
  }
  .page-content::before {
    left: 18px;
    width: 90px;
  }
  .page-content h1 { font-size: 23px; letter-spacing: 0.5px; }

  .icon-card { padding: 24px 20px; }

  /* Footer linksbündig umbrechen lassen */
  .footer-inner {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  /* Akkordeon-Titel auf Handy: umbrechen erlauben, Pfeil bleibt dran */
  .acc-block .acc-head,
  .acc-head-h2 {
    font-size: 18px;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
  }
  .acc-head-inline { font-size: 16px; }
}
