/* ==================================================================
   MTCA Base — Kopf und Fuss
   Beschreibung: docs/DATEIEN.md

   Die Farben und Schriften sind die der Neugestaltungsseiten
   (/startseite-neu, /anfahrt-neu): Manrope/Bebas Neue, Ziegelorange,
   Parkgruen, Ballgelb. Alles unter .mtca-kopf, .mtca-fuss und
   .mtca-inhalt gescopet — Signify Pro bleibt unberuehrt, solange
   eine Seite die Vorlage nicht traegt.

   Signify Pro setzt seine Linkfarben sehr breit (a{color:...} mit
   hoher Spezifitaet). Deshalb stehen hier an den Stellen, an denen
   der Kopf sonst blau wuerde, bewusst !important — dieselbe Not wie
   im Inhalt der Neugestaltungsseiten.
   ================================================================== */

.mtca-kopf,
.mtca-fuss,
.mtca-inhalt {
  --mtca-orange: #C85E22;
  --mtca-orange-dunkel: #A34A19;
  --mtca-gruen: #5C6B43;
  --mtca-gelb: #DEEB3A;
  --mtca-anthrazit: #111111;
  --mtca-sand: #F0F0F0;
  --mtca-rand: #D8D3C8;
  --mtca-weiss: #FFFFFF;
  --mtca-schrift: "Manrope", -apple-system, system-ui, sans-serif;
  --mtca-akzent: "Bebas Neue", impact, sans-serif;
  --mtca-kopf-hoehe: 76px;
}

.mtca-nur-vorlesen {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.mtca-sprung {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--mtca-anthrazit); color: #fff !important;
  padding: 12px 20px; border-radius: 0 0 8px 0; font-family: var(--mtca-schrift);
}
.mtca-sprung:focus { left: 0; }

/* ------------------------------------------------------------------
   Kopf
   ------------------------------------------------------------------ */

.mtca-kopf {
  position: sticky; top: 0; z-index: 900;
  background: var(--mtca-weiss);
  border-bottom: 1px solid var(--mtca-rand);
  font-family: var(--mtca-schrift);
  transition: box-shadow .2s ease;
}
.mtca-kopf.is-geschoben { box-shadow: 0 6px 24px rgba(17,17,17,.08); }

/* Die Admin-Leiste von WordPress steht fest am oberen Rand und schneidet
   sonst die obere Haelfte des Kopfes ab — am 28.08.2026 auf /startseite-neu
   gesehen. Sie sieht nur, wer angemeldet ist; ein Besucher merkt davon
   nichts, und genau deshalb faellt es beim Bauen leicht durch. Unter 600 px
   scrollt die Leiste mit (position: absolute), dann ist top: 0 richtig. */
body.admin-bar .mtca-kopf { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .mtca-kopf { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar .mtca-kopf { top: 0; } }

.mtca-kopf *, .mtca-kopf *::before, .mtca-kopf *::after { box-sizing: border-box; }

/* Das Theme gibt jedem <li> ausser dem letzten margin-bottom: 14px. In einer
   Zeile mit align-items: center zaehlt dieser Rand zur Aussenhoehe mit: die
   Punkte MIT Rand werden samt Rand mittig gesetzt und sitzen dadurch 7px zu
   hoch, der letzte OHNE Rand sitzt als einziger richtig. Am 31.08.2026 auf
   /startseite-neu gemessen — 38px hohe Punkte in einer 52px hohen Zeile,
   fuenf bei top 12, "Kontakt/Impressum" bei top 19; in der Social-Zeile
   dasselbe, dort sass nur das Briefzeichen richtig.

   Der Rand ist auch im Fuss falsch: die Uebersicht dort setzt ihren Abstand
   ueber .mtca-fuss__spalte--nav li { padding: 3px 0 }, und der Rand kam
   obendrauf — beim letzten Eintrag aber nicht.

   Das `ul { margin: 0 }` weiter unten reicht dagegen nicht: es raeumt die
   Liste ab, nicht ihre Punkte. */
.mtca-kopf li, .mtca-fuss li { margin: 0; }

.mtca-kopf__bahn {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  height: var(--mtca-kopf-hoehe);
  display: flex; align-items: center; gap: 24px;
}

.mtca-kopf__marke {
  display: flex; align-items: center; flex: 0 0 auto;
  text-decoration: none !important; box-shadow: none !important;
}
.mtca-kopf__logo { display: block; height: 48px; width: auto; }
.mtca-kopf__wortmarke {
  font-family: var(--mtca-akzent); font-size: 26px; letter-spacing: .04em;
  color: var(--mtca-anthrazit) !important; text-transform: uppercase;
}

/* --- Navigation, Desktop --- */

.mtca-nav {
  display: flex; align-items: center; gap: 20px;
  margin-left: auto;
}
.mtca-nav ul { list-style: none; margin: 0; padding: 0; }

.mtca-nav__liste { display: flex; align-items: center; gap: 2px; }

.mtca-nav__punkt { position: relative; display: flex; align-items: center; }

.mtca-nav__link {
  display: block; padding: 10px 12px;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  color: var(--mtca-anthrazit) !important;
  text-decoration: none !important; box-shadow: none !important;
  border-radius: 8px; white-space: nowrap;
}
.mtca-nav__link:hover,
.mtca-nav__link:focus-visible { background: var(--mtca-sand); color: var(--mtca-orange) !important; }

.mtca-nav__punkt.is-aktuell > .mtca-nav__link { color: var(--mtca-orange) !important; }
.mtca-nav__liste > .mtca-nav__punkt.is-aktuell > .mtca-nav__link { box-shadow: inset 0 -3px 0 var(--mtca-gelb) !important; }

.mtca-nav__auf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-left: -6px;
  background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%;
  color: var(--mtca-anthrazit);
}
.mtca-nav__auf svg { fill: currentColor; transition: transform .18s ease; }
.mtca-nav__auf:hover { background: var(--mtca-sand); }
.mtca-nav__auf[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Untermenue: aufgeklappt per Hover (Maus) oder aria-expanded (Tastatur,
   Beruehrung). Beide Wege muessen dasselbe oeffnen — sonst kommt man mit
   der Tastatur an die zweite Ebene nicht heran. */
.mtca-nav__unter {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--mtca-weiss);
  border: 1px solid var(--mtca-rand); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(17,17,17,.12);
  padding: 8px; margin-top: 6px;
  display: none; z-index: 10;
}
.mtca-nav__punkt:hover > .mtca-nav__unter,
.mtca-nav__punkt:focus-within > .mtca-nav__unter,
.mtca-nav__auf[aria-expanded="true"] + .mtca-nav__unter { display: block; }

.mtca-nav__unter .mtca-nav__punkt { display: block; }
.mtca-nav__unter .mtca-nav__link { padding: 9px 12px; white-space: normal; }

/* Dritte Ebene klappt zur Seite auf. */
.mtca-nav__unter .mtca-nav__unter { top: -9px; left: calc(100% + 6px); margin-top: 0; }
.mtca-nav__unter .mtca-nav__punkt--kinder { display: flex; align-items: center; justify-content: space-between; }
.mtca-nav__unter .mtca-nav__punkt--kinder > .mtca-nav__link { flex: 1 1 auto; }
.mtca-nav__unter .mtca-nav__auf svg { transform: rotate(-90deg); }
.mtca-nav__unter .mtca-nav__auf[aria-expanded="true"] svg { transform: rotate(90deg); }

/* --- Social --- */

.mtca-social { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mtca-social__link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--mtca-anthrazit) !important;
  text-decoration: none !important; box-shadow: none !important;
  transition: background .15s ease, color .15s ease;
}
.mtca-social__link svg { fill: currentColor; }
.mtca-social__link:hover,
.mtca-social__link:focus-visible { background: var(--mtca-orange); color: #fff !important; }

.mtca-social--kopf { padding-left: 8px; border-left: 1px solid var(--mtca-rand); margin-left: 4px; }

/* --- Burger --- */

.mtca-burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--mtca-rand); border-radius: 10px;
  cursor: pointer; align-items: center; justify-content: center;
}
.mtca-burger__striche { display: block; width: 20px; }
.mtca-burger__striche i {
  display: block; height: 2px; background: var(--mtca-anthrazit); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.mtca-burger__striche i + i { margin-top: 5px; }
.mtca-burger[aria-expanded="true"] .mtca-burger__striche i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mtca-burger[aria-expanded="true"] .mtca-burger__striche i:nth-child(2) { opacity: 0; }
.mtca-burger[aria-expanded="true"] .mtca-burger__striche i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
   Kopf, schmal (Tablet und Telefon)
   ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .mtca-burger { display: flex; }

  .mtca-nav {
    position: fixed; top: var(--mtca-kopf-hoehe); left: 0; right: 0;
    max-height: calc(100vh - var(--mtca-kopf-hoehe));
    overflow-y: auto;
    display: block; margin: 0;
    background: var(--mtca-weiss);
    border-top: 1px solid var(--mtca-rand);
    padding: 12px 16px 32px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .mtca-kopf.is-offen .mtca-nav { transform: none; opacity: 1; visibility: visible; }

  .mtca-nav__liste { display: block; }
  .mtca-nav__punkt { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--mtca-sand); }
  .mtca-nav__link { flex: 1 1 auto; padding: 14px 4px; font-size: 17px; border-radius: 0; }
  .mtca-nav__liste > .mtca-nav__punkt.is-aktuell > .mtca-nav__link { box-shadow: none !important; }

  .mtca-nav__auf { width: 44px; height: 44px; margin: 0; flex: 0 0 auto; }

  /* Aufklappen nur noch per Schalter — Hover gibt es hier nicht, und ein
     :focus-within wuerde das Menue beim Durchtabben von selbst oeffnen. */
  .mtca-nav__unter {
    position: static; flex: 1 0 100%;
    border: 0; box-shadow: none; border-radius: 0;
    padding: 0 0 8px 16px; margin: 0;
    border-left: 2px solid var(--mtca-sand);
  }
  .mtca-nav__punkt:hover > .mtca-nav__unter,
  .mtca-nav__punkt:focus-within > .mtca-nav__unter { display: none; }
  .mtca-nav__auf[aria-expanded="true"] + .mtca-nav__unter { display: block; }
  .mtca-nav__unter .mtca-nav__unter { left: auto; top: auto; }
  .mtca-nav__unter .mtca-nav__auf svg { transform: none; }
  .mtca-nav__unter .mtca-nav__auf[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mtca-nav__unter .mtca-nav__punkt--kinder { flex-wrap: wrap; }

  .mtca-social--kopf { border-left: 0; margin: 16px 0 0; padding: 0; }
}

@media (max-width: 480px) {
  .mtca-kopf__bahn { padding: 0 16px; gap: 12px; }
  .mtca-kopf__logo { height: 40px; }
}

/* Solange das Menue offen ist, bleibt die Seite dahinter stehen. */
body.mtca-menue-offen { overflow: hidden; }

/* ------------------------------------------------------------------
   Inhalt

   Dieselbe Breite wie der Inhaltsbereich von Signify Pro. Seiten, die
   per width:100vw ausbrechen (die Neugestaltungsseiten tun das), bleiben
   davon unberuehrt — deshalb steht hier kein overflow, das den Ausbruch
   abschneiden wuerde.
   ------------------------------------------------------------------ */

.mtca-inhalt {
  font-family: var(--mtca-schrift);
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
/* Eine Seite, die ihr eigenes Layout ueber die volle Breite mitbringt,
   braucht diese Bahn nicht: Die 32 px oben und 64 px unten stehen dort als
   weisser Streifen zwischen Kopf, Inhalt und Fuss — am 28.08.2026 auf
   /startseite-neu gesehen. */
.mtca-inhalt:has(> .mtca-lp) { max-width: none; padding: 0; }

/* ------------------------------------------------------------------
   Fuss
   ------------------------------------------------------------------ */

.mtca-fuss {
  background: var(--mtca-anthrazit); color: #EDEDED;
  font-family: var(--mtca-schrift); font-size: 15px; line-height: 1.7;
}
.mtca-fuss *, .mtca-fuss *::before, .mtca-fuss *::after { box-sizing: border-box; }
.mtca-fuss a { color: #EDEDED !important; text-decoration: none !important; box-shadow: none !important; }
.mtca-fuss a:hover, .mtca-fuss a:focus-visible { color: var(--mtca-gelb) !important; }
.mtca-fuss ul { list-style: none; margin: 0; padding: 0; }
.mtca-fuss p { margin: 0 0 8px; }

.mtca-fuss__bahn {
  max-width: 1280px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.mtca-fuss__titel {
  font-family: var(--mtca-akzent); letter-spacing: .06em; text-transform: uppercase;
  font-size: 20px; color: var(--mtca-gelb); margin-bottom: 12px;
}
.mtca-fuss__name { font-weight: 600; font-size: 17px; }
.mtca-fuss__anschrift { color: #B7B7B7; }
.mtca-fuss__spalte--nav li { padding: 3px 0; }

.mtca-fuss .mtca-social__link { color: #EDEDED !important; }
.mtca-fuss .mtca-social__link:hover,
.mtca-fuss .mtca-social__link:focus-visible { background: var(--mtca-orange); color: #fff !important; }

.mtca-fuss__leiste {
  border-top: 1px solid rgba(255,255,255,.12);
}
.mtca-fuss__leiste p {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px;
  font-size: 13px; color: #9A9A9A;
}

@media (max-width: 860px) {
  .mtca-fuss__bahn { grid-template-columns: 1fr 1fr; }
  .mtca-fuss__spalte--verein { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mtca-fuss__bahn { grid-template-columns: 1fr; padding: 40px 16px 28px; }
  .mtca-inhalt { padding: 24px 16px 48px; }
}
