/*
 Theme Name: Divi-Mastermind-Child-Theme
 Theme URI: https://www.divimastermind.com/
 Description: Dies ist ein <b>ready-to-start</b> Child-Theme f&uuml;r Divi. Entwickelt und bereitgestellt von den Divi Masterminds. Dieses Theme beinhaltet alle notwendigen Dateien, um den schnellen und einfach Start zu erm&ouml;glichen.
 Author: Divi Mastermind - Benny Hozjan und Frank Oschatz
 Author URI: https://divimastermind.com/
 Template: Divi
 Version: 1.0.0
 Tag: divi, child-theme, rawbone, easy-to-use, mastermind, german-group, 
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/*  ==================================================================
	STANDARD CSS =====================================================
	==================================================================  */

:root {
  /* Fluide Größen: 320px → 1440px Viewport */
  --fs-h1: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);        /* 36px → 64px */
  --fs-h2: clamp(1.75rem, 1.536rem + 1.071vw, 2.5rem);   /* 28px → 40px */
  --fs-h3: clamp(1.375rem, 1.268rem + 0.536vw, 1.75rem); /* 22px → 28px */
  --fs-h4: clamp(1.125rem, 1.054rem + 0.357vw, 1.375rem); /* 18px → 22px */
  --fs-h5: clamp(1rem, 0.964rem + 0.179vw, 1.125rem);     /* 16px → 18px */

  /* Feste Größen (kein Skalieren nötig) */
  --fs-body: 1rem;       /* 16px */
  --fs-button: 1rem;     /* 16px */
  --fs-small: 0.875rem;  /* 14px */
  --fs-caption: 0.75rem; /* 12px */

  /* Fluide Zeilenhöhen: 320px → 1440px Viewport */
  --lh-h1: clamp(2.5rem, 1.929rem + 2.857vw, 4.5rem);   /* 40px → 72px */
  --lh-h2: clamp(2rem, 1.714rem + 1.429vw, 3rem);       /* 32px → 48px */
  --lh-h3: clamp(1.75rem, 1.607rem + 0.714vw, 2.25rem); /* 28px → 36px */
  --lh-h4: clamp(1.5rem, 1.429rem + 0.357vw, 1.75rem);  /* 24px → 28px */
  --lh-h5: 1.5rem;                                      /* 24px, fix */

  /* Feste Zeilenhöhen */
  --lh-body: 1.5rem;     /* 24px */
  --lh-button: 1.5rem;   /* 24px */
  --lh-small: 1.25rem;   /* 20px */
  --lh-caption: 1rem;    /* 16px */
  
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-sidebar: system-ui, sans-serif;
  --et_global_body_font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 
:not(.et-vb-sidebar-row-wrapper,
     .et-vb-sidebar-row-wrapper *,
     .et-vb-page-bar,
     .et-vb-page-bar *,
     .et-vb-right-click-options,
     .et-vb-right-click-options *,
     .et-vb-right-click-option,
     .et-vb-right-click-option *,
     .et-vb-modal,
     .et-vb-modal *,
     .et-vb-icon-manager,
     .et-vb-icon-manager *) {
  font-family: var(--font-main);
}

html {
  font-size: 100%;
}

body:not(.et-vb-sidebar-row-wrapper) {
  font-size: 1rem;     
  line-height: 1.6;
  font-weight: 400;
}


h1:not(.et-vb-sidebar-row-wrapper *, .et-vb-page-bar *, .et-vb-right-click-options *, .et-vb-right-click-option *, .et-vb-modal *, .et-vb-icon-manager *)  { font-size: var(--fs-h1) !important; line-height: var(--lh-h1); font-weight: 700; }
h2:not(.et-vb-sidebar-row-wrapper *, .et-vb-page-bar *, .et-vb-right-click-options *, .et-vb-right-click-option *, .et-vb-modal *, .et-vb-icon-manager *)  { font-size: var(--fs-h2) !important; line-height: var(--lh-h2); font-weight: 500; }
h3:not(.et-vb-sidebar-row-wrapper *, .et-vb-page-bar *, .et-vb-right-click-options *, .et-vb-right-click-option *, .et-vb-modal *, .et-vb-icon-manager *)  { font-size: var(--fs-h3) !important; line-height: var(--lh-h3); font-weight: 500; }
h4:not(.et-vb-sidebar-row-wrapper *, .et-vb-page-bar *, .et-vb-right-click-options *, .et-vb-right-click-option *, .et-vb-modal *, .et-vb-icon-manager *)  { font-size: var(--fs-h4) !important; line-height: var(--lh-h4); font-weight: 500; }
h5:not(.et-vb-sidebar-row-wrapper *, .et-vb-page-bar *, .et-vb-right-click-options *, .et-vb-right-click-option *, .et-vb-modal *, .et-vb-icon-manager *)  { font-size: var(--fs-h5) !important; line-height: var(--lh-h5); font-weight: 500; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}




.caption { font-size: var(--fs-caption) !important; line-height: var(--lh-caption); font-weight: 400; }
.small   { font-size: var(--fs-small) !important;   line-height: var(--lh-small);   font-weight: 400; }

.btn, 
.et_pb_button:not(.et-vb-sidebar-row-wrapper *, .et-vb-page-bar *, .et-vb-right-click-options *, .et-vb-right-click-option *, .et-vb-modal *, .et-vb-icon-manager *) { font-size: var(--fs-button) !important; line-height: var(--lh-button); font-weight: 500; }


.et-vb-sidebar-row-wrapper,
.et-vb-page-bar,
.et-vb-right-click-options,
.et-vb-right-click-option,
.et-vb-modal,
.et-vb-icon-manager {
  font-family: var(--font-sidebar) !important;
  font-size: 14px;     
  line-height: normal;
  font-weight: 400;
  letter-spacing: normal;
}


html {
  font-family: var(--font-main);
  -webkit-text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, a, li, span, blockquote, figcaption,
table, th, td,
nav, header, footer {
  font-family: var(--font-main) !important;
}


button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

strong, b, th {
  font-weight: 600 !important;
}

em, i {
  font-style: italic;
}


*/



/* inter-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-italic - 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: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500italic - 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: 'Inter';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/inter-v20-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-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: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700italic - 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: 'Inter';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/inter-v20-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* Gilt nur für Elemente, die NICHT in einem der Builder-Container liegen.
   :where() hält die Spezifität niedrig (nur das Element selbst). */
:where(:not(:is(
  .et-vb-icon-manager,
  .et-vb-sidebar-row-wrapper,
  .et-vb-page-bar,
  .et-vb-right-click-options,
  .et-vb-right-click-option,
  .et-vb-modal
) *)) {

  &:is(h1, h2, h3, h4, h5, p, button, .btn, .caption, .small, .et_pb_icon_list_text, .et_pb_button, .et_pb_link_text, input, textarea, select, .wpcf7-form-control) {
    font-family: var(--font-main);
  }
  
  .et_pb_link_text {
    font-family: var(--font-main) !important;
  }

  &:is(h1) { font-size: var(--fs-h1) !important; line-height: var(--lh-h1) !important; font-weight: 700; }
  &:is(h2) { font-size: var(--fs-h2) !important; line-height: var(--lh-h2) !important; font-weight: 500; }
  &:is(h3) { font-size: var(--fs-h3) !important; line-height: var(--lh-h3) !important; font-weight: 500; }
  &:is(h4) { font-size: var(--fs-h4) !important; line-height: var(--lh-h4) !important; font-weight: 500; }
  &:is(h5) { font-size: var(--fs-h5) !important; line-height: var(--lh-h5) !important; font-weight: 500; }

  &:is(p)  { font-size: var(--fs-body) !important; line-height: var(--lh-body); font-weight: 400; }

  &:is(.caption) { font-size: var(--fs-caption) !important; line-height: var(--lh-caption); font-weight: 400; }
  &:is(.small)   { font-size: var(--fs-small) !important;   line-height: var(--lh-small);   font-weight: 400; }
  &:is(button, .btn, .et_pb_button) { font-size: var(--fs-button) !important; line-height: var(--lh-button); font-weight: 500; }
}