/* ═══════════════════════════════════════════════════════════
   style.css – Marktgemeinde Taiskirchen im Innkreis
   Design angelehnt an innviertler.net
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand:         #1e4e8c;
  --brand-dark:    #0e2544;
  --brand-mid:     #2d6ab4;
  --brand-light:   #3a7bd5;
  --brand-pale:    #e8f0fa;
  --cream:         #f7f8fc;
  --text:          #1a2535;
  --muted:         #6b7a90;
  --border:        #dde3ed;
  --white:         #ffffff;
  --success:       #1a9e5c;
  --danger:        #d63030;
  --header-h:      480px;
  --header-h-sm:   280px;
  --nav-h:         54px;
  --container-max: 1320px;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--cream); color: var(--text); margin: 0; }
a { color: var(--brand); }
a:hover { color: var(--brand-mid); }
img { max-width: 100%; height: auto; }

/* ─── Logo Bar ───────────────────────────────────────────── */
.tk-logo-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: .65rem 0; position: relative; z-index: 200;
}
.tk-logo-bar .container-lg { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tk-logo-bar-right { display: flex; align-items: center; gap: 1rem; }
.tk-contact-info { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); }
.tk-contact-info i { color: var(--brand); }
.tk-admin-btn {
  background: var(--brand-dark); color: #fff; border-radius: 6px;
  padding: .3rem .85rem; font-size: .75rem; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: .35rem; transition: background .15s;
}
.tk-admin-btn:hover { background: var(--brand); color: #fff; }

/* ─── Slider Wrap ────────────────────────────────────────── */
.tk-slider-wrap {
  position: relative;
  height: var(--header-h);
  overflow: hidden;
  z-index: 10;
  /* Platz unten für Welle + Quicklinks-Überlappung */
  margin-bottom: -2px;
}

.tk-slider { position: absolute; inset: 0; }

.tk-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.tk-slide.active { opacity: 1; }

.tk-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.04)  0%,
    rgba(0,0,0,.08) 70%,
    rgba(255,255,255,.25) 100%
  );
  z-index: 1;
}

/* Geschwungene Welle am unteren Rand des Sliders */
.tk-slider-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  z-index: 5; line-height: 0; pointer-events: none;
}
.tk-slider-wave svg { width: 100%; height: 70px; display: block; }

.tk-slider-dots {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 10;
}
.tk-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  transition: background .2s, transform .2s; padding: 0;
}
.tk-dot.active { background: #fff; transform: scale(1.25); }

/* Header Content */
.tk-header-content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 2rem max(2rem, calc(50% - 680px));
  padding-bottom: 80px;
}

.tk-logo-link {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: #fff;
}
.tk-logo-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #fff;
  backdrop-filter: blur(4px);
}
.tk-logo-text { display: flex; flex-direction: column; }
.tk-logo-main { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; opacity: .85; }
.tk-logo-sub  { font-size: 1.55rem; font-weight: 800; letter-spacing: .01em; line-height: 1.15; }

.tk-slide-caption {
  margin-top: 1.5rem;
  color: rgba(255,255,255,.9);
}
.tk-slide-title    { font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.tk-slide-subtitle { font-size: 1rem; opacity: .8; margin-top: .3rem; }

/* Geschwungene Kurve */
.tk-header-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 6;
  line-height: 0;
}
.tk-header-wave svg { width: 100%; height: 80px; }

/* ─── Navigation ─────────────────────────────────────────── */
.tk-nav {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
  position: sticky; top: 0; z-index: 150;
  border-bottom: 2px solid var(--brand-pale);
}
.tk-nav-inner {
  display: flex; align-items: center;
  min-height: var(--nav-h);
}

.tk-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0;
  flex: 1; overflow: hidden;
}

.tk-nav-item { position: relative; }

.tk-nav-link {
  display: flex; align-items: center; gap: .25rem;
  padding: .7rem .75rem; font-size: .82rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tk-nav-link:hover, .tk-nav-item.active > .tk-nav-link {
  color: var(--brand); border-bottom-color: var(--brand);
}
.tk-nav-arrow { font-size: .65rem; margin-top: 1px; transition: transform .2s; }
.tk-nav-item:hover > .tk-nav-link .tk-nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.tk-dropdown {
  display: none; list-style: none; margin: 0; padding: .4rem 0;
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--border); border-top: 2px solid var(--brand);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 220px; z-index: 200;
}
.tk-nav-item:hover > .tk-dropdown { display: block; }
.tk-dropdown .tk-nav-link {
  font-size: .82rem; font-weight: 500; padding: .45rem 1.1rem;
  border-bottom: none; border-left: 3px solid transparent;
}
.tk-dropdown .tk-nav-item:hover > .tk-nav-link {
  color: var(--brand); border-left-color: var(--brand); background: var(--brand-pale);
}
/* Level 2 dropdown */
.tk-dropdown .tk-dropdown {
  top: 0; left: 100%; border-top: 1px solid var(--border);
}

/* Hamburger */
.tk-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem; margin-left: auto;
}
.tk-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .25s;
}
.tk-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.tk-hamburger.open span:nth-child(2) { opacity: 0; }
.tk-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.tk-breadcrumb {
  background: var(--brand-pale); border-bottom: 1px solid var(--border);
  padding: .5rem 0; font-size: .78rem;
}
.tk-breadcrumb .container-lg { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.tk-breadcrumb a { color: var(--brand); text-decoration: none; }
.tk-breadcrumb a:hover { text-decoration: underline; }
.tk-breadcrumb .sep { color: #b0bbcc; }
.tk-breadcrumb span { color: var(--muted); }

/* ─── Page Layout ────────────────────────────────────────── */
.tk-page {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - var(--nav-h));
  width: 100%;
}

.tk-page--full { max-width: 100%; }

.tk-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
}

/* Ohne Sidebar: Inhalt zentriert */
.tk-page--centered .tk-main {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 2.5rem;
}

.tk-main {
  flex: 1; min-width: 0;
  padding: 2rem 2.5rem;
  max-width: 900px;
}

.tk-main h1 {
  font-size: 1.75rem; font-weight: 800; color: var(--brand-dark);
  border-bottom: 3px solid var(--brand-pale);
  padding-bottom: .75rem; margin-bottom: 1.5rem;
}
.tk-main h2 { font-size: 1.3rem; color: var(--brand-dark); margin-top: 1.75rem; margin-bottom: .75rem; }
.tk-main h3 { font-size: 1.1rem; color: var(--brand); margin-top: 1.25rem; margin-bottom: .5rem; }
.tk-main p  { line-height: 1.75; margin-bottom: 1rem; }
.tk-main ul, .tk-main ol { line-height: 1.75; margin-bottom: 1rem; padding-left: 1.5rem; }
.tk-main table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .9rem; }
.tk-main td, .tk-main th { border: 1px solid var(--border); padding: .5rem .75rem; }
.tk-main th { background: var(--brand-pale); font-weight: 700; color: var(--brand-dark); }
.tk-main blockquote {
  border-left: 3px solid var(--brand-light); padding: .5rem 1.25rem;
  background: var(--brand-pale); border-radius: 0 8px 8px 0; margin: 1rem 0; color: #555;
}

/* Sidebar navigation */
.tk-sidenav { list-style: none; margin: 0; padding: 0; }
.tk-sidenav-title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); padding: .5rem 1.25rem .3rem;
}
.tk-sidenav a {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem 1.25rem; font-size: .84rem;
  color: var(--text); text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .12s;
}
.tk-sidenav a:hover { color: var(--brand); background: var(--brand-pale); border-left-color: var(--brand-light); }
.tk-sidenav a.active { color: var(--brand); background: var(--brand-pale); border-left-color: var(--brand); font-weight: 700; }
.tk-sidenav .sub a { padding-left: 2.25rem; font-size: .8rem; }

/* ─── Staff Cards ────────────────────────────────────────── */
.tk-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.tk-staff-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden; transition: box-shadow .2s;
}
.tk-staff-card:hover { box-shadow: 0 4px 20px rgba(30,78,140,.12); }
.tk-staff-photo {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--brand-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #b0c4de;
}
.tk-staff-photo img { width: 100%; height: 180px; object-fit: cover; display: block; }
.tk-staff-info { padding: 1rem; }
.tk-staff-name  { font-weight: 700; font-size: .95rem; color: var(--brand-dark); }
.tk-staff-title { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.tk-staff-funktion { font-size: .82rem; color: var(--text); margin-top: .4rem; }
.tk-staff-contact { margin-top: .6rem; display: flex; flex-direction: column; gap: .2rem; }
.tk-staff-contact a { font-size: .78rem; color: var(--brand); text-decoration: none; display: flex; align-items: center; gap: .4rem; }
.tk-staff-contact a:hover { text-decoration: underline; }

/* ─── Startseite Widgets ─────────────────────────────────── */
.tk-quicklinks {
  background: var(--white); border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  padding: 1.5rem 2rem; margin: -40px auto 2rem;
  max-width: 900px; position: relative; z-index: 10;
}
.tk-quicklinks-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1rem;
}
.tk-quicklink {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1rem .75rem; border-radius: 10px;
  background: var(--brand-pale); border: 1px solid #dae3f3;
  text-decoration: none; color: var(--brand-dark);
  font-size: .8rem; font-weight: 600; text-align: center;
  transition: all .15s;
}
.tk-quicklink:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(30,78,140,.2); }
.tk-quicklink i { font-size: 1.6rem; }

/* ─── Footer ─────────────────────────────────────────────── */
.tk-footer {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 70%);
  color: rgba(255,255,255,.85); margin-top: 4rem;
  position: relative;
}
.tk-footer-wave { line-height: 0; }
.tk-footer-wave svg { width: 100%; height: 60px; }
.tk-footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem; padding: 2rem 0;
}
.tk-footer h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .75rem; }
.tk-footer p, .tk-footer li { font-size: .82rem; line-height: 1.7; }
.tk-footer ul { list-style: none; padding: 0; margin: 0; }
.tk-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.tk-footer a:hover { color: #fff; text-decoration: underline; }
.tk-footer-logo { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 700; font-size: .95rem; }
.tk-footer-logo i { font-size: 1.75rem; }
.tk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0; font-size: .75rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
  color: rgba(255,255,255,.6);
}
.tk-footer-links { display: flex; gap: 1rem; }
.tk-footer-links a { color: rgba(255,255,255,.6); }
.tk-footer-links a:hover { color: rgba(255,255,255,.9); }

/* ─── Admin Edit Bar ─────────────────────────────────────── */
.tk-edit-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding: .6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .82rem; box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.tk-edit-bar i { font-size: .9rem; }
.tk-edit-path { opacity: .6; font-family: monospace; font-size: .75rem; }
.tk-edit-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 7px; padding: .35rem .9rem; font-size: .78rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: .35rem; text-decoration: none;
  transition: background .15s;
}
.tk-edit-btn:hover { background: rgba(255,255,255,.28); color: #fff; }
.tk-edit-btn.secondary { background: rgba(255,255,255,.08); }
.tk-edit-btn.danger { background: rgba(214,48,48,.3); border-color: rgba(214,48,48,.4); }
.tk-edit-btn.danger:hover { background: rgba(214,48,48,.5); }

/* Inline edit mode */
.inline-edit-active [data-editable] {
  outline: 2px dashed rgba(30,78,140,.4); border-radius: 4px;
  cursor: text; min-height: 30px;
}
.inline-edit-active [data-editable]:hover { outline-color: var(--brand); background: rgba(232,240,250,.3); }
.inline-edit-active [data-editable]:focus { outline-color: var(--brand); outline-style: solid; background: rgba(232,240,250,.5); }

/* ─── RTE Toolbar (inline) ───────────────────────────────── */
.tk-rte-toolbar {
  position: fixed; top: calc(var(--nav-h) + 8px); left: 50%; transform: translateX(-50%);
  background: var(--brand-dark); color: #fff; border-radius: 10px;
  padding: .4rem .6rem; display: flex; align-items: center; gap: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); z-index: 999;
  display: none;
}
.tk-rte-toolbar.visible { display: flex; }
.rte-b {
  background: none; border: none; color: rgba(255,255,255,.8);
  padding: 4px 8px; border-radius: 5px; cursor: pointer; font-size: .82rem;
  display: flex; align-items: center; transition: background .1s;
}
.rte-b:hover { background: rgba(255,255,255,.15); color: #fff; }
.rte-sep-w { width: 1px; height: 16px; background: rgba(255,255,255,.2); margin: 0 3px; }

/* ─── Utility ────────────────────────────────────────────── */
.tk-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,.05);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.tk-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 9px; border-radius: 20px;
}
.tk-badge-blue  { background: #dbeafe; color: #1e4e8c; }
.tk-badge-green { background: #dcfce7; color: #166534; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 992px) {
  :root { --header-h: var(--header-h-sm); }

  .tk-hamburger { display: flex; }
  .tk-nav-list {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .5rem 0;
  }
  .tk-nav-list.open { display: flex; }
  .tk-nav-link { padding: .6rem 1.25rem; border-bottom: none; border-left: 3px solid transparent; }
  .tk-nav-item.active > .tk-nav-link { border-left-color: var(--brand); border-bottom: none; }
  .tk-dropdown { position: static; box-shadow: none; border: none; border-top: none; border-left: 3px solid var(--brand-pale); margin-left: 1.25rem; border-radius: 0; }
  .tk-dropdown .tk-dropdown { margin-left: 1rem; }
  .tk-nav-item:hover > .tk-dropdown { display: none; }
  .tk-nav-item.dropdown-open > .tk-dropdown { display: block; }

  .tk-page { flex-direction: column; padding: 0; }
  .tk-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; margin-left: 0; padding-left: 1.25rem; }
  .tk-main { padding: 1.5rem 1.25rem; max-width: 100%; }
  .tk-page--centered .tk-main { padding: 1.5rem 1.25rem; }
  .tk-logo-sub { font-size: 1.2rem; }
  .tk-quicklinks { margin: -20px 1rem 1.5rem; padding: 1rem; }
}

@media (max-width: 576px) {
  .tk-main h1 { font-size: 1.4rem; }
  .tk-staff-grid { grid-template-columns: 1fr; }
  .tk-edit-bar { flex-direction: column; align-items: flex-start; gap: .4rem; }

  /* Quicklinks einzeilig scrollen */
  .tk-quicklinks {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: .75rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tk-quicklinks::-webkit-scrollbar { display: none; }
  .tk-quicklink { min-width: 72px; flex-shrink: 0; }

  /* Startseite: eine Spalte */
  .row.g-4 { --bs-gutter-x: 1rem; }

  /* News-Grid: eine Spalte */
  .tk-news-grid { grid-template-columns: 1fr; }

  /* Slider-Kontrollen links kleiner */
  .tk-slider-controls { left: .5rem; }
  .tk-slider-pause { width: 28px; height: 28px; font-size: .8rem; }
  .tk-dot { width: 8px; height: 8px; }

  /* Header kleiner */
  --header-h: 260px;

  /* Breadcrumb kleiner */
  .tk-breadcrumb { font-size: .75rem; }

  /* Admin-Bar */
  .tk-edit-bar .tk-edit-bar-btn span { display: none; }
}

/* ─── Logo Link ──────────────────────────────────────────── */
.tk-logo-link {
  display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--text);
}
.tk-logo-icon {
  width: 52px; height: 52px; background: var(--brand-pale);
  border: 2px solid var(--brand-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--brand); flex-shrink: 0;
}
.tk-logo-text { display: flex; flex-direction: column; }
.tk-logo-main { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: .03em; }
.tk-logo-sub  { font-size: 1.15rem; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }

/* ─── 4-Button Navigation ───────────────────────────────── */
.tk-nav {
  background: #2b2b2b;
  position: relative; z-index: 150;
  display: flex; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.tk-nav-4 {
  display: flex; align-items: stretch;
  width: 100%; max-width: var(--container-max);
  padding: 0 max(1rem, calc((100% - var(--container-max)) / 2));
  box-sizing: border-box;
}

.tk-n4 {
  flex: 1; position: relative;
  border-right: 1px solid rgba(255,255,255,.12);
}
.tk-n4:last-child { border-right: none; }

.tk-n4-btn {
  width: 100%; height: 100%; min-height: 50px;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .9rem 1rem; transition: background .15s;
}
.tk-n4-btn:hover    { background: rgba(255,255,255,.08); }
.tk-n4.active .tk-n4-btn { background: #c0392b; color: #fff; }
.tk-n4.drop-open .tk-n4-btn { background: #c0392b; color: #fff; }

.tk-n4-arrow {
  font-size: .55rem; transition: transform .2s; opacity: .7;
}
.tk-n4.drop-open .tk-n4-arrow { transform: rotate(180deg); }

/* Dropdown – einfache zentrierte Liste */
.tk-n4-drop {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 100%; width: max-content;
  background: #fff;
  border-top: 3px solid #c0392b;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  z-index: 300;
}
.tk-n4.drop-open .tk-n4-drop { display: block; }

/* Letztes Item: nach links öffnen */
.tk-n4:last-child .tk-n4-drop { left: auto; right: 0; }

.tk-n4-drop-grid {
  display: flex; flex-direction: column;
  padding: 0;
}

/* Jede Spalte = ein Abschnitt, flach dargestellt */
.tk-n4-col {
  padding: 0;
  border-right: none !important;
}

.tk-n4-col-head {
  display: block; font-weight: 600; font-size: .84rem;
  color: #333; text-decoration: none; text-align: center;
  padding: .7rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background .1s, color .1s;
  white-space: nowrap;
}
.tk-n4-col-head:hover { background: #f5f5f5; color: #c0392b; }

.tk-n4-col ul { list-style: none; padding: 0; margin: 0; }
.tk-n4-col ul li a {
  display: block; font-size: .84rem; color: #333;
  padding: .65rem 1.5rem; text-decoration: none; text-align: center;
  border-left: none !important; padding-left: 1.5rem !important;
  border-bottom: 1px solid #f0f0f0;
  transition: background .1s, color .1s;
  white-space: nowrap;
}
.tk-n4-col ul li:last-child a { border-bottom: none; }
.tk-n4-col ul li a:hover { background: #f5f5f5; color: #c0392b; }
.tk-n4-col ul li a.cur { color: #c0392b; font-weight: 600; background: #fdf0ef; }

/* Hamburger */
.tk-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: .7rem 1rem; margin-left: auto;
  width: 48px; height: 48px;
}
.tk-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: all .25s;
  transform-origin: center;
}
.tk-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(0, 7px); }
.tk-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.tk-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(0, -7px); }

/* Mobile Nav */
@media (max-width: 768px) {
  /* Logo-Bar kompakter */
  .tk-logo-bar { padding: .5rem 0; }
  .tk-logo-bar .container-lg { padding: 0 1rem; }
  .tk-logo-sub { font-size: 1rem !important; }
  .tk-wappen   { height: 48px !important; }
  .tk-contact-info { display: none !important; }
  .tk-search-form  { display: none !important; }

  /* Hamburger sichtbar */
  .tk-hamburger { display: flex; }

  /* Nav-Container */
  .tk-nav { position: relative; }
  .tk-nav-4 {
    display: none;
    flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    z-index: 500;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    border-top: 3px solid #c0392b;
  
  }
  @keyframes mobileNavIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .tk-nav-4.open { display: flex; }

  /* Hauptmenü-Buttons */
  .tk-n4 {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    flex: none;
  }
  .tk-n4-btn {
    width: 100%; justify-content: space-between;
    padding: .9rem 1.25rem;
    font-size: .9rem; font-weight: 700;
    min-height: 52px;
    color: var(--brand-dark) !important;
    background: #fff !important;
    letter-spacing: .04em;
  }
  .tk-n4-btn:hover { background: #f3f4f6 !important; }
  .tk-n4.active .tk-n4-btn { background: #c0392b !important; color: #fff !important; }
  .tk-n4.drop-open .tk-n4-btn { background: var(--brand-pale) !important; color: var(--brand-dark) !important; }

  /* Dropdown auf Mobile */
  .tk-n4-drop {
    display: none;
    position: static !important;
    box-shadow: none;
    border-top: none;
    border-left: 4px solid #c0392b;
    background: #f8faff;
    width: 100%;
  }
  .tk-n4.drop-open .tk-n4-drop { display: block; }
  .tk-n4-drop-grid { flex-direction: column; padding: 0; }
  .tk-n4-col { border-right: none; }

  /* Links im Dropdown */
  .tk-n4-col-head {
    color: var(--brand-dark) !important;
    text-align: left !important;
    padding: .8rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb;
    font-size: .86rem; font-weight: 700;
    min-height: 48px;
    display: flex; align-items: center;
    background: #eef2fb;
  }
  .tk-n4-col-head:hover { background: #dde6f7 !important; color: var(--brand) !important; }
  .tk-n4-col ul li a {
    color: #374151 !important;
    text-align: left !important;
    padding: .7rem 2rem !important;
    border-bottom: 1px solid #e9ecef !important;
    font-size: .84rem;
    min-height: 44px;
    display: flex; align-items: center;
    background: #f8faff !important;
  }
  .tk-n4-col ul li a:hover { color: var(--brand) !important; background: #eef2fb !important; }

  /* Flyout auf Mobile als statische Liste */
  .tk-flyout {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    border-top: none !important;
    background: #f0f4fb !important;
    border-left: 4px solid rgba(192,57,43,.35) !important;
    margin-left: 1rem;
  }
  .tk-n4-col-head.flyout-trigger::after  { display: none; }
  .tk-n4-col-head.flyout-trigger::before { display: none; }

  /* Pfeil dreht sich */
  .tk-n4-arrow { transition: transform .2s; color: var(--muted); }
  .tk-n4.drop-open .tk-n4-arrow { transform: rotate(180deg); color: var(--brand); }

  /* Schließen-Button oben rechts */
  .tk-hamburger.open span { background: var(--brand-dark); }
}

/* ─── Wappen ─────────────────────────────────────────────── */
.tk-wappen {
  height: 65px; width: auto; object-fit: contain;
}

.tk-logo-icon {
  width: 65px; height: 65px; background: var(--brand-pale);
  border: 2px solid var(--brand-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.85rem; color: var(--brand); flex-shrink: 0;
}

/* ─── Quicklinks – transparent, zwischen Slider und Inhalt ── */
.tk-quicklinks-wrap {
  display: flex; justify-content: center;
  position: relative; z-index: 20;
  padding: 0 1rem;
  margin-top: -55px;   /* ragt in die Welle hinein */
  margin-bottom: 2rem;
}
.tk-quicklinks {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem; max-width: 920px; width: 100%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255,255,255,.5);
}
.tk-quicklink {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .7rem .9rem; border-radius: 10px;
  background: rgba(232,240,250,.7);
  border: 1.5px solid rgba(218,227,243,.8);
  text-decoration: none; color: var(--brand-dark);
  font-size: .77rem; font-weight: 600; text-align: center;
  min-width: 85px; transition: all .15s;
}
.tk-quicklink:hover {
  background: var(--brand); color: #fff;
  border-color: var(--brand); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(30,78,140,.25);
}
.tk-quicklink i { font-size: 1.35rem; }
.tk-quicklink span { line-height: 1.2; }

@media (max-width: 600px) {
  .tk-quicklinks-wrap { margin-top: -40px; padding: 0 .5rem; }
  .tk-quicklinks { padding: .75rem; gap: .35rem; }
  .tk-quicklink { min-width: 68px; padding: .55rem .4rem; font-size: .68rem; }
  .tk-quicklink i { font-size: 1.1rem; }
}

/* ─── Suchfeld in Logo-Bar ───────────────────────────────── */
.tk-search-form {
  display: flex; align-items: center;
  background: #f4f6fa; border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.tk-search-form:focus-within {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,78,140,.1);
}
.tk-search-input {
  border: none; background: transparent; outline: none;
  padding: .4rem .75rem; font-size: .82rem; color: var(--text);
  width: 200px; font-family: inherit;
}
.tk-search-input::placeholder { color: var(--muted); }
.tk-search-btn {
  background: var(--brand); border: none; cursor: pointer;
  color: #fff; padding: .4rem .7rem; font-size: .9rem;
  display: flex; align-items: center; transition: background .15s;
}
.tk-search-btn:hover { background: var(--brand-mid); }

@media (max-width: 900px) {
  .tk-search-input { width: 140px; }
}
@media (max-width: 600px) {
  .tk-search-form { display: none; }
}

/* ─── Flyout-Untermenü ───────────────────────────────────── */
.tk-n4-col.has-flyout { position: relative; }

/* Standard-Trigger: Text zentriert, Pfeil RECHTS */
.tk-n4-col-head.flyout-trigger {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .7rem 1rem !important; text-align: center;
}
.tk-n4-col-head.flyout-trigger::after {
  content: '›'; font-size: 1.1rem; color: #aaa; flex-shrink: 0;
}

/* Hover/Aktiv rot */
.tk-n4-col-head.flyout-trigger:hover {
  background: #c0392b !important; color: #fff !important;
}
.tk-n4-col-head.flyout-trigger:hover::after { color: rgba(255,255,255,.8); }

/* Flyout-Panel – öffnet standardmäßig nach RECHTS */
.tk-flyout {
  display: none;
  position: absolute; top: 0; left: 100%; right: auto;
  min-width: 220px;
  background: #fff; border-top: 3px solid #c0392b;
  box-shadow: 4px 4px 20px rgba(0,0,0,.12);
  z-index: 400;
}
.tk-n4-col.has-flyout:hover .tk-flyout { display: block; }
.tk-flyout a {
  display: block; font-size: .84rem; color: #333;
  padding: .65rem 1.25rem; text-decoration: none; text-align: left;
  border-bottom: 1px solid #f0f0f0; white-space: nowrap;
  transition: background .1s, color .1s;
}
.tk-flyout a:last-child { border-bottom: none; }
.tk-flyout a:hover { background: #f5f5f5; color: #c0392b; }

/* Letztes Hauptmenü-Item: Flyout nach LINKS, Pfeil links */
.tk-n4:last-child .tk-n4-col-head.flyout-trigger {
  flex-direction: row-reverse;
}
.tk-n4:last-child .tk-n4-col-head.flyout-trigger::after {
  content: '‹';
}
.tk-n4:last-child .tk-flyout {
  left: auto; right: 100%;
  box-shadow: -4px 4px 20px rgba(0,0,0,.12);
}

/* ─── Startseiten-RTE-Editor (nur Admin) ────────────────── */
.tk-home-editor {
  display: flex; flex-direction: column; gap: .85rem;
}
.tk-home-editor-bar {
  display: flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; border-radius: 8px; padding: .6rem 1rem;
  font-size: .82rem; font-weight: 600;
}
.tk-he-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 6px; padding: .3rem .85rem;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: .35rem; transition: background .15s;
}
.tk-he-btn:hover { background: rgba(255,255,255,.28); }
.tk-he-btn.primary { background: rgba(26,158,92,.4); border-color: rgba(26,158,92,.5); }
.tk-he-btn.primary:hover { background: rgba(26,158,92,.6); }

.tk-he-field { display: flex; flex-direction: column; gap: .3rem; }
.tk-he-label { font-size: .74rem; font-weight: 700; color: #4a5568; letter-spacing: .02em; }

.tk-he-input {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: .45rem .75rem; font-size: .95rem; font-weight: 700;
  color: var(--brand-dark); outline: none; font-family: inherit;
  transition: border-color .15s;
}
.tk-he-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,78,140,.1); }

/* RTE Toolbar */
.tk-rte-bar {
  background: #f8f9fb; border: 1.5px solid var(--border); border-bottom: none;
  border-radius: 8px 8px 0 0; padding: 5px 8px;
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
}
.tk-rte-bar button {
  background: none; border: none; padding: 4px 8px; border-radius: 5px;
  font-size: .82rem; cursor: pointer; color: #4a5568; transition: background .1s;
  display: flex; align-items: center;
}
.tk-rte-bar button:hover { background: #e2e8f0; color: var(--brand-dark); }
.tk-rte-bar button.active { background: #dbeafe; color: var(--brand); }
.tk-rte-sep { width: 1px; height: 18px; background: var(--border); margin: 0 3px; flex-shrink: 0; }

.tk-rte-editor {
  border: 1.5px solid var(--border); border-radius: 0 0 8px 8px;
  min-height: 220px; max-height: 420px; overflow-y: auto;
  padding: .9rem 1rem; outline: none;
  font-size: .92rem; line-height: 1.75; background: #fff;
}
.tk-rte-editor:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,78,140,.1); }
.tk-rte-editor h2 { font-size: 1.25rem; color: var(--brand-dark); margin: 1rem 0 .4rem; }
.tk-rte-editor h3 { font-size: 1.05rem; color: var(--brand); margin: .8rem 0 .3rem; }
.tk-rte-editor blockquote { border-left: 3px solid var(--brand-light); padding: .4rem 1rem; background: var(--brand-pale); border-radius: 0 6px 6px 0; color: #555; font-style: italic; margin: .75rem 0; }
.tk-rte-editor table { border-collapse: collapse; width: 100%; margin: .75rem 0; font-size: .88rem; }
.tk-rte-editor td, .tk-rte-editor th { border: 1px solid var(--border); padding: .35rem .6rem; }
.tk-rte-editor th { background: var(--brand-pale); font-weight: 700; }
.tk-rte-editor:empty::before { content: 'Hier Text eingeben…'; color: #bcc5d0; }

.tk-rte-html {
  width: 100%; font-family: 'Consolas','Cascadia Code',monospace; font-size: .78rem;
  background: #0e1621; color: #a8d3ff; border: 1.5px solid var(--border);
  border-radius: 0 0 8px 8px; border-top: none;
  padding: .9rem; outline: none; resize: vertical; line-height: 1.6;
}

/* Bild-Dropzone */
.tk-he-dropzone {
  border: 2px dashed var(--border); border-radius: 8px;
  background: #f9fafc; padding: 1.1rem; text-align: center;
  cursor: pointer; color: var(--muted); font-size: .82rem;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  transition: border-color .2s, background .2s;
}
.tk-he-dropzone:hover, .tk-he-dropzone.drag {
  border-color: var(--brand); background: #eef3fb; color: var(--brand);
}
.tk-he-dropzone i { font-size: 1.6rem; }
.tk-he-dropzone small { color: var(--muted); font-size: .72rem; }

/* Inhalt für Besucher */
.tk-home-content p  { line-height: 1.75; margin-bottom: .85rem; }
.tk-home-content h2 { font-size: 1.25rem; color: var(--brand-dark); margin-top: 1.25rem; }
.tk-home-content h3 { font-size: 1.05rem; color: var(--brand); margin-top: 1rem; }
.tk-home-content ul, .tk-home-content ol { padding-left: 1.5rem; line-height: 1.75; }
.tk-home-content blockquote { border-left: 3px solid var(--brand-light); padding: .4rem 1rem; background: var(--brand-pale); border-radius: 0 6px 6px 0; color: #555; font-style: italic; margin: .75rem 0; }

/* ─── News Karten ────────────────────────────────────────── */
.tk-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tk-news-card {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden; transition: box-shadow .2s, transform .15s;
  display: flex; flex-direction: column;
}
.tk-news-card:hover { box-shadow: 0 6px 24px rgba(30,78,140,.12); transform: translateY(-2px); }
.tk-news-card.pinned { border-color: var(--brand-light); border-width: 2px; }

.tk-nc-img { height: 170px; overflow: hidden; }
.tk-nc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tk-news-card:hover .tk-nc-img img { transform: scale(1.04); }
.tk-nc-img-placeholder {
  height: 170px; background: var(--brand-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-light); font-size: 2.5rem;
}

.tk-nc-body { padding: .85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.tk-nc-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tk-nc-cat {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--brand-pale); color: var(--brand); border-radius: 20px; padding: 2px 8px;
}
.tk-nc-date { font-size: .73rem; color: var(--muted); display: flex; align-items: center; }
.tk-nc-pin { color: var(--brand); font-size: .75rem; }
.tk-nc-title { font-weight: 700; font-size: .92rem; color: var(--brand-dark); line-height: 1.35; }
.tk-nc-teaser { font-size: .8rem; color: var(--muted); line-height: 1.55; flex: 1; }

/* Admin-Buttons auf Karte */
.tk-nc-admin-btns {
  display: flex; gap: .35rem; margin-top: .5rem; opacity: 0;
  transition: opacity .15s;
}
.tk-news-card:hover .tk-nc-admin-btns { opacity: 1; }
.tk-nc-edit-btn {
  background: var(--cream); border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 8px; font-size: .75rem; cursor: pointer; color: var(--muted);
  transition: all .12s;
}
.tk-nc-edit-btn:hover { color: var(--brand); border-color: var(--brand); }
.tk-nc-edit-btn.del:hover { color: var(--danger); border-color: #f5c0c0; background: #fff5f5; }

/* Quick-Form */
.tk-news-add-btn {
  background: var(--brand); color: #fff; border: none; border-radius: 8px;
  padding: .4rem 1rem; font-size: .8rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: .35rem; transition: background .15s;
}
.tk-news-add-btn:hover { background: var(--brand-mid); }

.tk-news-form {
  background: #fff; border-radius: 12px;
  border: 2px solid var(--brand-light);
  box-shadow: 0 4px 20px rgba(30,78,140,.12);
  overflow: hidden; margin-bottom: 1.25rem;
}
.tk-news-form-head {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding: .65rem 1rem; font-size: .85rem; font-weight: 700;
  display: flex; align-items: center;
}
.tk-news-form-body { padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }

.tk-nf-row { display: flex; gap: .65rem; flex-wrap: wrap; }
.tk-nf-group { display: flex; flex-direction: column; gap: .25rem; }
.tk-nf-group.flex1 { flex: 1; min-width: 130px; }
.tk-nf-group.flex3 { flex: 3; min-width: 200px; }
.tk-nf-label { font-size: .73rem; font-weight: 700; color: #4a5568; }
.tk-nf-input {
  border: 1.5px solid var(--border); border-radius: 7px;
  padding: .4rem .65rem; font-size: .84rem; outline: none;
  font-family: inherit; width: 100%; transition: border-color .15s;
}
.tk-nf-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,78,140,.1); }
textarea.tk-nf-input { resize: vertical; }
select.tk-nf-input { cursor: pointer; }

.tk-nf-dropzone {
  border: 2px dashed var(--border); border-radius: 7px;
  background: #f9fafc; padding: .85rem; text-align: center;
  cursor: pointer; color: var(--muted); font-size: .8rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: border-color .2s, background .2s;
}
.tk-nf-dropzone:hover, .tk-nf-dropzone.drag { border-color: var(--brand); background: #eef3fb; color: var(--brand); }
.tk-nf-dropzone i { font-size: 1.25rem; }

.tk-news-save-btn {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; border: none; border-radius: 7px; padding: .45rem 1.1rem;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: .35rem; transition: opacity .15s;
}
.tk-news-save-btn:hover { opacity: .88; }

.tk-news-more-btn {
  background: var(--brand-pale); border: 1.5px solid var(--border);
  border-radius: 8px; padding: .5rem 1.5rem; font-size: .82rem;
  font-weight: 600; cursor: pointer; color: var(--brand); transition: all .15s;
}
.tk-news-more-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 600px) {
  .tk-news-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   BARRIEREFREIHEIT – WCAG 2.1 AA (WZG Österreich)
   ═══════════════════════════════════════════════════════════ */

/* ─── Skip-Link (WCAG 2.4.1) ─────────────────────────────── */
.tk-skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--brand-dark); color: #fff;
  padding: .75rem 1.5rem; font-weight: 700; font-size: .9rem;
  z-index: 9999; text-decoration: none; border-radius: 0 0 8px 0;
  transition: top .1s;
}
.tk-skip-link:focus {
  top: 0;
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

/* ─── Focus-Indikatoren (WCAG 2.4.7) ─────────────────────── */
/* Standard: alle interaktiven Elemente */
:focus-visible {
  outline: 3px solid #ffd700 !important;
  outline-offset: 2px !important;
  border-radius: 3px;
}
/* Bei Mausnutzung kein Outline */
.using-mouse :focus:not(:focus-visible) { outline: none !important; }

/* Nav-Buttons: Fokus gut sichtbar */
.tk-n4-btn:focus-visible {
  outline: 3px solid #ffd700 !important;
  outline-offset: -3px !important;
  background: rgba(255,255,255,.15) !important;
}
.tk-n4-drop a:focus-visible,
.tk-flyout a:focus-visible {
  outline: 3px solid var(--brand) !important;
  outline-offset: -2px !important;
  background: var(--brand-pale) !important;
  color: var(--brand-dark) !important;
}

/* Logo-Link Fokus */
.tk-logo-link:focus-visible {
  outline: 3px solid var(--brand) !important;
  border-radius: 8px;
}

/* Quicklinks Fokus */
.tk-quicklink:focus-visible {
  outline: 3px solid var(--brand-dark) !important;
  transform: translateY(-2px);
}

/* Buttons generell */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffd700 !important;
  outline-offset: 2px !important;
}

/* ─── Slider Pause-Button (WCAG 2.2.2) ───────────────────── */
.tk-slider-controls {
  position: absolute;
  left: 1.25rem;
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: .6rem; z-index: 10;
}
.tk-slider-pause {
  background: rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.6);
  color: #fff; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem; transition: background .15s;
  flex-shrink: 0;
}
.tk-slider-pause:hover { background: rgba(0,0,0,.65); }
.tk-slider-pause:focus-visible {
  outline: 3px solid #ffd700 !important;
  outline-offset: 2px !important;
}
/* Dots vertikal */
.tk-slider-controls .tk-slider-dots {
  position: static; transform: none;
  display: flex; flex-direction: column; gap: .5rem;
}

/* ─── Flyout Tastatur-Öffnung ────────────────────────────── */
.tk-n4-col.has-flyout:focus-within .tk-flyout,
.tk-flyout.flyout-kb-open { display: block; }

/* ─── WCAG Kontrast-Fixes ────────────────────────────────── */
/* Muted-Text: min. 4.5:1 auf weißem Hintergrund */
.text-muted, var(--muted) { color: #595f6b !important; }  /* war #6b7a90 = 4.3:1 → fix */
.tk-nc-date, .tk-nc-teaser { color: #595f6b; }
.tk-logo-main { color: #595f6b; }
.tk-he-label, .tk-nf-label { color: #374151; }

/* Nav-Buttons: Weißer Text auf #2b2b2b = 12.6:1 ✓ */
/* Aktiv-Rot #c0392b auf weiß = 5.9:1 ✓ */

/* Quicklink-Text: Brand-Dark auf pale = prüfen */
.tk-quicklink { color: #0e2544; }  /* brand-dark: 12.8:1 auf #e8f0fa ✓ */

/* Breadcrumb-Links */
.tk-breadcrumb a { color: #154a87; }  /* 5.2:1 auf hellblau ✓ */

/* Footer-Links */
.tk-footer a { color: rgba(255,255,255,.9); } /* >7:1 auf dunkelblau ✓ */

/* ─── Visually Hidden (Bootstrap-kompatibel) ────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Animationen reduzieren (WCAG 2.3.3) ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .tk-slide { transition: none !important; }
  .tk-news-card { transition: none !important; }
  .tk-quicklink { transition: none !important; transform: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ─── Hoher Kontrast Modus ──────────────────────────────── */
@media (forced-colors: active) {
  .tk-nav { border-bottom: 2px solid ButtonText; }
  .tk-n4-btn { border: 1px solid ButtonText; }
  .tk-skip-link { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* ─── News: Tabs im Editor ───────────────────────────────── */
.tk-nf-tabs {
  display: flex; gap: 0; margin: .75rem 0 0;
  border-bottom: 2px solid var(--border);
}
.tk-nf-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; padding: .5rem 1rem; font-size: .8rem; font-weight: 600;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: .35rem;
  transition: all .15s;
}
.tk-nf-tab:hover { color: var(--brand); }
.tk-nf-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tk-nf-tabpanel { padding-top: .85rem; }

/* ─── News: Galerie-Vorschau im Editor ───────────────────── */
.tk-nf-gallery-preview {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem;
}
.tk-nf-gal-item {
  position: relative; width: 80px; height: 80px; border-radius: 6px; overflow: hidden;
  border: 1.5px solid var(--border);
}
.tk-nf-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-nf-gal-item button {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,.55); border: none; color: #fff; border-radius: 50%;
  width: 20px; height: 20px; cursor: pointer; font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
}

/* ─── News: „Mehr lesen" Button ──────────────────────────── */
.tk-nc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--border);
}
.tk-nc-mehr-btn {
  background: none; border: none; color: var(--brand); font-size: .78rem;
  font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: .2rem;
  padding: 0; transition: color .15s;
}
.tk-nc-mehr-btn:hover { color: var(--brand-mid); }

/* ─── News: Detail-Bereich (aufgeklappt) ─────────────────── */
.tk-nc-detail {
  padding: 1rem 0 .25rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.tk-nc-content { font-size: .88rem; line-height: 1.75; color: var(--text); margin-bottom: 1rem; }
.tk-nc-content h2 { font-size: 1.1rem; color: var(--brand-dark); margin: 1rem 0 .4rem; }
.tk-nc-content h3 { font-size: .95rem; color: var(--brand); margin: .75rem 0 .3rem; }
.tk-nc-content table { border-collapse: collapse; width: 100%; font-size: .84rem; margin: .75rem 0; }
.tk-nc-content td, .tk-nc-content th { border: 1px solid var(--border); padding: .35rem .6rem; }
.tk-nc-content th { background: var(--brand-pale); font-weight: 700; }
.tk-nc-content a { color: var(--brand); }
.tk-nc-content blockquote { border-left: 3px solid var(--brand-light); padding: .4rem 1rem; background: var(--brand-pale); font-style: italic; margin: .75rem 0; border-radius: 0 6px 6px 0; }

/* ─── News: Galerie (Frontend) ───────────────────────────── */
.tk-nc-gallery { margin: .75rem 0; }
.tk-gal-main {
  position: relative; border-radius: 8px; overflow: hidden;
  background: #000; max-height: 340px;
}
.tk-gal-main img { width: 100%; max-height: 340px; object-fit: contain; display: block; }
.tk-gal-prev, .tk-gal-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background .15s;
}
.tk-gal-prev:hover, .tk-gal-next:hover { background: rgba(0,0,0,.7); }
.tk-gal-prev { left: 8px; }
.tk-gal-next { right: 8px; }
.tk-gal-thumbs {
  display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap;
}
.tk-gal-thumbs img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 5px;
  cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .15s;
}
.tk-gal-thumbs img.active, .tk-gal-thumbs img:hover { border-color: var(--brand); opacity: 1; }

/* ─── News: Video ────────────────────────────────────────── */
.tk-nc-video { margin: .75rem 0; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; }
.tk-nc-video iframe { width: 100%; height: 100%; border: none; }

/* ─── News: PDF ──────────────────────────────────────────── */
.tk-nc-pdf-wrap { margin: .75rem 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tk-nc-pdf-bar {
  display: flex; align-items: center; gap: .75rem;
  background: #fff5f5; padding: .65rem 1rem; font-size: .85rem; font-weight: 600;
  color: #c0392b;
}
.tk-nc-pdf-bar i { font-size: 1.25rem; }
.tk-nc-pdf-bar span { flex: 1; color: #333; }
.tk-nc-pdf-dl {
  background: #c0392b; color: #fff; border-radius: 6px;
  padding: .3rem .85rem; font-size: .78rem; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: .35rem;
  transition: background .15s;
}
.tk-nc-pdf-dl:hover { background: #a93226; color: #fff; }
.tk-pdf-viewer { background: #f0f0f0; }

/* ─── Inline-Editor Erweiterungen ───────────────────────────── */
.rte-select {
  border: none; background: rgba(255,255,255,.12); color: #fff;
  border-radius: 5px; font-size: .75rem; padding: 3px 5px;
  cursor: pointer; outline: none;
}
.rte-select option { background: #2b2b2b; color: #fff; }
.rte-select:hover { background: rgba(255,255,255,.2); }

.rte-save {
  background: rgba(26,158,92,.3) !important;
  color: #7de0a0 !important;
  font-weight: 700 !important;
}
.rte-save:hover { background: rgba(26,158,92,.5) !important; }

/* Bild-Optionsleiste */
#inlineImgBar {
  position: fixed; bottom: 48px; left: 50%; transform: translateX(-50%);
  z-index: 99998;
  background: #1a1a2e; border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 4px 8px;
  display: none; align-items: center; gap: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: tkSlideUp .15s ease;
}

/* Bild im Editor anklickbar */
[data-editable] img {
  cursor: pointer;
  transition: outline .1s;
}
[data-editable] img:hover,
[data-editable] img.selected { outline: 3px solid var(--brand); }

/* Upload-Fortschritt Animation */
@keyframes tkSlideUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Bild im Inhalt (Frontend) */
.tk-main figure {
  margin: 1rem 0; text-align: center;
}
.tk-main figure img {
  max-width: 100%; height: auto; border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.tk-main figure figcaption {
  font-size: .78rem; color: var(--muted); margin-top: .35rem; font-style: italic;
}

/* ─── Mitarbeiter: Abteilungs-Überschrift ────────────────── */
.tk-staff-dept-title {
  font-size: 1rem; font-weight: 800; color: var(--brand-dark);
  border-bottom: 3px solid var(--brand-pale);
  padding-bottom: .5rem; margin-bottom: 1rem;
  display: flex; align-items: center;
  text-transform: uppercase; letter-spacing: .05em;
}
.tk-staff-dept-title i { color: var(--brand); }

/* ─── Politik-Karte: größer, Badge hervorheben ───────────── */
.tk-staff-card--politik {
  text-align: center;
  border-top: 4px solid var(--brand);
}
.tk-staff-card--politik .tk-staff-photo {
  width: 110px; height: 110px; margin: 0 auto .75rem;
  border-radius: 50%;
  border: 3px solid var(--brand-pale);
}
.tk-staff-card--politik .tk-staff-photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.tk-staff-card--politik .tk-staff-photo i {
  font-size: 3rem; line-height: 110px; color: var(--brand-light);
}
.tk-staff-card--politik .tk-staff-name {
  font-size: 1rem; font-weight: 800;
}
.tk-staff-card--politik .tk-staff-contact {
  justify-content: center;
}

/* Funktion-Badge für Politik */
.tk-staff-badge {
  display: inline-block;
  background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; border-radius: 20px;
  padding: .2rem .75rem; margin-bottom: .5rem;
}
.tk-staff-desc {
  font-size: .8rem; color: var(--muted); margin-top: .35rem;
  line-height: 1.5;
}

/* ─── Personen-Karte: Zuständigkeiten ───────────────────────── */
.tk-staff-akadem { font-size: .78rem; color: var(--muted); margin-right: .25rem; }

.tk-pz-wrap { margin-top: .6rem; border-top: 1px solid var(--border); padding-top: .5rem; }

.tk-pz-toggle {
  background: none; border: 1.5px solid var(--border); border-radius: 7px;
  color: var(--brand); font-size: .75rem; font-weight: 700;
  padding: .35rem .75rem; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: .3rem; justify-content: center;
  transition: all .15s;
}
.tk-pz-toggle:hover { background: var(--brand-pale); border-color: var(--brand); }
.tk-pz-arrow { margin-left: auto; transition: transform .2s; font-size: .65rem; }

.tk-pz-list {
  margin-top: .5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.tk-pz-list[hidden] { display: none; }

.tk-pz-item {
  background: var(--brand-pale); border-radius: 7px;
  padding: .55rem .75rem; font-size: .78rem;
}
.tk-pz-name {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--brand-dark);
}
.tk-pz-name i { color: var(--brand); font-size: .85rem; flex-shrink: 0; }
.tk-pz-desc {
  color: var(--muted); margin-top: .25rem; line-height: 1.55;
  font-size: .76rem; padding-left: 1.25rem;
}
.tk-pz-link {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--brand); font-size: .74rem; font-weight: 600;
  text-decoration: none; margin-top: .3rem; padding-left: 1.25rem;
}
.tk-pz-link:hover { color: var(--brand-mid); text-decoration: underline; }

	/* Sidebar auf Mobile ausblenden */
@media (max-width: 768px) {
  .tk-sidebar {
    display: none;
  }
}