/*
Theme Name: Design Idee
Text Domain: Design Idee
Requieres at least: 6.0
Tested up to: 6.0
Requieres PHP 7.0
Version: 1.5
Description: Design Idee
Tags: design, idee, gestaltung, barrierefreie pdf
Author: Design Idee
Author URI: https://www.design-idee.net
*/

/* Schriften */

/* hind-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: 'Hind';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/hind-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* hind-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: 'Hind';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/hind-v18-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Grundeinstellungen der Seite */

:root {
    --primaer: #ff6601;
    --sekundaer: #942923;
    --text: #322d2d;
    --akzent: #0084aa;
    --schwarz: #000;
    --weiss: #fff;
    --gruen: #749251;
    --orange_20_prozent: #FEE1CC;
    --blau_20_prozent: #CEDEEA;
}
*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}
html {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    scroll-behavior: smooth;
    font-family: 'Hind', sans-serif;
    font-weight: regular;
    color: var(--text);
    font-size: 1rem; /* Basis: 16px */
    line-height: 1.6; /* Großzügiger Lese-Weißraum für Barrierefreiheit */
    -webkit-font-smoothing: antialiased;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
html, body {
    width: 100%;
    height: 100%;
}
body {
    font-size: 100%;
    line-height: 1.5rem;
}

/* Text */

/* ==========================================================================
   TEXTFORMATIERUNG & FLUID TYPOGRAPHY (h1 deutlich dezenter)
   ========================================================================== */

/* Links farbbasiert ohne Unterstreichungen */

a:link, a:visited, a:hover, a:active { 
    text-decoration: none; 
}
p a:link, p a:visited { color: var(--text); }
p a:hover, p a:active { color: var(--primaer); }

/* Links Impressum */

.impressum-container a:link, .impressum-container a:visited { color: var(--weiss); }

/* Links Suche */

main.main_content.suche a:link, main.main_content.suche a:visited { color: var(--weiss); }
main.main_content.suche a:hover, main.main_content.suche a:active { color: var(--primaer); }

/* Listen-Basics */

ul li, ol li { 
    list-style-position: inside; 
}

/* FLUID SCHRIFTGRÖSSEN VIA CLAMP() 
   H1 spürbar verkleinert für ein dezenteres, harmonisches Schriftbild */

h1 {
    font-size: clamp(1.7rem, 2.5vw + 1rem, 2.4rem); /* Mobil kompakter, Desktop deutlich reduzierter */
    line-height: 1.2; 
    font-weight: 700;
}
h2 {
    font-size: clamp(1.5rem, 2.2vw + 1rem, 2.0rem); 
    line-height: 1.25; 
    font-weight: 700;
}
h3 {
    font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem); 
    line-height: 1.3;
    font-weight: 700;
}
h4 {
    font-size: 1.15rem; 
    line-height: 1.35;
    font-weight: 700;
}
h5 {
    font-size: 1.0rem;
    line-height: 1.4;
    font-weight: 700;
}

/* Fließtext atmet auf dem Desktop für optimale Barrierefreiheit minimal mit */

p, ul li, ol li, a {
    font-size: clamp(1rem, 0.1vw + 0.9rem, 1.06rem) !important;
    line-height: 1.65; 
}

/* Fließtext Autoren Anpassung */

.kunden_autoren p {
    font-size: clamp(0.9375rem, 0.1vw + 0.84rem, 1rem) !important;
    line-height: 1.65;
}

/* ==========================================================================
   PROPORTIONALE ABSTÄNDE & RHYTHMUS
   ========================================================================== */

/* Abstand NACH Absätzen und ganzen Listen-Blöcken */

p, ul, ol {
    margin-top: 0;
    margin-bottom: 1.4rem; 
}

/* Gestaffeltes Vor-Spacing: Kleine Überschriften brauchen weniger Luft nach oben als große */

h1 { margin-top: 0;        margin-bottom: 1.0rem; }
h2 { margin-top: 3.5rem;   margin-bottom: 0.95rem; } 
h3 { margin-top: 2.8rem;   margin-bottom: 0.85rem; }
h4 { margin-top: 2.2rem;   margin-bottom: 0.75rem; }
h5 { margin-top: 1.8rem;   margin-bottom: 0.7rem;  }

/* Einzelne Listenpunkte innerhalb eines Blocks kompakt zusammenhalten */

li {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   FIRST-CHILD & LAST-CHILD SICHERUNG
   ========================================================================== */

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, 
p:first-child, ul:first-child, ol:first-child {
    margin-top: 0;
}
p:last-child, ul:last-child, ol:last-child, li:last-child {
    margin-bottom: 0;
}

/* ===================================================================
   ELEMENTOR ATOMIC CLASS OVERRIDE
   =================================================================== */

/* Dieser Selektor erzwingt das Ausblenden, egal an welcher Stelle 
   Elementor deine eingetragene Klasse im HTML-Code ausgibt */

.visually-hidden-h1,
[class*="visually-hidden-h1"],
.elementor-widget-heading [class*="visually-hidden-h1"],
.elementor-widget-heading .elementor-heading-title {
    /* Wenn die Klasse aktiv ist, greift dieser radikale Reset: */
}

/* Um ganz sicherzugehen, nutzen wir den universellen Attribut-Selektor: */

[class*="visually-hidden-h1"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    display: inline-block !important;
    float: left !important;
}

/* Grundaufbau der Seite */

#wrapper {
    width: 100%;
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto;
}

/* Header */

header.site_header {
    width: 100%;
    height: auto;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between !important;
    align-items: flex-start;
}
#logo {
    width: 22%;
    height: 22%;
    display: flex;
    margin: 5% 0 0 5%;
}
#logo a {
    width: 100%;
    height: 100%;
}
#logo img {
    width: 100%;
    height: 100%;
    display: block;
}
header.site_header nav.main_nav {
    width: 100%;
    height: auto;
    display: none !important;
}
#header_img, #header_img img {
    width: 100%;
    height: auto;
}
#header_img img { display: block; }

/* Main */

main.main_content {
    width: 100%;
    height: auto;
}
main.main_content.viernullvier, main.main_content.suche {
    padding: 5%;
    color: var(--weiss);
    background: var(--akzent);
}

/* Footer */

footer {
    width: 100%;
    height: auto;
}

/* Hamburger Menü */

.hamburger {
    width: 26px;
    height: 16px;
    display: flex;
    position: relative;
    margin: 7.5% 5% 0 0;
    cursor: pointer;
}
#hamburger { display: none; }
.linie {
    width: 100%;
    height: 2px;
    display: block;
    position: absolute;
    background: var(--text);
    border-radius: 2px;
    transition: 0.5s ease;
    transform-origin: center;
}
.linie:nth-child(1) { top: 0px; }
.linie:nth-child(2) { top: 7px; }
.linie:nth-child(3) { top: 14px; }
#hamburger:checked + .hamburger .linie:nth-child(1) { transform: translateY(7px) translateX(0.5px) rotate(328.4deg); }
#hamburger:checked + .hamburger .linie:nth-child(2) { opacity: 0; }
#hamburger:checked + .hamburger .linie:nth-child(3) { transform: translateY(-7px) translateX(0.5px) rotate(391.6deg); }
header.site_header #hamburger:checked ~ nav.main_nav { display: block !important; }

/* Main Nav */

header.site_header nav.main_nav ul {
    width: 100%;
    list-style-type: none;
}
header.site_header nav.main_nav ul li {
    width: 100%;
    text-align: center;
    margin: 0;
}
header.site_header nav.main_nav ul li a:link, header.site_header nav.main_nav ul li a:visited, header.site_header nav.main_nav ul li a:hover, header.site_header nav.main_nav ul li a:active {
    width: 100%;
    display: block;
    padding: 0.5rem 0 0.5rem 0;
    color: var(--text);
    font-weight: ;
}
header.site_header nav.main_nav ul li:last-child a {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--weiss);
    background: var(--akzent);
    padding: 12px 12px;
    border-radius: 25px;
}
header.site_header nav.main_nav ul li:last-child a::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('assets/images/button_pfeil.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}  

/* Footer Nav */

footer nav ul { list-style-type: none; }
footer nav ul li a:link { color: var(--text); }

/* Sidebar One */

/* Sidebar Two */

/* Sidebar Three */

/* Sidebar Four */

/* GoTopBtn*/

.gotopbtn {
  width: 25px;
  height: 25px;
  position: fixed;
  display: none;
  right: 25px;
  bottom: 25px;
  content: url('assets/images/pfeil_oben.svg');
  background: var(--primaer);
  border-radius: 2px;
  padding: 5px;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gotopbtn.visible { 
    opacity: 1;
    visibility: visible; 
}

/* Cookie Banner */

/* Inhalt */

.kreis_ueberschrift {
    width: 100%;
    height: 250px !important;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background-image: radial-gradient(circle at 0 125px, var(--primaer) 125px, transparent 125px);
    background-repeat: no-repeat;
}
.kreis_ueberschrift > .elementor-widget-container {
    margin-top: auto !important;
    margin-bottom: auto !important;
    display: flex;
    align-items: center;
}
main.main_content .button_content .elementor-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
main.main_content .button_content .elementor-button::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('assets/images/button_pfeil.svg') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive Anpassungen */

@media only screen and (min-width: 480px) {

}

@media only screen and (min-width: 600px) {
    
}

@media only screen and (min-width: 760px) {
    #logo {
        width: 18%;
        height: 18%;
    }        
}

@media only screen and (min-width: 980px) {
    #logo {
        width: 14%;
        height: 14%;
    }
    .hamburger { display: none; }
    header.site_header nav.main_nav {
        width: auto;
        display: block !important;
        margin: 5%;
    }
    header.site_header nav.main_nav ul  {    
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    header.site_header nav.main_nav ul li {
        width: auto;
    }
    header.site_header nav.main_nav ul li a {
        width: auto;
    }
}

@media only screen and (min-width: 1200px) {
    
}

@media only screen and (min-width: 1600px) {
    #wrapper { width: 1600px; }
    #logo {
        width: 10%;
        height: 10%;
    }
}