/*
Theme Name: Malermeister Klüpfel
Description: Relaunch-Design für Malermeister Karl Klüpfel & Sohn
Author: Florian Turobin | © 2026 arax.systems
Version: 1.0
*/

/**
 * CSS Reset
 */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  outline: none;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}
strong {
  font-weight: 700;
}
input, textarea, button {
  outline: none;
  font-family: inherit;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
}

/**
 * Inter — lokal eingebettet (Variable Font, deckt 400–700 ab)
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/**
 * Design-Tokens
 */
:root {
  --c-magenta: #6D336D;
  --c-green: #00C98D;
  --c-red: #FF0202;
  --c-black: #000000;
  --c-dark: #363636;
  --c-gray-bg: #FAFAFA;
  --c-box-bg: rgba(239, 239, 239, 0.49);
  --c-news-bg: #F1F1F1;
  --c-date: #616161;
  --c-border: #E1E8EF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --container: 1200px;
}

/**
 * Allgemein
 */
html {
  scroll-behavior: smooth;
}
body {
  background: white;
  font-size: 15px;
  color: var(--c-black);
  font-weight: 400;
  font-family: var(--font);
  overflow-x: hidden;
}
.clear {
  clear: both;
}
a {
  color: var(--c-black);
  text-decoration: none;
}
b, strong {
  font-weight: 700;
}
::selection {
  color: white;
  background: var(--c-magenta);
}
::-moz-selection {
  color: white;
  background: var(--c-magenta);
}

/* Grund-Typografie für generische Inhalte (Blog, Unterseiten) */
h1, .h1 {
  font-family: var(--font);
  font-size: 32px;
  color: var(--c-black);
  font-weight: 700;
  padding: 20px 0;
  text-align: left;
  line-height: 1.3;
}
h2, .h2 {
  font-family: var(--font);
  font-weight: 400;
  font-size: 28px;
  text-align: left;
  color: var(--c-green);
  padding: 13px 0;
  line-height: 1.4;
}
h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 21px;
  text-align: left;
  color: var(--c-black);
  padding: 12px 0;
  line-height: 1.3;
}
h4 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  text-align: left;
  color: var(--c-black);
  padding: 12px 0;
  line-height: 1.3;
}
p {
  line-height: 1.8;
  font-size: 15px;
  font-family: var(--font);
  color: var(--c-black);
  padding: 15px 0;
}
hr {
  border: 0;
  height: 1px;
  background: #e2e2e2;
}

/**
 * Reusable: Container / Section basics
 */
.content {
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  margin: 0 auto;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .content {
    padding: 0 20px;
  }
}

/* Eyebrow-Claim — uppercase, bold, grün, wird auf jeder Startseiten-Sektion verwendet */
.mk-claim {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--c-green);
  letter-spacing: 0.5px;
}
.mk-claim--center {
  text-align: center;
}

/* Section-Titel */
.mk-section-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 32px;
  color: var(--c-black);
  line-height: 1.3;
  margin-top: 10px;
}
.mk-section-title--center {
  text-align: center;
}
.mk-section-title mark,
.mk-section-title .mk-red,
.mk-title-red {
  color: var(--c-red);
  background: none;
}

/* Section-Header Block (Claim + Titel + Divider), zentriert */
.mk-section-head {
  text-align: center;
  margin-bottom: 48px;
}
.mk-section-head .mk-divider {
  margin: 20px auto 0;
}

/* Drei-Farben Divider-SVG unter Sektionstiteln */
.mk-divider {
  display: block;
  width: 262px;
  height: 5px;
}

/**
 * Reusable Buttons
 */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0 28px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .15s ease, box-shadow .2s ease;
  border: 2px solid transparent;
}
.mk-btn:hover {
  transform: translateY(-2px);
}
.mk-btn:active {
  transform: translateY(0);
}
.mk-btn--outline {
  background: transparent;
  border-color: var(--c-magenta);
  color: var(--c-magenta);
  box-shadow: 0 4px 4px -3px rgba(0, 0, 0, 0.25);
}
.mk-btn--outline:hover {
  background: var(--c-magenta);
  color: white;
}
.mk-btn--filled {
  background: var(--c-magenta);
  border-color: var(--c-magenta);
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 4px -3px rgba(0, 0, 0, 0.25);
}
.mk-btn--filled:hover {
  background: #59295a;
  border-color: #59295a;
  color: white;
}
.mk-btn--white {
  background: white;
  color: var(--c-black);
  font-weight: 400;
  font-size: 15px;
  border-radius: 18px;
  height: 56px;
  padding: 0 28px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  border-color: transparent;
}
.mk-btn--white:hover {
  background: #f1f1f1;
}

/**
 * Header / Navigation
 */
#header_container {
  width: 100%;
  height: auto;
  padding: 10px 0 0;
  position: relative;
  z-index: 200;
  background: white;
  overflow: hidden;
}
#header_container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#logo {
  display: block;
  flex: 0 0 auto;
  align-self: flex-end;
  max-width: 50%;
  overflow: hidden;
}
#logo img {
  display: block;
  height: 100px;
  width: auto;
  max-width: none;
}

#navigation {
  height: auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  /* #header_container has 10px top / 0 bottom padding (so the logo can sit
     flush against the hero below). That asymmetry pulls flex-centered content
     5px below the header box's true center; nudge nav back up to compensate
     so it centers against the whole header (top of page to top of hero),
     not against the logo's own row. Re-derive this offset if that padding changes. */
  margin-top: -10px;
}
#navigation ul {
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
}
#navigation ul li {
  text-align: right;
  font-size: 15px;
  margin-left: 38px;
  position: relative;
  display: flex;
  align-items: center;
}
#navigation ul li:first-child {
  margin-left: 0;
}
#navigation ul li a {
  display: flex;
  align-items: center;
  height: 44px;
  color: var(--c-black);
  text-decoration: none;
  font-weight: 400;
  font-family: var(--font);
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
}
#navigation ul li a:hover {
  color: var(--c-magenta);
}
#navigation ul li.current-menu-item > a,
#navigation ul li.current_page_item > a {
  color: var(--c-magenta);
  font-weight: 700;
  border-bottom: 2px solid var(--c-magenta);
}

/* Letzter Menüpunkt: grüner Pill-Button */
#navigation ul#menu-hauptmenue > li:last-child {
  margin-left: 38px;
}
#navigation ul#menu-hauptmenue > li:last-child > a {
  background: var(--c-green);
  color: white !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 24px;
  box-shadow: 0px 4px 4px -3px rgba(0, 0, 0, 0.25);
  border-bottom: none !important;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
#navigation ul#menu-hauptmenue > li:last-child > a:hover {
  background: #00a878;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0px 6px 10px -3px rgba(0, 0, 0, 0.3);
}
#navigation ul li.current-menu-item:last-child > a,
#navigation ul li.current_page_item:last-child > a {
  border-bottom: none;
}

/* Untermenüs (Dropdown) */
#navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  z-index: 50;
  border: 1px solid #e7e7e7;
  background: white;
  min-width: 200px;
  flex-direction: column;
  align-items: stretch;
}
#navigation ul ul li {
  text-align: left;
  margin-left: 0;
}
#navigation ul ul li a {
  background: white;
  font-size: 14px;
  padding: 11px 16px;
  border-bottom: none;
}
#navigation ul ul li:hover a {
  background: #f6eef6;
  color: var(--c-magenta);
}
#navigation ul li:hover > ul {
  display: flex;
}

/* Burger (mobil) */
.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--c-black);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.burger span:nth-child(1) { top: 6px; }
.burger span:nth-child(2) { top: 15px; }
.burger span:nth-child(3) { top: 24px; }
.nav-open .burger span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

.mk-mobile-menu-bar {
  display: none;
}
.mk-mobile-menu-close {
  display: none;
}

@media screen and (max-width: 1012px) {
  #header_container .content {
    flex-wrap: wrap;
    gap: 12px;
  }
  #logo {
    max-width: 260px;
  }
  #logo img {
    height: 56px;
  }
  .burger {
    display: block;
    margin-left: auto;
    position: relative;
    z-index: 210;
  }
  body.nav-open .burger {
    visibility: hidden;
  }
  body.nav-open #header_container {
    background: transparent;
  }
  body.nav-open #header_container .content > #logo {
    visibility: hidden;
  }
  #navigation {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    order: 3;
  }
  #navigation > .mk-mobile-nav-panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: white;
    z-index: 190;
    overflow-y: auto;
  }
  #navigation.is-open > .mk-mobile-nav-panel {
    display: flex;
  }
  /* WP-Adminbar liegt fix über allem (auch unserem Fullscreen-Panel) –
     Panel-Inhalt entsprechend nach unten versetzen, sonst überlappt sie die eigene Logo/Schließen-Leiste. */
  body.admin-bar #navigation > .mk-mobile-nav-panel {
    padding-top: 32px;
  }
  @media screen and (max-width: 782px) {
    body.admin-bar #navigation > .mk-mobile-nav-panel {
      padding-top: 46px;
    }
  }
  body.nav-open {
    overflow: hidden;
  }
  .mk-mobile-menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 10px 20px;
  }
  .mk-mobile-menu-logo img {
    display: block;
    height: 52px;
    width: auto;
  }
  .mk-mobile-menu-close {
    display: block;
    position: relative;
    width: 40px;
    height: 34px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .mk-mobile-menu-close span {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 16px;
    height: 3px;
    border-radius: 2px;
    background: var(--c-black);
  }
  .mk-mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
  .mk-mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }
  #navigation ul#menu-hauptmenue {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  #navigation ul#menu-hauptmenue > li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #eee;
  }
  #navigation ul#menu-hauptmenue > li:last-child {
    margin-left: 0;
    border-bottom: 0;
  }
  #navigation ul#menu-hauptmenue > li > a {
    width: 100%;
    padding: 16px 18px;
    text-align: left;
    border-bottom: none !important;
  }
  /* Anfragen verhält sich mobil wie ein normaler Menüpunkt (kein Pill-Button) */
  #navigation ul#menu-hauptmenue > li:last-child > a {
    background: transparent;
    color: var(--c-black) !important;
    font-weight: 400;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    justify-content: flex-start;
    transform: none;
  }
  #navigation ul#menu-hauptmenue > li.current-menu-item > a,
  #navigation ul#menu-hauptmenue > li.current_page_item > a {
    border-bottom: none;
    background: var(--c-magenta) !important;
    color: white !important;
    font-weight: 700 !important;
  }
  #navigation ul ul {
    position: relative;
    border: none;
    display: none;
  }
  #navigation ul li.sub-open > ul {
    display: flex;
  }
  #navigation ul ul li a {
    padding: 10px 18px 10px 30px;
  }
  #content_container {
    margin-top: 24px;
  }
}

/**
 * Content-Bereich (generisch, für Unterseiten/Blog)
 */
#content_container {
  margin: 50px 0;
}
.main_content {
  width: 100%;
}
#content_container ul, #content_container ol {
  margin-left: 30px;
}
#content_container ul li {
  list-style: disc;
  line-height: 2;
}
#content_container ol li {
  list-style: decimal;
  line-height: 2;
}
#content_container a {
  color: var(--c-black);
  text-decoration: underline;
}
#content_container a:hover {
  color: var(--c-magenta);
  text-decoration: none;
}
img.alignright {
  float: right;
  padding-left: 10px;
  padding-bottom: 10px;
}
img.alignleft {
  float: left;
  padding-right: 10px;
  padding-bottom: 10px;
}

.single_entry {
  margin-bottom: 50px;
}
.single_entry .post_meta {
  margin-top: 20px;
  color: #999;
}

/* Sidebar */
.sidebar {
  width: 25.5%;
  float: right;
}
.sidebar .widget-element {
  margin-bottom: 30px;
}
#content_container .sidebar ul,
#content_container .sidebar ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}
#content_container .content .sidebar a {
  text-decoration: none;
  color: var(--c-black);
}
#content_container .content .sidebar a:hover {
  text-decoration: underline;
}

/* Formulare / Suche */
input, textarea {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: white;
  border: 1px solid #dadada;
  outline: none;
  padding: 10px;
  font-size: 14px;
  font-family: var(--font);
  resize: none;
  border-radius: 8px;
}
input[type="checkbox"] {
  appearance: checkbox;
  -moz-appearance: checkbox;
  -webkit-appearance: checkbox;
}
input[type="submit"], button[type="submit"] {
  background: var(--c-magenta);
  color: white;
  font-weight: 700;
  border: 1px solid var(--c-magenta);
  border-radius: 10px;
  font-size: 14px;
  padding: 12px 24px;
  cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:hover {
  background: #59295a;
  border-color: #59295a;
}
.search-box input {
  padding: 15px 20px;
  border-radius: 15px;
}

/**
 * Footer
 */
#footer_container {
  width: 100%;
  color: white;
  background: var(--c-dark);
  line-height: 1.8;
  font-size: 13px;
  padding: 50px 0 30px;
}
#footer_container .footer_inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 80px;
  padding-bottom: 30px;
}
.footer_widget {
  color: white;
  max-width: 420px;
}
.footer_widget p {
  color: white;
  padding: 0 0 6px;
  line-height: 1.5;
  font-size: 13px;
}
.footer_widget a {
  color: white;
}
.footer_widget a:hover {
  text-decoration: underline;
}
.footer_nav__title {
  display: block;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 10px;
}
.footer_nav ul {
  display: flex;
  flex-direction: column;
}
.footer_nav ul li a {
  display: block;
  color: white;
  font-size: 13px;
  line-height: 1.8;
  text-decoration: none;
}
.footer_nav ul li a:hover {
  text-decoration: underline;
}
.footer_bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
}
.copyright {
  text-align: right;
  color: white;
  font-size: 13px;
}

/* Responsive Footer */
@media screen and (max-width: 1012px) {
  #footer_container .footer_inner {
    flex-direction: column;
  }
  .footer_bottom {
    justify-content: center;
  }
  .copyright {
    text-align: center;
  }
}

/**
 * Cookie-Banner (Plugin "Cookie Notice & Compliance for GDPR / CCPA" von Hu-manity.co)
 * Das Plugin setzt Inline-Styles (Hintergrundfarbe der Buttons/des Banners) direkt
 * über seine eigenen Einstellungen – diese werden hier mit !important überschrieben,
 * damit die Markenfarben/Schrift greifen.
 */
#cookie-notice {
  background: var(--c-magenta) !important;
  font-family: var(--font);
  z-index: 999999;
}
#cookie-notice .cookie-notice-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #fff;
}
#cookie-notice #cn-notice-text {
  flex: 1 1 320px;
  min-width: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}
#cookie-notice .cn-buttons-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
#cookie-notice .cn-button {
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
#cookie-notice #cn-accept-cookie {
  background: var(--c-green) !important;
  color: #fff !important;
  box-shadow: 0px 4px 4px -3px rgba(0, 0, 0, 0.25);
}
#cookie-notice #cn-accept-cookie:hover {
  background: #00a878 !important;
  transform: translateY(-2px);
  box-shadow: 0px 6px 10px -3px rgba(0, 0, 0, 0.3);
}
#cookie-notice #cn-more-info {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
#cookie-notice #cn-more-info:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.7);
}
#cookie-notice #cn-close-notice {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .2s ease;
}
#cookie-notice #cn-close-notice:hover {
  opacity: 1;
}
#cookie-notice #cn-close-notice::before,
#cookie-notice #cn-close-notice::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #fff;
}
#cookie-notice #cn-close-notice::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#cookie-notice #cn-close-notice::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media screen and (max-width: 600px) {
  #cookie-notice .cookie-notice-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px;
  }
  #cookie-notice .cn-buttons-container {
    justify-content: center;
  }
}

