/*
 * MINI – Markenstyles fuer Divi 5 Child Theme
 * solve plus GmbH · v1.3.0
 * Farben/Schriften zentral ueber CSS-Variablen (unten) anpassen. Headlines enden laut CI mit Punkt.
 * Hilfsklassen fuer Divi-Module (Feld "CSS-Klasse"):
 *   sp-hero-text  sp-section-grey  sp-section-dark  sp-fact  sp-infobox  sp-agenda  sp-kicker
 *   sp-btn-secondary  sp-link-arrow  sp-legal  sp-jotform  sp-narrow
 */

@font-face { font-family: 'MINI Serif'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/MINISerif-Regular.woff2') format('woff2'); }
@font-face { font-family: 'MINI Serif'; font-weight: 400; font-style: italic; font-display: swap;
  src: url('../fonts/MINISerif-Italic.woff2') format('woff2'); }
@font-face { font-family: 'MINI Serif'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/MINISerif-Bold.woff2') format('woff2'); }
@font-face { font-family: 'MINI Serif Headline'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/MINISerif-Headline.woff2') format('woff2'); }
@font-face { font-family: 'MINI Sans Serif'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/MINISansSerif-Regular.woff2') format('woff2'); }
@font-face { font-family: 'MINI Sans Serif'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/MINISansSerif-Bold.woff2') format('woff2'); }

:root {
  --sp-text: #000000;
  --sp-head: #000000;
  --sp-link: #000000;
  --sp-link-hover: #4D4D4D;
  --sp-accent: #000000;
  --sp-btn-bg: #111111;
  --sp-btn-text: #FFFFFF;
  --sp-btn-border: #111111;
  --sp-btn-hover: #4D4D4D;
  --sp-btn2-bg: #FAFAFA;
  --sp-btn2-text: #111111;
  --sp-btn2-border: #111111;
  --sp-btn-radius: 56px;
  --sp-bg-grey: #F1F1F1;
  --sp-divider: #E6E6E6;
  --sp-footer-bg: #F1F1F1;
  --sp-footer-text: #000000;
  --sp-header-bg: #FFFFFF;
  --sp-header-text: #000000;
  --sp-font-head: 'MINI Serif', 'Times New Roman', Times, serif;
  --sp-font-body: 'MINI Sans Serif', 'Times New Roman', Times, serif;
  --sp-font-btn: 'MINI Sans Serif', Arial, Helvetica, sans-serif;
  --sp-head-weight: 700;
  --sp-body-weight: 400;
  --sp-btn-weight: 400;
  --sp-head-transform: uppercase;
  --sp-btn-transform: uppercase;
  --sp-content-width: 1180px;
}

/* ---------- Grundtypografie ---------- */
#page-container, #page-container .et_pb_text, #page-container .et_pb_module, #page-container input, #page-container textarea, #page-container select {
  font-family: var(--sp-font-body); font-weight: var(--sp-body-weight); color: var(--sp-text);
}
#page-container { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
#page-container strong, #page-container b { font-weight: 700; }
#page-container :is(h1, h2, h3, h4, h5, h6, .et_pb_module_header, .et_pb_slide_title) {
  font-family: var(--sp-font-head) !important; font-weight: var(--sp-head-weight); color: var(--sp-head);
  text-transform: var(--sp-head-transform); letter-spacing: 0; line-height: 1.15; padding-bottom: .4em;
}
#page-container h1 { font-size: clamp(30px, 4.2vw, 56px); }
#page-container h2 { font-size: clamp(24px, 3vw, 40px); }
#page-container h3 { font-size: clamp(20px, 2.2vw, 28px); }
#page-container h4 { font-size: 20px; }
#page-container h5, #page-container h6 { font-size: 16px; }
#page-container a { color: var(--sp-link); }
#page-container a:hover { color: var(--sp-link-hover); }
.et_pb_text a, .sp-content a { text-decoration: underline; text-underline-offset: 3px; }
.sp-kicker { font-family: var(--sp-font-btn); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-text); opacity: .8; }
.sp-narrow { max-width: 780px !important; }

/* ---------- Buttons (Divi Button-Modul ohne Einzel-Styling uebernimmt diese Werte) ---------- */
body .et_pb_button, body .sp-btn, body .et_pb_contact_submit, body .et_pb_newsletter_button {
  font-family: var(--sp-font-btn) !important; font-weight: var(--sp-btn-weight); text-transform: var(--sp-btn-transform);
  font-size: 15px; letter-spacing: .02em; line-height: 1.2 !important;
  background-color: var(--sp-btn-bg); color: var(--sp-btn-text) !important; border: 2px solid var(--sp-btn-border);
  border-radius: var(--sp-btn-radius); padding: 14px 32px !important; transition: background-color .2s, border-color .2s, color .2s;
}
body .et_pb_button:hover, body .sp-btn:hover, body .et_pb_contact_submit:hover {
  background-color: var(--sp-btn-hover) !important; border-color: var(--sp-btn-hover) !important; color: #fff !important; padding: 14px 32px !important;
}
body .et_pb_button::after, body .et_pb_button::before { display: none !important; }
body .sp-btn-secondary .et_pb_button, body .et_pb_button.sp-btn-secondary {
  background-color: var(--sp-btn2-bg); color: var(--sp-btn2-text) !important; border-color: var(--sp-btn2-border);
}
.sp-link-arrow a { font-family: var(--sp-font-btn); font-weight: var(--sp-btn-weight); text-transform: var(--sp-btn-transform); text-decoration: none !important; }
.sp-link-arrow a::after { content: " \203A"; }

/* ---------- Sektionen & Komponenten ---------- */
.et_pb_section.sp-section-grey { background-color: var(--sp-bg-grey) !important; }
.et_pb_section.sp-section-dark { background-color: #16171A !important; }
.sp-section-dark, .sp-section-dark h1, .sp-section-dark h2, .sp-section-dark h3, .sp-section-dark p { color: #fff !important; }
.sp-hero-img img { width: 100%; height: auto; display: block; }
.sp-hero-text h1 { margin-bottom: 0; }
.sp-fact { border-top: 1px solid var(--sp-divider); padding-top: 18px; }
.sp-fact h4 { font-size: 14px !important; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 4px; }
.sp-fact p { font-size: 20px; line-height: 1.4; }
.sp-infobox { background: var(--sp-bg-grey); padding: 28px 32px; }
.sp-agenda table, .entry-content .sp-agenda table { width: 100%; border-collapse: collapse; border: 0 !important; margin: 0; }
.sp-agenda td, .entry-content .sp-agenda tr td { border: 0 !important; border-bottom: 1px solid var(--sp-divider) !important; padding: 12px 8px 12px 0 !important; vertical-align: top; }
.sp-agenda td:first-child { width: 140px; font-weight: 700; white-space: nowrap; }
.sp-legal, .sp-legal p { font-size: 13px; line-height: 1.6; color: var(--sp-footer-text); }
.sp-jotform-platzhalter { padding: 40px; border: 1px dashed var(--sp-divider); text-align: center; }
.sp-jotform iframe { width: 100% !important; min-height: 600px; border: 0; }

/* ---------- Gravity Forms im Marken-Design (Orbital- und Legacy-Markup) ---------- */
#page-container .gform_wrapper { font-family: var(--sp-font-body); color: var(--sp-text);
  --gf-color-primary: var(--sp-btn-bg); --gf-color-primary-rgb: 0,0,0; --gf-ctrl-border-color: var(--sp-divider);
  --gf-ctrl-radius: 0; --gf-ctrl-btn-radius: var(--sp-btn-radius); --gf-font-family-base: inherit; }
#page-container .gform_wrapper .gfield_label, #page-container .gform_wrapper .gform-field-label { font-family: var(--sp-font-body); font-weight: 700; font-size: 15px; color: var(--sp-text); }
#page-container .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]),
#page-container .gform_wrapper select, #page-container .gform_wrapper textarea {
  font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--sp-divider); border-radius: 0; background: #fff; color: var(--sp-text); box-shadow: none; }
#page-container .gform_wrapper input:focus, #page-container .gform_wrapper select:focus, #page-container .gform_wrapper textarea:focus { border-color: var(--sp-btn-bg); outline: 2px solid var(--sp-btn-bg); outline-offset: -1px; }
#page-container .gform_wrapper .gform_footer input[type=submit], #page-container .gform_wrapper .gform_button, #page-container .gform_wrapper .gform_next_button, #page-container .gform_wrapper .gform_previous_button {
  font-family: var(--sp-font-btn) !important; font-weight: var(--sp-btn-weight); text-transform: var(--sp-btn-transform); font-size: 16px;
  background: var(--sp-btn-bg) !important; color: var(--sp-btn-text) !important; border: 2px solid var(--sp-btn-border) !important; border-radius: var(--sp-btn-radius) !important; padding: 12px 28px !important; cursor: pointer; }
#page-container .gform_wrapper .gform_footer input[type=submit]:hover, #page-container .gform_wrapper .gform_button:hover { background: var(--sp-btn-hover) !important; border-color: var(--sp-btn-hover) !important; }
#page-container .gform_wrapper .gfield_required { color: var(--sp-text); }
#page-container .gform_wrapper .gfield_error input, #page-container .gform_wrapper .gfield_error select { border-color: #CD3430; }
#page-container .gform_wrapper .validation_message, #page-container .gform_wrapper .gform_validation_errors { color: #CD3430; }
#page-container .gform_confirmation_message { padding: 24px; background: var(--sp-bg-grey); }

/* ---------- Header (Divi Standard-Header; bei Theme-Builder-Header greifen Divi-Einstellungen) ---------- */
#main-header, #main-header .container { background-color: var(--sp-header-bg); }
#main-header { box-shadow: 0 1px 0 var(--sp-divider) !important; }
#top-menu a, .et_mobile_menu a { font-family: var(--sp-font-btn); font-weight: var(--sp-btn-weight); text-transform: var(--sp-btn-transform);
  color: var(--sp-header-text) !important; font-size: 14px; letter-spacing: .03em; }
#top-menu li.current-menu-item > a, #top-menu a:hover { color: var(--sp-link) !important; opacity: 1; }
#logo { max-height: 44% !important; }
.mobile_menu_bar::before { color: var(--sp-header-text) !important; }

/* ---------- Footer (abgespeckt: nur Unterzeile) ---------- */
#main-footer { background-color: var(--sp-footer-bg) !important; border-top: 1px solid var(--sp-divider); }
#footer-bottom { background-color: var(--sp-footer-bg) !important; }
#footer-info, #footer-info a { color: var(--sp-footer-text) !important; font-size: 13px; }
#footer-info a { text-decoration: underline; }
#footer-bottom .et-social-icons, #footer-widgets { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .et_pb_section { padding: 40px 0; }
  .sp-agenda td:first-child { width: 96px; }
}
@media (max-width: 767px) {
  body .et_pb_button { display: block !important; text-align: center !important; width: 100% !important; box-sizing: border-box !important; }
  .sp-infobox { padding: 20px; }
  .sp-agenda td, .entry-content .sp-agenda tr td { display: block; width: 100% !important; padding: 2px 0 !important; border-bottom: 0 !important; }
  .sp-agenda tr { display: block; border-bottom: 1px solid var(--sp-divider); padding: 10px 0; }
}
/* ---------- Barrierefreiheit (WCAG 2.1 AA) ---------- */
#page-container a:focus-visible, body .et_pb_button:focus-visible, #main-header a:focus-visible,
#page-container .gform_wrapper .gform_button:focus-visible { outline: 2px solid var(--sp-link) !important; outline-offset: 3px !important; }
body .sp-hero-col .et_pb_button:focus-visible, .sp-section-dark a:focus-visible, .sp-section-dark .et_pb_button:focus-visible { outline-color: #fff !important; }
@media (prefers-reduced-motion: reduce) {
  #main-header, body .et_pb_button, #page-container a { transition: none !important; }
}

/* ---------- MINI: Frame (Raccoon CI) – eine Farbe je Seite, passend zur Fahrzeugfarbe ---------- */
:root {
  --sp-frame-yellow: #FFE419;
  --sp-frame-orange: #ED510D;
  --sp-frame-red: #B51919;
  --sp-frame-light-blue: #56C5E5;
  --sp-frame-blue: #2D46DF;
  --sp-frame-turquoise: #26D6C3;
  --sp-frame-green: #01693E;
  --sp-frame: var(--sp-frame-yellow);
}
.sp-frame { position: relative; }
.sp-frame::after { content: ""; position: absolute; inset: 24px; border: 3px solid var(--sp-frame); pointer-events: none; }
.sp-frame--orange { --sp-frame: var(--sp-frame-orange); }  .sp-frame--red { --sp-frame: var(--sp-frame-red); }
.sp-frame--light-blue { --sp-frame: var(--sp-frame-light-blue); }  .sp-frame--blue { --sp-frame: var(--sp-frame-blue); }
.sp-frame--turquoise { --sp-frame: var(--sp-frame-turquoise); }  .sp-frame--green { --sp-frame: var(--sp-frame-green); }
/* Headline-Mix: Subline in MINI Serif Italic */
.sp-subline, .sp-hero-text h2 em { font-family: 'MINI Serif', serif; font-style: italic; text-transform: none; font-weight: 400; }
/* kurzer Strich unter Headlines (wie MINI E-Mail) */
.sp-rule::after { content: ""; display: block; width: 60px; height: 4px; background: #000; margin-top: 16px; }

/* =====================================================================
   MINI Web-Look nach mini.de (Stand 09/2026)
   ===================================================================== */
:root { --sp-gutter: clamp(20px, 3.7vw, 56px); }
#page-container, #page-container .et_pb_text, #page-container .et_pb_module { font-size: 18px; line-height: 24px; }
#page-container h1 { font-size: clamp(30px, 3.4vw, 48px) !important; line-height: 1 !important; }
#page-container h2 { font-size: clamp(28px, 3.4vw, 48px) !important; line-height: 1 !important; }
#page-container h3 { font-size: clamp(22px, 2.2vw, 32px) !important; line-height: 1.05 !important; }
#page-container :is(h1, h2, h3) { padding-bottom: 16px; }
#page-container h4 { font-family: 'MINI Sans Serif', Arial, sans-serif !important; font-size: 14px !important; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.sp-kicker { font-family: 'MINI Sans Serif', Arial, sans-serif; font-size: 14px; letter-spacing: .08em; opacity: 1; color: #666; }
.sp-lead { font-size: 20px; line-height: 30px; }
.sp-center, .sp-center h2 { text-align: center; }
.sp-legal, .sp-legal p { font-family: 'MINI Serif', serif; font-size: 12px; line-height: 18px; color: #666; }
.sp-fact p { font-family: 'MINI Serif', serif; font-size: 24px; line-height: 30px; }

/* Zeilen breiter wie mini.de (Rand links/rechts statt schmaler 1080-px-Spalte) */
.et_pb_section:not(.sp-hero) .et_pb_row:not(.sp-narrow) { width: calc(100% - 2 * var(--sp-gutter)) !important; max-width: 1440px !important; }

/* Pill-Buttons */
body .et_pb_button, body .sp-btn, body .et_pb_contact_submit { font-size: 18px !important; line-height: 18px !important; padding: 11px 24px !important;
  border-radius: 56px !important; border-width: 2px !important; letter-spacing: 0; text-transform: none; }
body .et_pb_button:hover, body .sp-btn:hover { padding: 11px 24px !important; }

/* Hero mit Text auf dem Bild */
.sp-hero-col { display: grid !important; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
.sp-hero-col > .et_pb_module, .sp-hero-col > .et_pb_button_module_wrapper { grid-column: 1; margin: 0 !important; }
.sp-hero-col > .sp-hero-img { grid-row: 1 / 4; position: relative; }
.sp-hero-col > .sp-hero-img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,0) 65%); }
.sp-hero-col > .sp-hero-text { grid-row: 1; z-index: 2; padding: clamp(24px, 4vw, 64px) var(--sp-gutter) 0 !important; max-width: 760px; }
.sp-hero-col > .et_pb_button_module_wrapper { grid-row: 2; z-index: 2; padding: 20px var(--sp-gutter) 0; align-self: start; justify-self: start; }
.sp-hero-text, .sp-hero-text h1, .sp-hero-text p { color: #fff !important; }
.sp-hero-text .sp-subline { font-size: clamp(24px, 3.4vw, 48px); line-height: 1.5; padding-bottom: 0; }
body .sp-hero-btn.et_pb_button, body .sp-hero-col .et_pb_button { background-color: #fff !important; color: #000 !important; border-color: #fff !important; width: auto !important; display: inline-block !important; }
body .sp-hero-col .et_pb_button:hover { background-color: #E6E6E6 !important; border-color: #E6E6E6 !important; color: #000 !important; }
@media (max-width: 767px) {
  .sp-hero-col > .sp-hero-img::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%); }
  body .sp-hero-col .et_pb_button { width: auto !important; display: inline-block !important; }
}

/* Textspalten linksbuendig am Rand (wie mini.de) statt zentriert */
.et_pb_section:not(.sp-hero) .et_pb_row.sp-narrow { width: calc(100% - 2 * var(--sp-gutter)) !important; max-width: 1440px !important; margin-left: auto !important; margin-right: auto !important; }
.et_pb_row.sp-narrow .et_pb_module { max-width: 780px; }

/* Header: volle Breite, Logo links, Navigation direkt daneben (wie mini.de) */
#main-header .container { width: calc(100% - 2 * clamp(20px, 2.1vw, 32px)) !important; max-width: none !important; }
@media (min-width: 981px) {
  #main-header #et-top-navigation { float: left !important; padding-left: 0 !important; margin-left: 150px; }
  #main-header #et_top_search { position: absolute; right: 0; }
}
/* Header ein-/ausblenden beim Scrollen (JS in functions.php) */
#main-header { transition: transform .3s ease, background-color .3s ease !important; will-change: transform; }
body.sp-hdr-hidden #main-header { transform: translateY(calc(-100% - 48px)) !important; }
#main-header.et-fixed-header { box-shadow: none !important; }
/* Header beim Wiedereinblenden in voller Hoehe (Divi verkleinert ihn sonst beim Scrollen) */
@media (min-width: 981px) {
  #main-header.et-fixed-header #et-top-navigation { padding-top: 33px !important; }
  #main-header.et-fixed-header #top-menu > li > a { padding-bottom: 33px !important; }
  #main-header.et-fixed-header #et_top_search { margin-top: 0 !important; }
  #main-header.et-fixed-header #et_search_icon:before { margin-top: 0 !important; }
}

/* Header weiss, Navigation MINI Sans */
#main-header { box-shadow: none !important; border-bottom: 1px solid #E6E6E6; }
#top-menu a, .et_mobile_menu a { font-family: 'MINI Sans Serif', Arial, sans-serif !important; font-size: 16px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; color: #000 !important; }
#top-menu li.current-menu-item > a, #top-menu a:hover { color: #000 !important; text-decoration: underline; text-underline-offset: 6px; }

/* Footer wie mini.de: weiss, zentriert, Links unterstrichen, Logo + (c) */
#main-footer, #footer-bottom { background: #fff !important; border-top: 0; }
#footer-bottom { padding: 48px 0 40px; }
#footer-bottom .container { text-align: center; }
#footer-info { float: none !important; display: flex !important; flex-direction: column; align-items: center; text-align: center;
  font-family: 'MINI Sans Serif', Arial, sans-serif; font-size: 12px !important; line-height: 20px; color: #000 !important; }
#footer-info .sp-footer-links { order: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; max-width: 900px; }
#footer-info a { color: #000 !important; font-weight: 400 !important; text-decoration: underline; text-underline-offset: 3px; margin: 0; }
#footer-info::after { order: 2; content: ""; display: block; width: 72px; height: 32px; margin: 56px auto 16px; background: url('../img/logo.svg') center / contain no-repeat; }
#footer-info .sp-copy { order: 3; }
