/*
Theme Name: Tierarztpraxis Kalkuhl
Theme URI: https://www.tierarztpraxis-kalkuhl.de/
Author: OpenAI
Description: Rekonstruiertes WordPress-Theme für die Tierarztpraxis Kalkuhl, basierend auf dem bisherigen Joomla/Astroid-Layout.
Version: 1.4.1
Text Domain: tierarztpraxis-kalkuhl
*/

:root {
  --tpk-turquoise: #00a19a;
  --tpk-turquoise-link: #00a191;
  --tpk-blue: #0f4e66;
  --tpk-footer: #0f4053;
  --tpk-footer-bottom: #0b2834;
  --tpk-text: #555555;
  --tpk-light: #f8f8f8;
  --tpk-light-2: #f9f9f9;
  --tpk-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tpk-text);
  background: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--tpk-turquoise-link); text-decoration: none; }
a:hover, a:focus { color: var(--tpk-blue); }

.tpk-container {
  width: min(calc(100% - 40px), var(--tpk-container));
  margin-inline: auto;
}

h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; }
h1 {
  font-family: Arial, sans-serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--tpk-turquoise);
}
h2 {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--tpk-turquoise);
}
h3 {
  font-family: Quicksand, "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--tpk-turquoise);
}
h4 {
  font-family: Quicksand, "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #111;
}

/* Top contact bar */
.tpk-topbar {
  background: var(--tpk-blue);
  color: #fff;
  font-size: 13px;
}
.tpk-topbar a { color: #fff; }
.tpk-topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 8px;
}
.tpk-topbar-left,
.tpk-topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Header */
.tpk-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 1000;
}
@media (min-width: 1025px) {
  .tpk-header { position: sticky; top: 0; }
}
.tpk-header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.tpk-brand img { display: block; max-height: 76px; width: auto; }

/* Desktop navigation */
.tpk-nav { margin-left: auto; }
.tpk-nav ul { list-style: none; margin: 0; padding: 0; }
.tpk-nav > ul { display: flex; align-items: center; gap: 2px; }
.tpk-nav li { position: relative; }
.tpk-nav a {
  display: block;
  padding: 18px 13px;
  color: #111;
  font-family: Quicksand, "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}
.tpk-nav > ul > li > a:hover,
.tpk-nav > ul > li.current-menu-item > a,
.tpk-nav > ul > li.current-menu-ancestor > a { color: var(--tpk-blue); }
.tpk-nav .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 245px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 1001;
}
.tpk-nav li:hover > .sub-menu,
.tpk-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tpk-nav .sub-menu a { padding: 12px 16px; background: #fff; color: #111; white-space: nowrap; }
.tpk-nav .sub-menu a:hover { background: var(--tpk-blue); color: #fff; }

/* Mobile menu */
.tpk-menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: var(--tpk-blue);
  font-size: 28px;
}
.tpk-offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1998;
}
.tpk-offcanvas {
  position: fixed;
  right: 0;
  top: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 1999;
  overflow-y: auto;
  padding: 22px;
}
body.tpk-menu-open .tpk-offcanvas { transform: translateX(0); }
body.tpk-menu-open .tpk-offcanvas-overlay { opacity: 1; visibility: visible; }
.tpk-offcanvas-close {
  margin-left: auto;
  display: block;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  color: var(--tpk-blue);
}
.tpk-mobile-nav ul { list-style: none; margin: 12px 0 0; padding: 0; }
.tpk-mobile-nav li { border-bottom: 1px solid rgba(0,0,0,.08); }
.tpk-mobile-nav a {
  display: block;
  padding: 13px 4px;
  color: var(--tpk-turquoise);
  font-family: Quicksand, "Open Sans", sans-serif;
  font-size: 16px;
}
.tpk-mobile-nav .sub-menu { padding-left: 14px; }
.tpk-mobile-nav .sub-menu a { color: #222; font-size: 14px; }

/* Content */
.tpk-hero,
.tpk-fullwidth { width: 100%; }
.tpk-section { padding: 42px 0; }
.tpk-section-light { background: var(--tpk-light); }
.tpk-section-light-2 { background: var(--tpk-light-2); }
.tpk-main { padding: 44px 0 58px; }
.tpk-content { max-width: 100%; }
.tpk-entry > *:first-child { margin-top: 0; }
.tpk-entry > *:last-child { margin-bottom: 0; }

/* Footer */
.tpk-footer { background: var(--tpk-footer); color: rgba(255,255,255,.88); }
.tpk-footer a { color: #fff; }
.tpk-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding-block: 24px;
}
.tpk-footer-menu ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.tpk-footer-bottom { background: var(--tpk-footer-bottom); color: rgba(255,255,255,.72); }
.tpk-footer-bottom-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .tpk-nav { display: none; }
  .tpk-menu-toggle { display: block; }
  .tpk-header-inner { min-height: 88px; }
  .tpk-brand img { max-height: 64px; }
  h1 { font-size: 38px; }
}

@media (max-width: 767px) {
  .tpk-container { width: min(calc(100% - 28px), var(--tpk-container)); }
  .tpk-topbar-inner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tpk-topbar-right { gap: 12px; }
  .tpk-header-inner { min-height: 76px; }
  .tpk-brand img { max-height: 54px; }
  .tpk-section, .tpk-main { padding-block: 32px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  .tpk-footer-inner,
  .tpk-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .tpk-footer-menu ul { gap: 12px 18px; }
}

/* Home page reconstruction */
.tpk-home-slider {
  position: relative;
  width: 100%;
  height: clamp(210px, 25vw, 300px);
  overflow: hidden;
  background: #eee;
}
.tpk-home-slides,
.tpk-home-slide { position: absolute; inset: 0; margin: 0; }
.tpk-home-slide {
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.tpk-home-slide.is-active { opacity: 1; pointer-events: auto; }
.tpk-home-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tpk-home-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.tpk-home-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.tpk-home-dot.is-active { background: rgba(255,255,255,.88); }

.tpk-home-intro { padding: 38px 0 56px; background: #fff; }
.tpk-home-quote-grid {
  min-height: 240px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-bottom: 30px;
}
.tpk-home-quote-image {
  min-height: 240px;
  background-image: linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)), url('assets/images/home/pfote-hand.jpeg');
  background-size: cover;
  background-position: center;
}
.tpk-home-quote-grid blockquote {
  margin: 0;
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #282828;
  background: #f8f8f8;
  font-family: Roboto, "Open Sans", Arial, sans-serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.55;
}
.tpk-home-quote-grid blockquote span { margin-top: 8px; font-size: 15px; font-style: normal; }
.tpk-home-copy { max-width: 835px; margin-inline: auto; }
.tpk-home-copy h1 { margin-bottom: 8px; }
.tpk-home-copy h2 { margin: 0 0 7px; font-family: Roboto, "Open Sans", sans-serif; font-size: 28px; }
.tpk-certification {
  margin: 0 0 30px;
  color: var(--tpk-turquoise);
  font-family: Roboto, "Open Sans", sans-serif;
  font-size: 16px;
}
.tpk-home-copy > p {
  color: #282828;
  font-family: Roboto, "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 17px;
}
.tpk-services-title { margin: 30px 0 13px; font-family: Roboto, "Open Sans", sans-serif; font-size: 20px; }
.tpk-home-services {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 25px;
  color: #282828;
  font-family: Roboto, "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
.tpk-home-services li { margin: 0 0 5px; }
.tpk-home-services li::before { content: "- "; margin-left: -16px; }
.tpk-home-note {
  margin-top: 28px;
  color: #282828;
  font-family: Roboto, "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.tpk-home-note p { margin: 0 0 12px; }
.tpk-home-editor-content { border-top: 1px solid rgba(0,0,0,.06); }

@media (max-width: 1024px) {
  .tpk-home-slider { height: clamp(190px, 32vw, 300px); }
  .tpk-home-quote-grid blockquote { padding: 34px; font-size: 20px; }
}
@media (max-width: 767px) {
  .tpk-home-slider { height: 210px; }
  .tpk-home-slide img { object-position: center; }
  .tpk-home-intro { padding-top: 24px; }
  .tpk-home-quote-grid { grid-template-columns: 1fr; }
  .tpk-home-quote-image { min-height: 220px; }
  .tpk-home-quote-grid blockquote { padding: 27px 24px; font-size: 18px; }
  .tpk-home-copy h1 { font-size: 34px; }
  .tpk-home-copy h2 { font-size: 25px; }
  .tpk-certification { font-size: 15px; }
  .tpk-home-copy > p, .tpk-home-note { font-size: 15px; }
  .tpk-home-services { font-size: 16px; margin-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpk-home-slide { transition: none; }
}


/* Contact page reconstruction */
.tpk-contact-card {
  display: grid;
  grid-template-columns: minmax(250px, 34%) 1fr;
  gap: 52px;
  align-items: start;
  padding: 22px 0 46px;
}
.tpk-contact-portrait img { width: 100%; max-width: 390px; display: block; }
.tpk-contact-details h2 { margin-bottom: 8px; }
.tpk-contact-subtitle { font-family: Quicksand, "Open Sans", sans-serif; font-size: 17px; line-height: 1.5; color: #333; }
.tpk-contact-emphasis { color: var(--tpk-turquoise); font-family: Quicksand, "Open Sans", sans-serif; font-size: 19px; }
.tpk-contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.tpk-contact-action {
  min-height: 78px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(0,0,0,.09);
  background: var(--tpk-light-2);
  color: #333;
  line-height: 1.35;
}
.tpk-contact-action:hover { border-color: var(--tpk-turquoise); color: var(--tpk-blue); }
.tpk-contact-action small { display: block; color: var(--tpk-turquoise); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.tpk-contact-action img { width: 27px; height: 27px; object-fit: contain; }
.tpk-action-icon { width: 28px; text-align: center; color: var(--tpk-turquoise); font-size: 24px; }
.tpk-contact-form-section { margin-top: 10px; padding: 36px 40px 42px; background: var(--tpk-light); }
.tpk-contact-form { max-width: 820px; }
.tpk-contact-form label { display: block; margin: 0 0 15px; font-weight: 400; color: #444; }
.tpk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tpk-contact-form input[type="text"], .tpk-contact-form input[type="email"], .tpk-contact-form input[type="tel"], .tpk-contact-form textarea {
  width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #ccc; border-radius: 0; background: #fff; font: inherit; color: #333;
}
.tpk-contact-form input:focus, .tpk-contact-form textarea:focus { outline: 2px solid rgba(0,161,154,.18); border-color: var(--tpk-turquoise); }
.tpk-consent { display: flex !important; align-items: flex-start; gap: 9px; font-size: 12px; font-weight: 300 !important; }
.tpk-consent input { margin-top: 5px; }
.tpk-form-success, .tpk-form-error { padding: 12px 14px; background: #fff; border-left: 4px solid var(--tpk-turquoise); }
.tpk-form-error { border-left-color: #9b3b3b; }

/* Rental equipment reconstruction */
.tpk-rental-list { display: grid; gap: 24px; margin-top: 28px; }
.tpk-rental-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.tpk-rental-image { overflow: hidden; background: var(--tpk-light); }
.tpk-rental-image img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.tpk-rental-body { padding: 28px 32px 30px; }
.tpk-rental-body-full { grid-column: 1 / -1; }
.tpk-rental-body h2 { font-family: Quicksand, "Open Sans", sans-serif; font-size: 22px; margin-bottom: 16px; }
.tpk-rental-body ul { padding-left: 20px; }
.tpk-button {
  display: inline-block;
  border: 0;
  background: var(--tpk-turquoise);
  color: #fff;
  padding: 10px 17px;
  font-family: Quicksand, "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.tpk-button:hover, .tpk-button:focus { background: var(--tpk-blue); color: #fff; }
.tpk-source-note { margin-top: 22px; font-size: 11px; color: #777; }

@media (max-width: 900px) {
  .tpk-contact-card { grid-template-columns: 1fr; gap: 28px; }
  .tpk-contact-portrait img { max-width: 330px; }
  .tpk-contact-actions { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .tpk-contact-form-section { padding: 26px 20px 30px; }
  .tpk-form-grid { grid-template-columns: 1fr; gap: 0; }
  .tpk-rental-card { grid-template-columns: 1fr; }
  .tpk-rental-image { max-height: 280px; }
  .tpk-rental-image img { min-height: 0; max-height: 280px; object-position: center; }
  .tpk-rental-body { padding: 24px 20px 26px; }
}

/* Fachseiten: migrated Joomla content */
.tpk-entry { max-width: 100%; }
.tpk-entry > h1 { margin-bottom: 28px; }
.tpk-entry p { margin: 0 0 16px; }
.tpk-entry ul, .tpk-entry ol { margin: 0 0 20px; padding-left: 26px; }
.tpk-entry h3, .tpk-entry h4, .tpk-entry h5 { margin-top: 26px; margin-bottom: 12px; }
.tpk-entry h5 { font-family: Quicksand, "Open Sans", sans-serif; font-size: 17px; font-weight: 500; color: #333; }
.tpk-entry img { display: block; max-width: 100%; height: auto; }
.tpk-entry img[style*="float: right"], .tpk-entry img[style*="float:right"] { float: right; margin: 0 0 20px 30px; }
.tpk-entry img[style*="float: left"], .tpk-entry img[style*="float:left"] { float: left; margin: 0 30px 20px 0; }
.tpk-entry::after { content: ""; display: table; clear: both; }
@media (max-width: 767px) {
  .tpk-entry img[style*="float"] { float: none !important; margin: 20px auto !important; }
}

/* Version 0.5 – migrated Joomla blog */
.tpk-blog-main { background: #fff; }
.tpk-blog-header { margin-bottom: 30px; }
.tpk-blog-list { display: grid; gap: 0; border-top: 1px solid #e9e9e9; }
.tpk-blog-card { padding: 30px 0 32px; border-bottom: 1px solid #e9e9e9; }
.tpk-blog-card h2 { margin: 0 0 7px; font-size: 27px; line-height: 1.3; }
.tpk-blog-card h2 a { color: var(--tpk-turquoise); }
.tpk-blog-card h2 a:hover { color: var(--tpk-blue); }
.tpk-blog-meta { margin-bottom: 14px; color: #898989; font-size: 12px; }
.tpk-blog-excerpt p { margin: 0 0 12px; }
.tpk-blog-readmore { display: inline-block; margin-top: 3px; font-family: Quicksand, "Open Sans", sans-serif; font-size: 14px; color: var(--tpk-turquoise); }
.tpk-blog-readmore:hover { color: var(--tpk-blue); }
.tpk-blog-pagination { margin-top: 34px; }
.tpk-blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tpk-blog-pagination .page-numbers { padding: 7px 11px; border: 1px solid #ddd; }
.tpk-blog-pagination .current { background: var(--tpk-turquoise); border-color: var(--tpk-turquoise); color: #fff; }
.tpk-blog-single-wrap { max-width: 920px; }
.tpk-blog-single-header { margin-bottom: 27px; }
.tpk-blog-single-header h1 { margin-bottom: 7px; }
.tpk-blog-content { font-size: 14px; line-height: 1.7; }
.tpk-blog-content blockquote { margin: 24px 0; padding: 18px 24px; background: var(--tpk-light); border-left: 3px solid var(--tpk-turquoise); }
.tpk-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 42px; padding-top: 22px; border-top: 1px solid #e8e8e8; font-family: Quicksand, "Open Sans", sans-serif; font-size: 13px; }
.tpk-post-nav > div:last-child { text-align: right; }
.tpk-back-to-blog { margin-top: 26px; }
@media (max-width: 767px) {
  .tpk-blog-card { padding: 24px 0 26px; }
  .tpk-blog-card h2 { font-size: 23px; }
  .tpk-post-nav { grid-template-columns: 1fr; gap: 12px; }
  .tpk-post-nav > div:last-child { text-align: left; }
}

/* Legal pages migrated from Joomla */
body.page-slug-impressum .entry-content, body.page-slug-datenschutzerklaerung .entry-content { overflow-wrap:anywhere; }
.tpk-content .entry-content h3, .tpk-content .entry-content h4, .tpk-content .entry-content h5, .tpk-content .entry-content h6 { margin-top:1.5em; }
.tpk-content .entry-content a { color:#00A191; text-decoration:none; }
.tpk-content .entry-content a:hover { color:#0F4E66; text-decoration:underline; }

/* Cookie / privacy controls */
.tpk-cookie-banner[hidden]{display:none!important}
.tpk-cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:99999;background:#fff;border-top:3px solid #00a19a;box-shadow:0 -5px 25px rgba(0,0,0,.16);padding:18px}
.tpk-cookie-inner{max-width:1200px;margin:0 auto;display:flex;gap:24px;align-items:center;justify-content:space-between}
.tpk-cookie-inner p{margin:.35rem 0;font-size:14px;line-height:1.5}
.tpk-cookie-actions{display:flex;gap:10px;flex-shrink:0}
.tpk-cookie-actions button,.tpk-cookie-settings{border:1px solid #0f4e66;background:#fff;color:#0f4e66;padding:10px 14px;cursor:pointer;border-radius:2px}
.tpk-cookie-actions .tpk-cookie-primary{background:#00a19a;border-color:#00a19a;color:#fff}
.tpk-cookie-settings{position:fixed;left:12px;bottom:12px;z-index:9990;padding:6px 9px;font-size:12px;background:#fff}
@media(max-width:760px){.tpk-cookie-inner{display:block}.tpk-cookie-actions{margin-top:14px;flex-wrap:wrap}.tpk-cookie-actions button{flex:1}}

/* v0.9 quality pass */
img{max-width:100%;height:auto}
:focus-visible{outline:3px solid #00a19a;outline-offset:3px}
.site-content a:not(.tpk-button){text-decoration-thickness:1px;text-underline-offset:2px}
@media(max-width:760px){
  .site-content table{display:block;max-width:100%;overflow-x:auto}
  .site-content img[style*="float: left"],.site-content img[style*="float:left"],
  .site-content img[style*="float: right"],.site-content img[style*="float:right"]{
    float:none!important;display:block;margin:12px auto!important;max-width:100%!important;height:auto!important
  }
}

/* v1.0 slider placement correction */
.tpk-subpage-slider{margin-bottom:28px}
.tpk-home > .tpk-home-intro{padding-top:28px}

/* v1.2 contact bar icons */
.tpk-contact-item{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:inherit;
  text-decoration:none;
  white-space:nowrap;
}
.tpk-contact-icon{
  width:16px;
  height:16px;
  flex:0 0 16px;
  fill:currentColor;
}


/* v1.3 final QA corrections */
.tpk-footer-bottom {
  color: rgba(255,255,255,.9);
}
.tpk-footer-bottom-inner {
  min-height: 58px;
}
.tpk-copyright {
  color: rgba(255,255,255,.9);
}
.tpk-cookie-settings {
  position: static;
  z-index: auto;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}
.tpk-cookie-settings:hover,
.tpk-cookie-settings:focus-visible {
  background: #fff;
  color: var(--tpk-footer-bottom);
}
.tpk-home-services li {
  color: #282828;
}
.tpk-topbar-right {
  justify-content: flex-end;
}
@media (max-width: 1120px) and (min-width: 1025px) {
  .tpk-header-inner { gap: 18px; }
  .tpk-nav a { padding-inline: 9px; font-size: 14px; }
}
@media (max-width: 1024px) {
  .tpk-topbar-inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .tpk-topbar-left,
  .tpk-topbar-right {
    gap: 10px;
  }
}
@media (max-width: 767px) {
  .tpk-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .tpk-topbar-right {
    justify-content: flex-start;
  }
  .tpk-contact-item {
    white-space: normal;
  }
  .tpk-footer-bottom-inner {
    gap: 12px;
    padding-block: 15px;
  }
}

/* v1.4 – vollständiger Bildausschnitt im Unterseiten-Slider */
.tpk-subpage-slider .tpk-home-slide img {
  object-fit: contain;
  object-position: center center;
}
.tpk-subpage-slider { background: #fff; }


/* v1.4.1 – ausschließlich Cookie-Korrektur */
.tpk-footer-bottom .tpk-cookie-settings{
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.tpk-footer-bottom .tpk-cookie-settings:hover,
.tpk-footer-bottom .tpk-cookie-settings:focus-visible{
  background: #fff;
  color: var(--tpk-footer-bottom);
}
