/* =========================================
   KÜHN RIGGING + HÖHENARBEIT
   Joomla 6 – Cassiopeia
   ========================================= */

:root {
  --kuehn-bg: #2e2e30;
  --kuehn-text: #c8c8c8;
  --kuehn-heading: #eeeeee;
  --kuehn-accent: #944a9d;
  --kuehn-border: #555558;
  --kuehn-spacing: 100px;
}

/* =========================================
   GRUNDGESTALTUNG
   ========================================= */

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

html,
body,
.site,
.site-grid {
  background: var(--kuehn-bg);
  color: var(--kuehn-text);
}

html,
body,
body * {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--kuehn-heading);
}

p,
li {
  color: var(--kuehn-text);
}

a {
  color: var(--kuehn-accent);
}

a:hover {
  color: #b76ac0;
}

/* =========================================
   FESTES SEITENLAYOUT
   ========================================= */

body {
  min-height: 100vh;
  min-height: 100dvh;
}

.site {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}

.site > .container-header,
.site > header.container-header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
}

.site > .site-grid,
.site-grid {
  flex: 1 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.site > .container-footer,
.site > footer.container-footer {
  flex: 0 0 auto;
  margin-top: auto;
}

/* =========================================
   HEADER
   ========================================= */

.container-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  column-gap: 30px;
  padding-top: 60px !important;
  padding-right: var(--kuehn-spacing) !important;
  padding-bottom: 35px !important;
  padding-left: var(--kuehn-spacing) !important;
  background: var(--kuehn-bg);
  background-image: none;
  box-shadow: none;
  border-bottom: 1px solid var(--kuehn-border);
  box-sizing: border-box;
}

.container-header .grid-child {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* =========================================
   LOGO
   ========================================= */

.container-header .container-topbar,
.container-header .container-header-top {
  width: auto;
  margin: 0;
  padding: 0;
}

.container-header .navbar-brand {
  margin: 0;
  padding: 0;
}

.container-header .navbar-brand img {
  display: block;
  width: 175px;
  max-width: 100%;
  height: auto;
}

/* =========================================
   NAVIGATION
   ========================================= */

.container-header .container-nav {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.container-header .container-nav .navbar {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 20px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* =========================================
   WELTZEIT-UHREN
   ========================================= */

.kuehn-clock {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 20px;
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: none;
  box-shadow: none;
}

.kuehn-clock-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.kuehn-clock-zone {
  display: inline-block;
  color: #b76ac0;
  font-size: 13px;
  font-weight: 500;
  line-height: inherit;
  text-align: right;
}

.kuehn-clock-time {
  display: inline-block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  line-height: inherit;
  min-width: 8ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

/* =========================================
   SCHMALE BILDSCHIRME
   ========================================= */

@media (max-width: 767px) {
  .kuehn-clock {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }

  .kuehn-clock-row {
    width: 100%;
    justify-content: flex-end;
  }
}

/* =========================================
   HAMBURGER-BUTTON
   ========================================= */

.container-header .container-nav
.navbar.navbar-expand-md .navbar-toggler {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #eeeeee;
  cursor: pointer;
}

.container-header .navbar-toggler .icon-menu,
.container-header .navbar-toggler .navbar-toggler-icon,
.container-header .navbar-toggler [class*="icon-menu"] {
  display: none !important;
}

.container-header .navbar-toggler::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  box-shadow:
    0 -8px 0 currentColor,
    0 8px 0 currentColor;
}

.container-header .navbar-toggler:hover,
.container-header .navbar-toggler:focus-visible {
  color: #b76ac0 !important;
  background: transparent;
}

.container-header .navbar-toggler:focus-visible {
  outline: 2px solid var(--kuehn-accent);
  outline-offset: 4px;
}

/* =========================================
   TRANSPARENTES DROPDOWN
   ========================================= */

.container-header .container-nav
.navbar.navbar-expand-md .navbar-collapse {
  position: absolute !important;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  flex-basis: auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  width: 230px;
  min-width: 230px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 2000;
}

.container-header .container-nav
.navbar.navbar-expand-md
.navbar-collapse.collapse:not(.show) {
  display: none !important;
}

.container-header .container-nav
.navbar.navbar-expand-md
.navbar-collapse.collapse.show {
  display: block !important;
}

.container-header .container-nav
.navbar.navbar-expand-md
.navbar-collapse.collapsing {
  display: block !important;
  overflow: hidden;
}

.container-header .container-nav
.navbar-collapse .mod-menu {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  white-space: normal;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.container-header .navbar-collapse
.mod-menu > li {
  display: block;
  flex: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.container-header .navbar-collapse
.mod-menu a {
  display: block;
  width: 100%;
  padding: 9px 0;
  color: #eeeeee;
  text-align: right;
  text-decoration: none !important;
  font-size: 16px;
  line-height: 1.4;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease;
}

.container-header .navbar-collapse
.mod-menu a:hover,
.container-header .navbar-collapse
.mod-menu .active > a,
.container-header .navbar-collapse
.mod-menu a[aria-current="page"] {
  color: #b76ac0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.container-header .mod-menu .nav-item,
.container-header .mod-menu .nav-item.active,
.container-header .mod-menu .nav-item.current,
.container-header .mod-menu .nav-item:hover,
.container-header .mod-menu .nav-item > a,
.container-header .mod-menu .nav-item > a:hover,
.container-header .mod-menu .nav-item.active > a,
.container-header .mod-menu .nav-item.current > a {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.container-header .navbar-collapse
.mod-menu li::before,
.container-header .navbar-collapse
.mod-menu li::after,
.container-header .navbar-collapse
.mod-menu a::before,
.container-header .navbar-collapse
.mod-menu a::after {
  content: none !important;
  display: none !important;
}

.container-header .navbar-collapse
.mod-menu .mod-menu {
  padding: 0;
}

.container-header .navbar-collapse
.mod-menu .mod-menu a {
  font-size: 14px;
}

/* =========================================
   HAUPTINHALT
   ========================================= */

.container-component,
main,
.com-content-article {
  background: transparent;
}

.site-grid > .container-component {
  grid-column: full-start / full-end;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding-left: var(--kuehn-spacing);
  padding-right: var(--kuehn-spacing);
  padding-top: 60px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

/* =========================================
   HINTERGRUNDBILDER
   ========================================= */

/* STARTSEITE UND RECHTLICHE SEITEN */

body:has(.kuehn-home-hero),
body:has(.com-content-article a[href="mailto:info@kuehn-hoehenarbeit.de"]) {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.28) 55%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    url("/images/towerstuttgart.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* RIGGING */

body:has(.kuehn-rigging-hero) {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.48) 55%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    url("/images/gunsnroses25.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* HÖHENARBEIT */

body:has(.kuehn-hoehenarbeit-hero) {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.48) 55%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    url("/images/olyprerigg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* REFERENZEN */

body:has(#kuehn-references) {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.65) 55%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    url("/images/towerstuttgart.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* KONTAKT */

body:has(.kuehn-kontakt-hero) {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.54) 55%,
      rgba(0, 0, 0, 0.24) 100%
    ),
    url("/images/towerstuttgart.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* =========================================
   TRANSPARENTE SEITENCONTAINER
   ========================================= */

body:has(.kuehn-home-hero) .site,
body:has(.kuehn-home-hero) .site-grid,
body:has(.com-content-article a[href="mailto:info@kuehn-hoehenarbeit.de"]) .site,
body:has(.com-content-article a[href="mailto:info@kuehn-hoehenarbeit.de"]) .site-grid,
body:has(.kuehn-rigging-hero) .site,
body:has(.kuehn-rigging-hero) .site-grid,
body:has(.kuehn-hoehenarbeit-hero) .site,
body:has(.kuehn-hoehenarbeit-hero) .site-grid,
body:has(#kuehn-references) .site,
body:has(#kuehn-references) .site-grid,
body:has(.kuehn-kontakt-hero) .site,
body:has(.kuehn-kontakt-hero) .site-grid {
  background: transparent;
}

body:has(.kuehn-home-hero) .container-header,
body:has(.com-content-article a[href="mailto:info@kuehn-hoehenarbeit.de"]) .container-header,
body:has(.kuehn-rigging-hero) .container-header,
body:has(.kuehn-hoehenarbeit-hero) .container-header,
body:has(#kuehn-references) .container-header,
body:has(.kuehn-kontakt-hero) .container-header {
  background: transparent;
  border-bottom: none;
}

/* =========================================
   HERO-SEITEN VERTIKAL ZENTRIEREN
   ========================================= */

body:has(.kuehn-home-hero) .site-grid,
body:has(.kuehn-rigging-hero) .site-grid,
body:has(.kuehn-hoehenarbeit-hero) .site-grid,
body:has(.kuehn-kontakt-hero) .site-grid {
  align-content: safe center;
}

body:has(.kuehn-home-hero)
.site-grid > .container-component,
body:has(.kuehn-rigging-hero)
.site-grid > .container-component,
body:has(.kuehn-hoehenarbeit-hero)
.site-grid > .container-component,
body:has(.kuehn-kontakt-hero)
.site-grid > .container-component {
  padding-top: 0;
  padding-bottom: 0;
}

body:has(.kuehn-home-hero) .com-content-article,
body:has(.kuehn-rigging-hero) .com-content-article,
body:has(.kuehn-hoehenarbeit-hero) .com-content-article,
body:has(.kuehn-kontakt-hero) .com-content-article {
  margin: 0;
  padding: 0;
}

/* =========================================
   STARTSEITE
   ========================================= */

.kuehn-home-hero {
  display: flex;
  align-items: center;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.kuehn-home-content {
  max-width: 720px;
  padding: 10px 0 20px;
}

.kuehn-home-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.kuehn-home-line {
  width: 110px;
  height: 2px;
  margin: 34px 0 28px;
  background: var(--kuehn-accent);
}

.kuehn-home-content p {
  margin: 0;
  color: #eeeeee;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.25em;
}

/* =========================================
   RIGGING- UND HÖHENARBEIT-SEITE
   ========================================= */

.kuehn-rigging-hero,
.kuehn-hoehenarbeit-hero {
  display: flex;
  align-items: center;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.kuehn-rigging-content {
  max-width: none;
  width: 100%;
  padding: 10px 0 20px;
}

.kuehn-rigging-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
}

.kuehn-rigging-content h2 {
  margin: 20px 0 10px;
  color: #ffffff;
  font-size: 26px;
}

.kuehn-rigging-content p {
  color: #eeeeee;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}



/* REFERENCES – COMPACT YEAR GROUPS */

#kuehn-references .ref-year-group {
  margin: 0 0 10px;
}

#kuehn-references .ref-group-year {
  margin: 10px 0 4px;
  padding: 0;
  color: #b76ac0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

#kuehn-references .ref-list .ref-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  padding: 3px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s ease;
}

#kuehn-references .ref-list .ref-item:hover {
  padding-left: 0;
  background: rgba(255,255,255,0.04);
}

#kuehn-references .ref-list .ref-project-name {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

#kuehn-references .ref-list .ref-role {
  color: #ccc;
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
}

#kuehn-references .ref-venues {
  margin-top: 35px;
}

#kuehn-references .ref-venue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

#kuehn-references .ref-venue-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

#kuehn-references .ref-venue-location {
  margin-top: 3px;
  font-size: 11px;
}

#kuehn-references .ref-venue-role {
  font-size: 11px;
  text-align: right;
}

@media (max-width: 650px) {
  #kuehn-references .ref-list .ref-item,
  #kuehn-references .ref-venue-item {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 6px;
  }

  #kuehn-references .ref-list .ref-project-name {
    font-size: 11px;
  }

  #kuehn-references .ref-list .ref-role {
    grid-column: auto;
    font-size: 10px;
    text-align: right;
  }
}

/* =========================================
   KONTAKTSEITE
   ========================================= */

.kuehn-kontakt-hero {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.kuehn-kontakt-content {
  width: 100%;
  max-width: 760px;
  padding: 10px 0 20px;
}

.kuehn-kontakt-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.kuehn-kontakt-line {
  display: block;
  width: 110px;
  height: 2px;
  margin: 28px 0;
  background: var(--kuehn-accent);
}

.kuehn-kontakt-content h2 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.kuehn-kontakt-content p {
  margin: 0 0 16px;
  color: #eeeeee;
  font-size: 16px;
  line-height: 1.7;
}

.kuehn-kontakt-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.kuehn-kontakt-links a {
  display: block;
  width: fit-content;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kuehn-kontakt-links a:hover {
  color: #b76ac0;
}

.kuehn-kontakt-links a:last-child {
  color: #b76ac0;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.kuehn-kontakt-links a:last-child:hover {
  color: #ffffff;
}

/* =========================================
   BISHERIGES HERO-LAYOUT
   ========================================= */

.kuehn-hero {
  display: grid !important;
  grid-template-columns: 45% 55% !important;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0;
  margin: 60px 0 0;
  padding: 0;
}

.kuehn-hero-text {
  min-width: 0;
  box-sizing: border-box;
  padding: 30px 35px 30px 0 !important;
}

.kuehn-hero-text h1 {
  color: var(--kuehn-heading);
  margin-top: 0;
  line-height: 1.15;
}

.kuehn-hero-image {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0;
}

.kuehn-hero-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 570px;
  object-fit: contain;
  object-position: right center;
  margin-left: auto;
  margin-right: 0;
}

/* =========================================
   TRENNLINIEN
   ========================================= */

hr {
  border: 0;
  border-top: 1px solid var(--kuehn-border);
  opacity: 1;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn-primary {
  background: var(--kuehn-accent);
  border-color: var(--kuehn-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #793b82;
  border-color: #793b82;
}

/* =========================================
   FOOTER – IMMER TRANSPARENT
   ========================================= */

.container-footer {
  position: relative;
  z-index: 10;
  background: transparent !important;
  background-image: none !important;
  color: var(--kuehn-text);
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
  padding: 25px var(--kuehn-spacing);
  box-sizing: border-box;
}

.container-footer .grid-child {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.container-footer .mod-custom {
  width: 100%;
  max-width: none;
  background: transparent !important;
}

.container-footer .mod-custom > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.container-footer,
.container-footer p,
.container-footer span,
.container-footer a {
  color: var(--kuehn-text);
}

.container-footer a {
  text-decoration: none;
}

.container-footer a:hover {
  color: var(--kuehn-accent);
}

.container-footer p {
  margin: 0;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1050px) {
  :root {
    --kuehn-spacing: 40px;
  }

  .container-header {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
  }

  .kuehn-hero {
    grid-template-columns: 45% 55% !important;
  }

}

/* =========================================
   SMARTPHONE
   ========================================= */

@media (max-width: 768px) {
  :root {
    --kuehn-spacing: 20px;
  }

  .container-header {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px 20px 30px !important;
    gap: 15px;
  }

  .container-header .navbar-brand img {
    width: 150px;
  }

  .container-header .container-nav {
    justify-content: flex-end;
  }

  .container-header .container-nav .navbar {
    gap: 12px;
  }

  .kuehn-clock {
    gap: 2px;
    font-size: 11px;
  }

  .kuehn-clock-row {
    gap: 5px;
  }

  .kuehn-clock-zone,
  .kuehn-clock-time {
    font-size: 11px;
  }

  .container-header .container-nav
  .navbar.navbar-expand-md .navbar-collapse {
    width: min(230px, calc(100vw - 40px));
    min-width: 0;
  }

  body:has(.kuehn-home-hero),
  body:has(.com-content-article a[href="mailto:info@kuehn-hoehenarbeit.de"]),
  body:has(.kuehn-rigging-hero),
  body:has(.kuehn-hoehenarbeit-hero),
  body:has(#kuehn-references),
  body:has(.kuehn-kontakt-hero) {
    background-position: 42% center;
    background-attachment: scroll;
  }

  .kuehn-home-content,
  .kuehn-rigging-content {
    padding: 40px 0;
  }

  .kuehn-home-content h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .kuehn-home-content p {
    font-size: 12px;
    letter-spacing: 0.15em;
  }

  .kuehn-rigging-content h1 {
    font-size: 34px;
  }

  .kuehn-rigging-content p {
    font-size: 14px;
  }



  .kuehn-kontakt-content {
    padding: 25px 0;
  }

  .kuehn-kontakt-content h1 {
    font-size: 42px;
  }

  .kuehn-kontakt-content h2 {
    font-size: 15px;
  }

  .kuehn-kontakt-content p,
  .kuehn-kontakt-links a {
    font-size: 14px;
  }

  .kuehn-kontakt-links {
    gap: 12px;
    margin-top: 24px;
  }

  .kuehn-hero {
    grid-template-columns: 1fr !important;
  }

  .kuehn-hero-text {
    padding: 20px 0 !important;
  }

  .kuehn-hero-image {
    justify-content: center;
  }

  .kuehn-hero-image img {
    max-height: none;
    width: 100%;
    height: auto;
  }

  .container-footer {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .container-footer .mod-custom > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/* =========================================
   EINHEITLICHER ABSTAND ZUM HEADER
   RIGGING UND HÖHENARBEIT WIE REFERENZEN
   STARTSEITE UND KONTAKT UNVERÄNDERT
   ========================================= */

body:has(.kuehn-rigging-hero) .site-grid,
body:has(.kuehn-hoehenarbeit-hero) .site-grid {
  align-content: start;
}

body:has(.kuehn-rigging-hero)
.site-grid > .container-component,
body:has(.kuehn-hoehenarbeit-hero)
.site-grid > .container-component {
  padding-top: 55px;
  padding-bottom: 70px;
}

body:has(.kuehn-rigging-hero) .kuehn-rigging-content,
body:has(.kuehn-hoehenarbeit-hero) .kuehn-rigging-content {
  padding-top: 0;
}

@media (max-width: 768px) {
  body:has(.kuehn-rigging-hero)
  .site-grid > .container-component,
  body:has(.kuehn-hoehenarbeit-hero)
  .site-grid > .container-component {
    padding-top: 35px;
    padding-bottom: 45px;
  }

  body:has(.kuehn-rigging-hero) .kuehn-rigging-content,
  body:has(.kuehn-hoehenarbeit-hero) .kuehn-rigging-content {
    padding-top: 0;
  }
}

/* =========================================
   BRIDLE CALCULATOR – KOMPLETTES LAYOUT
   NUR CALCULATOR-SEITE
   ========================================= */

body:has(#kuehn-bridle-calculator) {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.28) 55%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    url("/images/towerstuttgart.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body:has(#kuehn-bridle-calculator) .container-header,
body:has(#kuehn-bridle-calculator) .site-grid,
body:has(#kuehn-bridle-calculator) .container-component,
body:has(#kuehn-bridle-calculator) main {
  background: transparent !important;
  background-color: transparent !important;
}

body:has(#kuehn-bridle-calculator) .container-header {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body:has(#kuehn-bridle-calculator)
.site-grid > .container-component {
  width: 100%;
  max-width: none;
  padding: 12px 35px 20px;
}

body:has(#kuehn-bridle-calculator) .site-grid {
  align-content: start;
}

#kuehn-bridle-calculator {
  box-sizing: border-box;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto 20px;
  padding: 24px 30px;

  background: rgba(30, 30, 33, 0.94);
  border: 1px solid #555558;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);

  color: #eeeeee;

  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-areas:
    "heading heading"
    "left diagram"
    "warning warning";

  column-gap: 32px;
  row-gap: 14px;
  align-items: start;
}

#kuehn-bridle-calculator *,
#kuehn-bridle-calculator *::before,
#kuehn-bridle-calculator *::after {
  box-sizing: border-box;
}

#kuehn-bridle-calculator .bc-heading {
  grid-area: heading;
}

#kuehn-bridle-calculator h1 {
  color: #eeeeee;
  font-size: 29px;
  line-height: 1.15;
  margin: 0 0 5px;
}

#kuehn-bridle-calculator .bc-subtitle {
  color: #cccccc;
  font-size: 12px;
  margin: 0;
  letter-spacing: 0.04em;
}

#kuehn-bridle-calculator .bc-left {
  grid-area: left;
  min-width: 0;
}

#kuehn-bridle-calculator .bc-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

#kuehn-bridle-calculator .bc-inputs label {
  display: block;
  color: #cccccc;
  font-size: 12px;
  margin: 0 0 5px;
}

#kuehn-bridle-calculator .bc-inputs input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 6px 10px;
  color: #ffffff;
  background: #222224;
  border: 1px solid #555558;
  border-radius: 3px;
  font-size: 14px;
}

#kuehn-bridle-calculator .bc-inputs input:focus {
  outline: 1px solid #b76ac0;
  border-color: #b76ac0;
}

#kuehn-bridle-calculator .bc-error {
  color: #ffaaaa;
  font-size: 12px;
  margin: 0 0 10px;
}

#kuehn-bridle-calculator .bc-error[hidden] {
  display: none !important;
}

#kuehn-bridle-calculator .bc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

#kuehn-bridle-calculator .bc-result {
  min-width: 0;
  padding: 10px;
  background: #242426;
  border: 1px solid #555558;
  border-radius: 3px;
}

#kuehn-bridle-calculator .bc-result-name {
  color: #c28acb;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

#kuehn-bridle-calculator .bc-result-force {
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 4px;
}

#kuehn-bridle-calculator .bc-result-detail {
  color: #cccccc;
  font-size: 11px;
  line-height: 1.6;
}

#kuehn-bridle-calculator .bc-total {
  padding: 12px;
  border: 1px solid #944a9d;
  border-radius: 3px;
  background: #242426;
}

#kuehn-bridle-calculator .bc-total-label {
  color: #c28acb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#kuehn-bridle-calculator .bc-total-value {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-top: 5px;
}

#kuehn-bridle-calculator .bc-diagram {
  grid-area: diagram;
  min-width: 0;
  padding: 12px 16px;
  margin: 0;

  background: rgba(20, 20, 22, 0.65);
  border: 1px solid #555558;
  border-radius: 4px;
}

#kuehn-bridle-calculator .bc-diagram-title {
  color: #c28acb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

#kuehn-bridle-calculator .bc-diagram svg {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

#kuehn-bridle-calculator .bc-warning {
  grid-area: warning;
  color: #aaaaaa;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  #kuehn-bridle-calculator {
    grid-template-columns: 230px minmax(0, 1fr);
    column-gap: 15px;
    padding: 18px;
  }

  #kuehn-bridle-calculator .bc-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  body:has(#kuehn-bridle-calculator)
  .site-grid > .container-component {
    padding: 10px;
  }

  #kuehn-bridle-calculator {
    display: block;
    padding: 16px 12px;
    margin-bottom: 15px;
  }

  #kuehn-bridle-calculator h1 {
    font-size: 25px;
  }

  #kuehn-bridle-calculator .bc-heading {
    margin-bottom: 20px;
  }

  #kuehn-bridle-calculator .bc-left {
    margin-bottom: 20px;
  }

  #kuehn-bridle-calculator .bc-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #kuehn-bridle-calculator .bc-diagram {
    padding: 8px;
    margin-bottom: 16px;
  }
}

/* =========================================
   KONTAKT – BREITERER TEXTBEREICH
   ========================================= */

@media (min-width: 1200px) {
  body:has(.kuehn-kontakt-content) .kuehn-kontakt-content {
    width: 100%;
    max-width: 1100px;
  }

  body:has(.kuehn-kontakt-content) .kuehn-kontakt-content h2,
  body:has(.kuehn-kontakt-content) .kuehn-kontakt-content h3 {
    max-width: none;
    white-space: nowrap;
  }
}

/* =========================================
   WHATSAPP UND INSTAGRAM
   ========================================= */

.kuehn-kontakt-links a.kuehn-social-link,
.kuehn-kontakt-links a.kuehn-social-link:visited {
  color: #944a9d !important;
  font-weight: 700;
  text-decoration: none;
}

.kuehn-kontakt-links a.kuehn-social-link:hover {
  color: #b76ac0 !important;
}

/* =========================================
   INSTAGRAM-LINK IM FOOTER
   ========================================= */

.container-footer .kuehn-footer-instagram,
.container-footer .kuehn-footer-instagram:visited {
  color: #944a9d !important;
  font-weight: 700;
  text-decoration: none;
}

.container-footer .kuehn-footer-instagram:hover {
  color: #b76ac0 !important;
}

/* =========================================
   KÜHN TOURTICKER IM HEADER
   ========================================= */

.container-header .kuehn-tour-ticker {
  position: relative;
  flex: 0 1 360px;
  width: 360px;
  min-width: 0;
  max-width: 360px;
  overflow: hidden;
  margin-right: 24px;

  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;

  white-space: nowrap;
}

.container-header .kuehn-tour-ticker[hidden] {
  display: none !important;
}

.container-header .kuehn-tour-track {
  display: flex;
  width: max-content;
  animation: kuehn-tour-scroll 24s linear infinite;
}

.container-header .kuehn-tour-text {
  display: block;
  flex: 0 0 auto;
  padding-right: 60px;
  white-space: nowrap;
}

@keyframes kuehn-tour-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.container-header .kuehn-clock,
.container-header .navbar-toggler {
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .container-header .kuehn-tour-ticker {
    flex-basis: 220px;
    width: 220px;
    max-width: 220px;
    margin-right: 15px;
  }
}

@media (max-width: 767px) {
  .container-header .kuehn-tour-ticker {
    display: none;
  }
}

/* =========================================
   ON TOUR WITH – DAUERHAFT VIOLETT
   ========================================= */

.container-header .kuehn-tour-prefix {
  color: #944a9d;
  font-weight: 700;
  margin-right: 20px;
}

.container-header .kuehn-tour-title {
  color: #ffffff;
  font-weight: 400;
}

/* =========================================
   CALCULATORS – BRIDLE + PYTHAGORAS
   ========================================= */

body:has(#kuehn-bridle-calculator) .site {
  background: transparent !important;
}

#kuehn-bridle-calculator {
  margin-bottom: 30px;
}

#kuehn-pythagoras-calculator {
  box-sizing: border-box;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto 20px;
  padding: 24px 30px;
  background: rgba(30, 30, 33, 0.94);
  border: 1px solid #555558;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color: #eeeeee;
}

#kuehn-pythagoras-calculator *,
#kuehn-pythagoras-calculator *::before,
#kuehn-pythagoras-calculator *::after {
  box-sizing: border-box;
}

#kuehn-pythagoras-calculator h2 {
  color: #eeeeee;
  font-size: 29px;
  line-height: 1.15;
  margin: 0 0 5px;
}

#kuehn-pythagoras-calculator .pc-subtitle {
  color: #cccccc;
  font-size: 12px;
  margin: 0 0 18px;
  letter-spacing: 0.04em;
}

#kuehn-pythagoras-calculator .pc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

#kuehn-pythagoras-calculator .pc-panel {
  min-width: 0;
}

#kuehn-pythagoras-calculator .pc-panel:last-child {
  padding: 12px 16px;
  background: rgba(20, 20, 22, 0.65);
  border: 1px solid #555558;
  border-radius: 4px;
}

#kuehn-pythagoras-calculator .pc-section-title {
  color: #c28acb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

#kuehn-pythagoras-calculator .pc-mode-grid,
#kuehn-pythagoras-calculator .pc-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

#kuehn-pythagoras-calculator .pc-field {
  min-width: 0;
}

#kuehn-pythagoras-calculator label {
  display: block;
  color: #cccccc;
  font-size: 12px;
  margin: 0 0 5px;
}

#kuehn-pythagoras-calculator input,
#kuehn-pythagoras-calculator select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 6px 10px;
  color: #ffffff;
  background: #222224;
  border: 1px solid #555558;
  border-radius: 3px;
  font-size: 14px;
}

#kuehn-pythagoras-calculator input:focus,
#kuehn-pythagoras-calculator select:focus {
  outline: 1px solid #b76ac0;
  border-color: #b76ac0;
}

#kuehn-pythagoras-calculator .pc-input-field input {
  border-color: #b76ac0;
}

#kuehn-pythagoras-calculator input[readonly] {
  color: #cccccc;
  background: #242426;
}

#kuehn-pythagoras-calculator .pc-error {
  color: #ffaaaa;
  font-size: 12px;
  margin: 0 0 10px;
}

#kuehn-pythagoras-calculator .pc-error[hidden] {
  display: none !important;
}

#kuehn-pythagoras-calculator .pc-note {
  color: #aaaaaa;
  font-size: 11px;
  line-height: 1.5;
  margin: 10px 0 0;
}

#kuehn-pythagoras-calculator .pc-diagram {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

@media (max-width: 900px) {
  #kuehn-pythagoras-calculator {
    padding: 18px;
  }
  #kuehn-pythagoras-calculator .pc-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 15px;
  }
}

@media (max-width: 650px) {
  #kuehn-bridle-calculator {
    margin-bottom: 20px;
  }
  #kuehn-pythagoras-calculator {
    padding: 16px 12px;
    margin-bottom: 15px;
  }
  #kuehn-pythagoras-calculator h2 {
    font-size: 25px;
  }
  #kuehn-pythagoras-calculator .pc-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #kuehn-pythagoras-calculator .pc-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  #kuehn-pythagoras-calculator .pc-panel:last-child {
    padding: 8px;
  }
}

/* BRIDLE: Vorschaufeld bis zur Unterkante der Ergebnisse strecken */
@media (min-width: 651px) {
  #kuehn-bridle-calculator .bc-diagram {
    align-self: stretch;
    height: 100%;
  }
}

/* BRIDLE – Diagramm nutzt die volle Vorschauhöhe */
@media (min-width: 651px) {
  #kuehn-bridle-calculator .bc-diagram {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #kuehn-bridle-calculator .bc-diagram svg {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
}

/* PYTHAGORAS: feine Dreieckskontur wie in der Bridle-Vorschau */
#kuehn-pythagoras-calculator #pc-triangle { stroke-width: 2px; }

/* PYTHAGORAS: preview panel matches full height of input column */
@media (min-width: 651px) {
  #kuehn-pythagoras-calculator .pc-layout {
    align-items: stretch;
  }
  #kuehn-pythagoras-calculator .pc-panel:last-child {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #kuehn-pythagoras-calculator .pc-diagram {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    object-fit: contain;
  }
}

/* =========================================
   TRUSS LOAD CALCULATOR – PASSEND ZU BRIDLE / PYTHAGORAS
   Nur der Truss-Rechner wird gestaltet.
   ========================================= */
#kuehn-truss-calculator,
#kuehn-truss-calculator * { box-sizing: border-box; }
#kuehn-truss-calculator {
  width: 100%; max-width: 1450px; margin: 0 auto 30px;
  padding: 24px 30px; background: rgba(30,30,33,.94);
  border: 1px solid #555558; border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4); color: #eeeeee;
}
#kuehn-truss-calculator h2 {
  margin: 0 0 5px; color: #eeeeee; font-size: 29px; line-height: 1.15;
}
#kuehn-truss-calculator .tl-sub {
  margin: 0 0 18px; color: #cccccc; font-size: 12px; letter-spacing: .04em;
}
#kuehn-truss-calculator .tl-layout {
  display: grid; grid-template-columns: 280px minmax(0,1fr);
  gap: 32px; align-items: start;
}
#kuehn-truss-calculator .tl-panel { min-width: 0; }
#kuehn-truss-calculator .tl-panel:last-child {
  padding: 12px 16px; background: rgba(20,20,22,.65);
  border: 1px solid #555558; border-radius: 4px;
}
#kuehn-truss-calculator .tl-title {
  color: #c28acb; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px;
}
#kuehn-truss-calculator .tl-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px;
}
#kuehn-truss-calculator .tl-section { margin-top: 18px; }
#kuehn-truss-calculator label {
  display: block; color: #cccccc; font-size: 12px; margin: 0 0 5px;
}
#kuehn-truss-calculator input,
#kuehn-truss-calculator select {
  display: block; width: 100%; min-width: 0; height: 36px;
  padding: 6px 10px; color: #ffffff; background: #222224;
  border: 1px solid #555558; border-radius: 3px; font-size: 14px;
}
#kuehn-truss-calculator input:focus,
#kuehn-truss-calculator select:focus {
  outline: 1px solid #b76ac0; border-color: #b76ac0;
}
#kuehn-truss-calculator .tl-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 30px; align-items: end; gap: 7px; margin-bottom: 10px; }
#kuehn-truss-calculator .tl-row.support { grid-template-columns: 1fr; }
#kuehn-truss-calculator .tl-row > div { min-width: 0; }
#kuehn-truss-calculator .tl-row button {
  width: 30px; height: 36px; padding: 0; border: 1px solid #555558;
  border-radius: 3px; background: #242426; color: #eeeeee; cursor: pointer;
}
#kuehn-truss-calculator .tl-row button:hover { border-color: #b76ac0; color: #b76ac0; }
#kuehn-truss-calculator .tl-add {
  padding: 8px 12px; border: 1px solid #944a9d; border-radius: 3px;
  background: #944a9d; color: #ffffff; font-size: 12px; cursor: pointer;
}
#kuehn-truss-calculator .tl-add:hover { background: #793b82; border-color: #793b82; }
#kuehn-truss-calculator .tl-hint,
#kuehn-truss-calculator .tl-warning {
  color: #aaaaaa; font-size: 11px; line-height: 1.5;
}
#kuehn-truss-calculator .tl-hint { margin: 9px 0 0; }
#kuehn-truss-calculator .tl-warning { margin: 16px 0 0; }
#kuehn-truss-calculator .tl-diagram {
  display: block; width: 100%; max-width: 760px; height: auto;
  margin: 0 auto 18px; overflow: visible;
}
#kuehn-truss-calculator .tl-results {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px;
}
#kuehn-truss-calculator .tl-result {
  display: flex; flex-direction: column; min-width: 0; padding: 10px;
  background: #242426; border: 1px solid #555558; border-radius: 3px;
}
#kuehn-truss-calculator .tl-result strong {
  color: #c28acb; font-size: 11px; font-weight: 700; margin-bottom: 4px;
}
#kuehn-truss-calculator .tl-result span {
  color: #ffffff; font-size: 19px; font-weight: 700;
}
#kuehn-truss-calculator .tl-result small { color: #cccccc; font-size: 11px; }
#kuehn-truss-calculator .tl-summary {
  margin: 10px 0; padding: 12px; background: #242426;
  border: 1px solid #944a9d; border-radius: 3px;
  color: #eeeeee; font-size: 13px; font-weight: 600;
}
#kuehn-truss-calculator .tl-error {
  margin: 0 0 10px; color: #ffaaaa; font-size: 12px;
}
#kuehn-truss-calculator .tl-error[hidden] { display: none !important; }
@media (max-width: 900px) {
  #kuehn-truss-calculator { padding: 18px; }
  #kuehn-truss-calculator .tl-layout { grid-template-columns: 230px minmax(0,1fr); gap: 15px; }
  #kuehn-truss-calculator .tl-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  #kuehn-truss-calculator { padding: 16px 12px; margin-bottom: 15px; }
  #kuehn-truss-calculator h2 { font-size: 25px; }
  #kuehn-truss-calculator .tl-layout { grid-template-columns: 1fr; gap: 20px; }
  #kuehn-truss-calculator .tl-panel:last-child { padding: 8px; }
  #kuehn-truss-calculator .tl-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}