/* Kampsteiner Schwaig – zentrales Designsystem v2
   Alle normalen Textfelder: exakt 82% cremefarbene Deckkraft.
   Hintergrundmotiv wird weiterhin von ks-hintergrund.js gesteuert.
   Zukünftige Unterseiten: dieses Stylesheet einbinden und
   ks-textfeld, ks-button und ks-seitentitel verwenden. */
:root {
  --ks-cream-rgb: 247, 242, 232;
  --ks-opacity: .82;
  --ks-panel-bg: rgba(var(--ks-cream-rgb), var(--ks-opacity));
  --ks-text: #184e2b;
  --ks-green: #2f4f2f;
  --ks-border: 3px solid #fff;
  --ks-radius: 22px;
  --ks-shadow: 0 8px 24px rgba(0,0,0,.12);
  --ks-font: Arial, Helvetica, sans-serif;
  --ks-body-size: clamp(15px,1.3vw,18px);
  --ks-button-radius: 14px;
}
/* Normaler Textbereich: gleiche Oberfläche, auch bei alten Seitentemplates */
:is(.ks-textfeld,.ks-card-light,.activity-hero,.activity-card,.activity-note,
.route-card,.ueberuns-card,.intro-text,.ks-zimmeraufteilung-feld,
.contact-panel,.hours-card,.speisen-card,.speisen-intro,
.intro-gb,.gb-form,.entry,.news-post,.news-card,.news-item,.empty-card,
.gallery-card,.zimmer-panel,.angebot-eintrag) {
  background: var(--ks-panel-bg) !important;
  background-image: none !important;
  color: var(--ks-text) !important;
  border: var(--ks-border);
  border-radius: var(--ks-radius);
  box-shadow: var(--ks-shadow);
}
/* Text in hellen Karten – alte weiße Schriftregeln übersteuern */
:is(.activity-hero,.activity-card,.activity-note,.route-card,.ueberuns-card,
.intro-text,.ks-zimmeraufteilung-feld,.contact-panel,.hours-card,
.speisen-card,.speisen-intro,.intro-gb,.gb-form,.entry,
.news-post,.news-card,.news-item,.empty-card,.gallery-card,.zimmer-panel)
:is(h1,h2,h3,h4,p,li,small,strong,.days,.time,.holiday,.detail,.route-description,
.room-info,.room-info p,.intro,.text,.meta) {
  color: var(--ks-text) !important;
}
/* Öffnungszeiten: deutliche Lesbarkeit auch in verschachtelten Elementen */
.hours-card :is(h2,h3,p,span,div,.days,.time,.holiday) {
  color: var(--ks-text) !important;
}
.hours-card .holiday {border-color:var(--ks-green) !important;}
/* Formulare und Fotos behalten ihre eigene Oberfläche */
:is(input,textarea,select) { background-color:#fff; }
:is(.intro-photo,.route-image,.news-photo) { background-color:transparent; }
/* Einheitliche Buttons – echte Buttons bleiben grün */
.ks-button, a.activity-route-button, a.route-button,
a.route-contact-button, a.zimmer-buchung-button,
a.main-button, .contact-buttons a, .gb-form button[type=submit] {
  background:var(--ks-green) !important;
  color:#fff !important;
  border:2px solid #fff;
  border-radius:var(--ks-button-radius);
  text-align:center;
}
.ks-button:hover, a.activity-route-button:hover, a.route-button:hover,
a.route-contact-button:hover, a.zimmer-buchung-button:hover {
  background:#fff !important; color:var(--ks-green) !important;
  border-color:var(--ks-green);
}
.ks-button:focus-visible, a:focus-visible, button:focus-visible {
  outline:3px solid #bd8d37;outline-offset:3px;
}
/* Einheitliche Titel, ohne die feste Kopfzeile zu verändern */
.ks-seitentitel,.page-title {
  color:var(--ks-text);
  text-align:center;
  -webkit-text-stroke:.6px #fff;
  paint-order:stroke fill;
  text-shadow:1px 1px 0 #fff,-1px -1px 0 #fff;
}
@media(max-width:700px) {
  :root {--ks-radius:18px;--ks-body-size:16px;}
  .ks-seitentitel,.page-title {font-size:clamp(24px,6vw,34px);}
}

/* Kontakt: Telefonnummern und direkte Links auf hellen Karten dunkelgrün.
   Nur die eigentlichen Aktionsbuttons bleiben weiß auf dunkelgrün. */
.contact-panel :is(.person,.direct) a,
.contact-panel :is(.person,.direct) a:visited,
.contact-panel .person strong { color:var(--ks-text) !important; }
.contact-panel :is(.person,.direct) a:hover,
.contact-panel :is(.person,.direct) a:focus-visible {
  color:var(--ks-green) !important; text-decoration:underline;
}
.contact-panel .social.contact-buttons a,
.contact-panel .social.contact-buttons a:visited {
  background:var(--ks-green) !important; color:#fff !important;
}
.contact-panel .social.contact-buttons a:hover,
.contact-panel .social.contact-buttons a:focus-visible {
  background:#fff !important; color:var(--ks-green) !important;
}
