/*
Theme Name: Mahrt Bootstrap Theme
Theme URI: https://mahrt.info/
Author: Jo. Paulus
Author URI: https://mahrt.info/
Description: Schlankes WordPress-Theme auf Basis von Bootstrap 5.3 mit lokalen Assets.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mahrt-bootstrap-theme
*/

:root {

  /*--mh-primary: #1BCBD0;*/
  --mh-primary: #ff2626;
  
  
  --mh-primary-rgb: 15, 118, 110;
  --mh-secondary: #a9b6c1;

  --mh-accent: #f97316;

  --mh-bg: #fff;
  --mh-surface: #ffffff;
  --mh-border: #e5e7eb;
  --mh-text: #111827;
  --mh-text-muted: #6b7280;

  --bs-body-bg: var(--mh-bg);
  --bs-body-color: var(--mh-text);
  --bs-primary: var(--mh-primary);
  --bs-primary-rgb: var(--mh-primary-rgb);
  --bs-secondary: var(--mh-secondary);
  --bs-link-color: var(--mh-primary);
  --bs-link-hover-color: #115e59;
  --bs-border-color: var(--mh-border);
  --bs-border-radius:0;
}


/* 
=========================================================
   Basis
========================================================= 
*/

/* zen-kaku-gothic-new-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 300;
  src: url('./assets/fonts/zen-kaku-gothic-new-v18-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* zen-kaku-gothic-new-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 400;
  src: url('./assets/fonts/zen-kaku-gothic-new-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* zen-kaku-gothic-new-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  src: url('./assets/fonts/zen-kaku-gothic-new-v18-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* zen-kaku-gothic-new-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  src: url('./assets/fonts/zen-kaku-gothic-new-v18-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* zen-kaku-gothic-new-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 900;
  src: url('./assets/fonts/zen-kaku-gothic-new-v18-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


html {
  scroll-behavior: smooth;
}

a{
  color:#ff2626;
}
btn-outline-primary{
  --bs-btn-color:#0d6efd;
  --bs-btn-border-color:#ff2626;
  --bs-btn-hover-color:#fff;
  --bs-btn-hover-bg:#ff2626;
  --bs-btn-hover-border-color:#ff2626;
  --bs-btn-focus-shadow-rgb:13,110,253;
  --bs-btn-active-color:#fff;
  --bs-btn-active-bg:#ff2626;
  --bs-btn-active-border-color:#ff2626;
  --bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color:#ff2626;
  --bs-btn-disabled-bg:transparent;
  --bs-btn-disabled-border-color:#ff2626;
  --bs-gradient:none;
}

body {
  margin: 0;
  padding-top: 0;
  /*font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
  font-family:Zen Kaku Gothic New, sans-serif;  /* Fallback to system font */
  
  background-color: var(--mh-bg);
  color: var(--mh-text);
}

main {
  background-color: transparent;
}

.card,
.border,
.navbar,
.site-footer {
  background-color: var(--mh-surface);
}

/* =========================================================
   Header Sticky
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: #ffffff;
  /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);*/
}


/* =========================================================
   Topbar
========================================================= */

.topbar {
  background: #abb8c3;
  color: var(--mh-text);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-text {
  white-space: nowrap;
}

.topbar-left {
  min-width: 0;
}

.topbar-switcher-wrap {
  min-width: 170px;
}

.topbar-switcher {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--mh-text);
}

.topbar-switcher:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.12);
}

.topbar-switcher option {
  color: #111827;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar a {
  color: var(--mh-text);
}

.topbar a:hover,
.topbar a:focus {
  color: #ff2626;
}


/* =========================================================
   Navigation
========================================================= */

.mainnav-wrapper {
  background: #ffffff;
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  text-decoration: none;
}

.navbar-brand svg {
  margin-right: .5rem;
}

.brand-logo .custom-logo-link,
.brand-logo .custom-logo {
  display: block;
}

.brand-logo .custom-logo {
  max-height: 70px;
  width: auto;
}

.brand-title {
  color: #e4342f;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.custom-logo-link {
  display: inline-block;
  max-width: 100%;
}

.custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.site-branding {
  max-width: 100%;
}

@media (max-width: 768px) {
  .custom-logo {
    max-height: 48px;
  }
}

@media (max-width: 480px) {
  .custom-logo {
    max-height: 36px;
  }
}

/* =========================================================
   Menü
========================================================= */

.main-menu,
.main-menu ul,
.main-menu li {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-menu > li > a {
  color: #111827;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.98rem;
  padding: 0.75rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.main-menu > li > a {
    transition:
        color .2s ease,
        font-weight .2s ease;
}

/* Hover */
.main-menu > li > a:hover,
.main-menu > li > a:focus {
    color: var(--mh-primary);
    font-weight: 600;
}

/* Aktive Seite */
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a,
.main-menu > li.active > a,
.main-menu > li.is-active > a,
.main-menu > li > a.active {
    color: var(--mh-primary)!important;
    font-weight: 600;
}


.main-menu .dropdown-menu {
  border: 1px solid #e5e7eb;
  border-radius: 0px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.10);
  padding: 0.5rem;
  margin-top: 0.75rem;
}

.main-menu .dropdown-item {
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.main-menu .dropdown-item:hover,
.main-menu .dropdown-item:focus,
.main-menu .dropdown-item.active {
  background: #cccccc;
  color: var(--mh-primary);
}


/* Multi Level Dropdown */

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
}

/* =========================================================
   Buttons
========================================================= */

.btn-primary {
  background-color: var(--mh-primary);
  border-color: var(--mh-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #115e59;
  border-color: #115e59;
}

.btn-outline-secondary {
  color: var(--mh-secondary);
  border-color: var(--mh-border);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: var(--mh-primary);
  background-color: #e0f2f1;
  border-color: #bae6fd;
}


/* =========================================================
   Footer
========================================================= */

.site-footer {
  background-color: var(--mh-secondary);
  color: var(--mh-text);
}

.site-footer a {
  color: var(--mh-text);
}

.site-footer a:hover {
  color: #a8252b;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991.98px) {

  .topbar {
    display: none !important;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .main-menu {
    padding-top: 1rem;
  }

  .main-menu > li > a {
    padding: 0.8rem 0;
    border-bottom: 0;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-contact {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .navbar-brand {
    width: 100%;
    justify-content: flex-start !important;
    text-align: left;
  }

  .navbar > .container,
  .navbar > .container-fluid {
    align-items: flex-start;
  }

  .site-header {
    position: relative !important;
    top: auto !important;
  }

}

@media (max-width: 800px) {
  .button-border {
    border-bottom: 5px solid #fff !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
  }

}


/* =========================================================
   Gutenberg Seitenvorlage mit Slideshow
========================================================= */

:root {
  --mh-container-max: 1300px;
  --mh-red: #e4342f;
  --mh-gradient-gray: linear-gradient(90deg, #858e99 0%, #E9EEF3 100%);
}

/* Slideshow Header */
.page-slideshow-header {
  width: 100%;
  background: transparent;
}

.page-slideshow-header .mh-content-container {
  max-width: var(--mh-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Hauptbereich */
.gutenberg-page-template {
  width: 100%;
}

/* Standard-Blöcke maximal 1300px breit */
.gutenberg-page-template > * {
  max-width: var(--mh-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Gutenberg Wide / Full */
.gutenberg-page-template .alignwide {
  max-width: var(--mh-container-max);
}

.gutenberg-page-template .alignfull {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Innerer Inhalt in vollbreiten Bereichen bleibt max. 1300px */
.gutenberg-page-template .alignfull > * {
  max-width: var(--mh-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Gruppenblöcke mit Hintergrund über volle Breite */
.gutenberg-page-template .wp-block-group.alignfull,
.gutenberg-page-template .wp-block-cover.alignfull {
  max-width: none;
  width: 100%;
}

/* Topbar und Footer mit grauem Verlauf */
.topbar,
.site-footer {
  background: var(--mh-gradient-gray);
}

/* Akzentfarbe */
.has-mahrt-red-color {
  color: var(--mh-red);
}

.has-mahrt-red-background-color {
  background-color: var(--mh-red);
}

/* Grauer Verlauf als Gutenberg-Klasse */
.has-mahrt-gray-gradient-gradient-background {
  background: var(--mh-gradient-gray);
}

