/*
 * Handmade Kultur Elementor compatibility bridge
 * Plain CSS source. Do not edit content-hashed copies.
 * Updated from the former hk2.css monolith on 2026-07-18.
 */

/* Article links and legacy button compatibility. */
.single article p a,
.single article li a,
.page article p a,
.page article li a,
.page p a,
.boxleft p a,
#text-bottom p a { text-decoration: underline; }
body a.btn-default,
body a.btn-default:hover { color: #fff; }

/* Shared HK typography inside Elementor regions. */
.elementor-widget-heading .elementor-heading-title,
h1, h2, h3, h4, h5, h6 {
  font-family: Lora, Georgia, "Times New Roman", serif;
}
.elementor-widget-text-editor,
.elementor-widget-theme-post-content,
.elementor-widget-form,
.elementor-widget-nav-menu .elementor-item {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.elementor-widget-heading h1.elementor-heading-title { font-size: 32px !important; line-height: 1.3 !important; }
.elementor-widget-heading h2.elementor-heading-title { font-size: 26px !important; line-height: 1.3 !important; }
.elementor-widget-heading h3.elementor-heading-title { font-size: 22px !important; line-height: 1.3 !important; }
.elementor-widget-heading h4.elementor-heading-title { font-size: 18px !important; line-height: 1.3 !important; }
.elementor-widget-heading h5.elementor-heading-title { font-size: 16px !important; line-height: 1.3 !important; }
.elementor-widget-heading h6.elementor-heading-title { font-size: 13px !important; line-height: 1.3 !important; }

/* Card titles are component headings, not page headings. */
.elementor-posts--skin-cards .elementor-post__title,
.elementor-posts--skin-cards .elementor-post__title a {
  font-family: Lora, Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
}
.elementor-posts--skin-cards .elementor-post__title a {
  font-size: 18px !important;
  line-height: 1.3 !important;
}
.elementor-posts--skin-cards .elementor-post__meta-data {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  color: #7A7A7A !important;
}

/*
 * Shared content-card design.
 * Homepage (Elementor), archives (legacy/Isotope), and search keep their
 * individual content while using the same visual shell.
 */
#grid-content.category article.box1,
.author #grid-content.category .hk-author-card,
.elementor-posts--skin-cards .elementor-post__card,
#search .hk-search-card {
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* More vertical space between stacked cards (archives + Elementor grids). */
#grid-content.category article.box1,
.author #grid-content.category .hk-author-card,
#search .hk-search-card {
  margin-bottom: 28px;
}

.elementor-widget-posts.elementor-posts--skin-cards {
  --grid-row-gap: 48px;
}

#grid-content.category article.box1 > img,
.author #grid-content.category .hk-author-card #page-header > img,
.elementor-posts--skin-cards .elementor-post__thumbnail img,
#search .hk-search-card-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto !important;
  margin: 0;
  object-fit: fill;
  aspect-ratio: auto;
}

#grid-content.category article.box1 .article-inner,
#search .hk-search-card-body {
  padding: 20px 10px 10px;
}

@media (max-width: 767px) {
  #grid-content.category article.box1 .article-inner,
  .author #grid-content.category .hk-author-card .article-inner,
  #search .hk-search-card-body {
    padding-top: 30px;
  }

  .elementor-posts--skin-cards .elementor-post__thumbnail__link {
    margin-bottom: 35px !important;
  }
}

#grid-content.category article.box1 h2,
.author #grid-content.category .hk-author-card h2,
#search .hk-search-card-title {
  margin: 0 0 25px;
  font-family: Lora, Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.author #grid-content.category .hk-author-card #page-header.rounded {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.author #grid-content.category .hk-author-card #page-header > img {
  padding: 0;
  border: 0;
}

.author #grid-content.category .hk-author-card .article-inner {
  padding: 20px 10px 10px;
}

.author #grid-content.category .hk-author-card h2 {
  color: #54595f;
}

#grid-content.category article.box1 h2 a,
.elementor-posts--skin-cards .elementor-post__title a,
#search .hk-search-card-title a {
  color: #54595f;
  text-decoration: none;
}

#grid-content.category article.box1 h2 a:hover,
.elementor-posts--skin-cards .elementor-post__title a:hover,
#search .hk-search-card-title a:hover {
  color: #e2001a;
}

#grid-content.category article.box1 .article-meta,
.elementor-posts--skin-cards .elementor-post__meta-data,
#search .hk-search-card-snippet {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: #7a7a7a;
}

#grid-content.category article.box1 .article-meta,
#search .hk-search-card-snippet {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #eee;
}

#grid-content.category article.box1 .hk-card-heading {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

#grid-content.category article.box1 .hk-card-heading .hk-date-title {
  float: none;
  width: 44px;
  margin: 0 0 10px;
  box-sizing: border-box;
  flex: none;
}

#grid-content.category article.box1 .hk-card-heading .hk-month {
  letter-spacing: 0.08em;
}

#grid-content.category article.box1 .hk-card-location {
  margin: 0 0 8px;
  color: #7a7a7a;
  font-weight: 600;
}

#grid-content.category article.box1 .hk-card-location:empty {
  display: none;
}

#grid-content.category article.box1 .hk-card-excerpt {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #7a7a7a;
  font: inherit;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* Compact chip-style topic link bars.
   One shared rule for Termine/Kurse/Projekte rubrik menus and optional
   .hk-link-menu / .hk-course-link-menu CSS classes in Elementor. */
.hk-link-menu a.elementor-item,
.hk-course-link-menu a.elementor-item,
.elementor-widget-nav-menu.elementor-nav-menu__align-center.elementor-nav-menu--dropdown-none a.elementor-item {
  margin: 3px;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: 3px;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

/* Header account links — loaded via bridge so legacy routes (e.g. /suche) inherit compact login. */
#site-header #site-login a.login,
#site-header #site-login a.register {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#site-header #site-login a.register {
  color: #e2001a;
}
#site-header #site-login a.login:hover,
#site-header #site-login a.login:focus,
#site-header #site-login a.register:hover,
#site-header #site-login a.register:focus {
  color: #b90015;
}
#site-header .hk-header-account {
  font-size: 14px;
  line-height: 1.5;
}
#site-header .hk-login-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
#site-header .hk-login-compact--user .login {
  color: #333333;
  text-decoration: none;
  font-weight: 400;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#site-header .hk-login-sep {
  color: #ccc;
  user-select: none;
}
@media (max-width: 767px) {
  #site-header > .text-center,
  #navi-specials-wrap {
    display: none;
  }
  #site-header #site-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px 6px;
    height: auto;
    min-height: 0;
  }
  #site-header .hk-header-account,
  #site-header #site-login .span9 {
    order: 2;
    float: none;
    width: auto;
    flex: 1 1 auto;
    text-align: right;
    padding: 0;
  }
  #site-header .hk-login-compact {
    font-size: 13px;
    line-height: 1.4;
  }
  #site-header #site-logo {
    order: 1;
    flex: 0 0 auto;
    margin: 0;
  }
  #site-header #site-logo img {
    position: relative;
    left: auto;
    margin-left: 0;
    width: auto;
    height: 72px;
    max-width: 140px;
  }
  #site-header #site-nav-container {
    margin-top: 0;
  }
  #site-login .span3 {
    display: none !important;
  }
}
@media (max-width: 480px) {
  #site-header #site-logo img {
    height: 60px;
    max-width: 120px;
  }
  #site-header .hk-login-compact {
    font-size: 12px;
    gap: 6px;
  }
}

@media (max-width: 767px) {
  .hk-link-menu a.elementor-item,
  .hk-course-link-menu a.elementor-item,
  .elementor-widget-nav-menu.elementor-nav-menu__align-center.elementor-nav-menu--dropdown-none a.elementor-item {
    padding: 4px 6px;
    font-size: 14px !important;
  }

  /* Max Mega Menu switched to button toggles with empty generated icon CSS.
     Render a font-independent hamburger / close icon with aligned pseudo-elements. */
  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1::before {
    content: none !important;
    display: none !important;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1 button.mega-toggle-standard {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    min-width: 44px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 0;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1 {
    align-self: center;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1 button.mega-toggle-standard .mega-toggle-label-closed,
  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1 button.mega-toggle-standard .mega-toggle-label-open {
    display: none !important;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1 button.mega-toggle-standard::before,
  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1 button.mega-toggle-standard::after {
    content: "" !important;
    position: absolute;
    top: 50%;
    left: 50%;
    display: block !important;
    width: 22px;
    height: 2px;
    background-color: #e2001a;
    transform-origin: center;
    font-family: inherit !important;
    font-size: 0 !important;
    color: transparent !important;
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1 button.mega-toggle-standard::before {
    transform: translate(-50%, calc(-50% - 8px));
    box-shadow: 0 8px 0 #e2001a;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-1 button.mega-toggle-standard::after {
    transform: translate(-50%, calc(-50% + 8px));
    box-shadow: none;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle.mega-menu-open .mega-toggle-block-1 button.mega-toggle-standard::before {
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: none !important;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle.mega-menu-open .mega-toggle-block-1 button.mega-toggle-standard::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    box-shadow: none !important;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-2 {
    align-self: center;
    overflow: visible;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-blocks-right {
    overflow: visible;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-2 .mega-search-wrap {
    position: relative;
    width: 44px;
    height: 40px;
    overflow: visible;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-2 .mega-search {
    position: absolute;
    right: 0;
    left: auto;
    height: 40px;
    line-height: 40px;
    margin: 0;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-2 .mega-search.mega-search-closed input[type=text] {
    width: 44px;
    height: 40px;
    padding: 0;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-2 .mega-search input[type=text] {
    width: 200px;
    height: 40px;
    line-height: 40px;
    padding: 0 44px 0 5px;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-2 .mega-search .search-icon {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    cursor: pointer;
  }

  #mega-menu-wrap-top-menu .mega-menu-toggle .mega-toggle-block-2 .mega-search .search-icon::before {
    font-family: dashicons !important;
    font-size: 26px !important;
    width: 26px !important;
    height: 26px !important;
    line-height: 26px !important;
    color: var(--hk-red, #E2001A) !important;
  }
}

/* Use the same interaction as the primary V2 project action. */
.elementor .elementor-button {
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.elementor .elementor-button:hover,
.elementor .elementor-button:focus,
.elementor .elementor-button:focus-visible {
  border-color: var(--hk-red-hover) !important;
  background-color: var(--hk-red-hover) !important;
  color: #ffffff !important;
}

/* Elementor kit default page-transition overlay uses orphan #FFBC7D when unset. */
.elementor-kit-222825 e-page-transition {
  background-color: #ffffff !important;
}

/* Footer and external widget normalization. */
.elementor-location-footer .elementor-widget-nav-menu .elementor-item {
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.elementor-location-footer .elementor-widget-text-editor {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  color: #54595F !important;
}
#cookiescript_badgetext {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Floating labels: placeholder-style label moves up on focus / filled value. */
.elementor-widget-form .elementor-field-group:has(> .elementor-field-label:not(.elementor-screen-only)):has(> .elementor-field-textual) {
  position: relative;
}

.elementor-widget-form .elementor-field-group:has(> .elementor-field-label:not(.elementor-screen-only)) > .elementor-field-label {
  position: absolute;
  top: 14px;
  left: 12px;
  z-index: 2;
  margin: 0;
  padding: 0 4px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  color: #7a7a7a;
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  background: transparent;
  transition: top 160ms ease, font-size 160ms ease, color 160ms ease, background-color 160ms ease;
}

.elementor-widget-form .elementor-field-group:has(> .elementor-field-label:not(.elementor-screen-only)):focus-within > .elementor-field-label,
.elementor-widget-form .elementor-field-group:has(> .elementor-field-label:not(.elementor-screen-only)):has(> .elementor-field-textual:not(:placeholder-shown)) > .elementor-field-label {
  top: -8px;
  left: 10px;
  color: #7a7a7a;
  font-size: 12px;
  background-color: #ffffff;
}

.elementor-widget-form .elementor-field-group:has(> .elementor-field-label:not(.elementor-screen-only)) > .elementor-field-textual {
  padding-top: 12px;
  padding-bottom: 12px;
}

.elementor-widget-form .elementor-field-group:has(> .elementor-field-label:not(.elementor-screen-only)) > textarea.elementor-field-textual {
  padding-top: 16px;
}

/* Vertically center the original Max Mega Menu search in the navbar. */
@media (min-width: 769px) {
  #mega-menu-wrap-top-menu #mega-menu-top-menu > li#mega-menu-item-150387 {
    display: flex !important;
    align-items: center;
    min-height: 30px;
  }

  #mega-menu-wrap-top-menu #mega-menu-top-menu > li#mega-menu-item-150387 .mega-search-wrap {
    margin-top: 0 !important;
    vertical-align: middle;
  }
}
