/* start font import */

@font-face {
    src: url('../font/rubik-400-regular.woff2') format('woff2');
    font-display: swap;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
}

@font-face {
    src: url('../font/rubik-400-italic.woff2') format('woff2');
    font-display: swap;
    font-family: 'Rubik';
    font-style: italic;
    font-weight: 400;
}

@font-face {
    src: url('../font/rubik-600.woff2') format('woff2');
    font-display: swap;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 600;
}

@font-face {
    src: url('../font/rubik-600-italic.woff2') format('woff2');
    font-display: swap;
    font-family: 'Rubik';
    font-style: italic;
    font-weight: 600;
}

@font-face {
    src: url('../font/noto-sans-600.woff2') format('woff2');
    font-display: swap;
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 600;
}

@font-face {
    src: url('../font/noto-sans-600-italic.woff2') format('woff2');
    font-display: swap;
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 600;
}

@font-face {
    src: url('../font/poppins-bold-700-normal.woff2') format('woff2');
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
}

/* end font import */

/* start root */
:root {
    --font-family: Rubrik, sans-serif;
    --font-family-headline: 'Noto sans', sans-serif;
    /* Light Mode Farben */
    --color-red: #b72e01;
    --color-red-1: #930e0e;
    --color-text: #161616;
    --color-text-white: #f9fafb;
    --color-text-invert: #f9fafb;
    --color-bg: #ecf0f2;
    --color-white: #fff;
    --color-bg-gray: #e7e7e7;
    --color-bg-gray-btn: #909090;
    --color-dark-gray: #adadad;
    --color-light-gray: #a2a2a2;
    --color-yellow: #b46e04;
    --color-switch: #000;
    --color-green: #275200;
    --color-green-1: #3d6626;
    --color-green-2: #8fb800bd;
    --color-pink: #801a82;
    --color-pink-1: #7a347d;
    --color-pink-2: #f200ff7d;
    --color-turquoise: #00383c;
    --color-turquoise-1: #005c63;
    --color-turquoise-2: #03bcbc94;


    /* Spacing System */
    --space-xs: clamp(0.5rem, 2vw, 0.75rem);
    --space-sm: clamp(1rem, 3vw, 1.5rem);
    --space-md: clamp(1.5rem, 4vw, 2.5rem);
    --space-lg: clamp(2rem, 6vw, 4rem);
    --space-xl: clamp(3rem, 8vw, 6rem);

    color-scheme: light;
}

/* Dark Mode Variablen */
[data-theme="dark"] {
    --color-red: #d53603;
    --color-red-1: #df00002e;
    --color-text: #f9fafb;
    --color-text-invert: #161616;
    --color-text-white: #f9fafb;
    --color-bg: #101010;
    --color-white: #0f0f0f;
    --color-bg-gray: #1a1a1a;
    --color-bg-gray-btn: #3f3f3f;
    --color-dark-gray: #101010;
    --color-light-gray: #2c2c2c;
    --color-yellow: #f3a535;
    --color-switch: #f3a535;
    --color-green: #84a709;
    --color-green-1: #153912;
    --color-green-2: #394900;
    --color-pink: #e144e3;
    --color-pink-1: #ae01b724;
    --color-pink-2: #f200ff5e;
    --color-turquoise: #0095a0;
    --color-turquoise-1: #01b7ab2b;
    --color-turquoise-2: #084c50;

    /* Schatten fuer Dark Mode angepasst */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);

    color-scheme: dark;
}

/* Automatische Systemeinstellungen respektieren */
@media (prefers-color-scheme: dark) {
    :root {
        --color-red: #b72e01;
        --color-text: #f9fafb;
        --color-bg: #1a1a1a;
        --color-white: #0f0f0f;
        --color-light-gray: #374151;
        --color-yellow: #f3a535;
        --color-green: #84a709;

        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);

        color-scheme: dark;
    }
}

/* Ueberschreibung fuer explizit gewaehlten Light Mode */
@media (prefers-color-scheme: dark) {
    [data-theme="light"] {
        --color-red: #d53603;
        --color-text: #161616;
        --color-bg: #ecf0f2;
        --color-white: #fff;
        --color-light-gray: #f6f4f5;
        --color-yellow: #b46e04;
        --color-green: #2e3a23;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
        --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
        --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);

        color-scheme: light;
    }
}

/* end root */

/* start Normalisierung */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    border-radius: 4px;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

h1 {
    font-size: clamp(28px, calc(23.211px + 1.711cqw), 54px);
    line-height: clamp(32px, calc(26.474px + 1.974cqw), 62px);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto sans', sans-serif;
    font-weight: 600;
}

h2 {
    font-size: clamp(24px, calc(20.182px + 1.364cqw), 42px);
    line-height: clamp(32px, calc(27.758px + 1.515cqw), 52px);
}

.h2-medium {
  font-size: clamp(22px, calc(19.03px + 1.061cqw), 36px);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(19px, calc(17.711px + 0.461cqw), 26px);
  line-height: clamp(26px, calc(23.789px + 0.789cqw), 38px);
}

.feature, .feature > li {
    font-size: clamp(16px, calc(14.342px + 0.592cqw), 25px);
    line-height: clamp(22px, calc(15.5px + 1.083cqw), 35px);
}

p,
q,
a,
td,
button,
li,
span {
    font-family: Rubik, sans-serif;
    font-weight: 400;
}

.btn {
    font-family: Rubik, sans-serif;
    font-weight: 600;
}


p,
q,
a,
td,
button,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    text-box: auto;
    color: var(--color-text);
    text-box: ideographic-ink;
    max-width: 100%;
    hyphens: auto;
}

q {
    font-style: oblique;
}

a {
    color: var(--color-text);
}

.indent > p {
  text-indent: 25px;
}

.p-narrow {
    font-size: clamp(14px, calc(13.632px + 0.132cqw), 16px);
    line-height: clamp(22px, calc(21.079px + 0.329cqw), 27px);
}

ul.pddng-bttm {
    padding-bottom: 20px;
}

.svg {
    max-width: clamp(40px, calc(38.526px + 0.526cqw), 48px);
}

.btn:hover {
  box-shadow: 0 0 20px #575757;
}

/* end normalisierung */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 70px;
    }
}

/* start font layout */

html {
    font-size: 16px;
}

p,
button,
td,
a,
li,
summary {
    font-size: clamp(14px, calc(12.727px + 0.455cqw), 20px);
}

p,
button,
td,
a,
summary {
    line-height: clamp(22px, calc(19.03px + 1.061cqw), 36px);
}

main ul {
    padding-left: clamp(20px, calc(18.158px + 0.658cqw), 30px);
}

.p-last {
    margin-bottom: clamp(20px, calc(16.316px + 1.316cqw), 40px);
}

.bold {
    font-weight: bold;
}

/* end font-layout */

/* start abstaende */

.gap-s {
    gap: clamp(10px, calc(8.158px + 0.658cqw), 20px);
}

.row-gap-s {
    row-gap: clamp(10px, calc(8.158px + 0.658cqw), 20px);
}

.gap-m {
    gap: clamp(15px, calc(12.237px + 0.987cqw), 30px);
}

.row-gap-m {
    row-gap: clamp(15px, calc(12.237px + 0.987cqw), 30px);
}

.gap-xl {
    gap: clamp(20px, calc(15.395px + 1.645cqw), 45px);
}

.mrg-top-m {
    margin-top: clamp(10px, calc(8.158px + 0.658cqw), 20px);
}

.mrg-bttm-m {
    margin-bottom: clamp(10px, calc(8.158px + 0.658cqw), 20px);
}

/* end abstaende */

/* start grid layout */

.grid {
    display: grid;
}

.grid-1fr {
    display: grid;
    grid-template-columns: 1fr;
}

.grid-1fr-1fr {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.home-banner {
    display: grid;
    grid-template-columns: clamp(150px, calc(127.895px + 7.895cqw), 270px) 1fr;
    padding: clamp(0px, calc(-20px + 3.333cqw), 40px) clamp(0px, calc(-185.821px + 18.657cqw), 150px);
}

.flx-strt {
    align-items: flex-start;
}

.site-container-home {
    grid-template-columns: clamp(260px, calc(249.394px + 3.788cqw), 310px) auto;
    background-color: var(--color-white);
    max-width: 1800px;
    margin: 0 auto;
}

.site-container-3 {
  grid-template-columns: clamp(260px, calc(249.394px + 3.788cqw), 310px) 1fr 250px;
  max-width: 1800px;
  background-color: var(--color-white);
  margin: 0 auto;
}

.grid-col-1 {
    grid-column: 1;
}

.grid-col-2 {
    grid-column: 2;
}

/* end grid layout */

/* start flex layout */

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/* end flex layout */

.skip-link {
    position: absolute;
    top: -30px;
}


/* start haeder and nav  */

header {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    overflow: scroll;
    border-right: 0.1px dotted #6a6a6a;
    padding: 0 14px 36px 12px;
}

.design-options {
    padding: 2cqw 0;
    display: flex;
    flex-direction: column;
    gap: 1cqw;
}

.logo > a > img {
    padding-bottom: 30px;
    margin: 0 auto;
}

.logo>img {
    max-width: clamp(100px, calc(78.788px + 7.576cqw), 200px);
    margin: 0 auto;
}

.slogan {
    padding: 0;
}

.custom-logo {
    margin-right: 3%;
}

.lang-switch {
  display: flex;
  margin: 26px 0;
  gap: 15px;
}

.lang-switch>a {
    text-decoration: none;
    padding: 4px 10px;
    font-size: 15px;
}

.font-controls {
    margin-right: 0.5vw;
}

.font-controls>button {
    margin-right: .6cqw;
    border: 1px solid var(--color-bg);
    border-radius: 4px;
    padding: 6px;
}

#theme-toggle {
    width: 100%;
    border: 1px solid var(--color-bg-gray-btn);
    border-radius: 4px;
    padding: 6px;
    display: flex;
    justify-content: center;
    background-color: #181818;
}

nav li {
    list-style-type: none;
    margin-bottom: 10px;
}

nav>ul {
    padding-left: 1%;
}

nav>ul>li>ul {
    padding-left: 6%;
    margin-top: clamp(10px, calc(8.939px + 0.379cqw), 15px);
}

nav a, .aside-nav > li > a {
    margin-bottom: 12px;
}

nav a, .aside-nav > li > a {
    display: flex;
    text-decoration: none;
    align-items: center;
    line-height: clamp(21px, calc(20.152px + 0.303cqw), 25px);
    padding: 6px 8px 6px 10px;
    border: 1px solid transparent;
}

a>svg {
    margin-right: 10px;
}

nav>ul a:hover,
nav>ul a:active,
.aside-nav > li > a:hover,
.aside-nav > li > a:active,
.lang-switch>a:hover,
.aside-nav a[aria-current="true"], [aria-current="page"],
nav a[aria-current="true"], [aria-current="page"] {
    background-color: var(--color-bg-gray);
    color: var(--color-switch);
    border: 1px solid var(--color-bg-gray-btn);
}

/* end header and nav */

/* start aside */

aside {
    border-left: 0.1px dotted #6a6a6a;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100dvh;
    overflow: scroll;
    padding: 20px 12px 36px 12px;
}

aside>ul>li,
nav>ul>ul>li {
    list-style-type: none;
    margin-bottom: 2%;
}

aside>ul {
    padding-left: 1%;
}

aside>ul>ul {
    padding-left: 6%;
}

/* end aside */

/* start footer */

footer {
  min-height: 7dvh;
  width: 100dvw;
  border-top: 1px solid var(--color-bg-gray);
}

/* end footer */

/* start design layout */

#events {
    width: 100%;
    row-gap: clamp(40px, calc(36.316px + 1.316cqw), 60px);
}

.hl.grid-1fr-1fr {
  display: inline-flex;
  column-gap: 10px;
  align-items: center;
}

.line-title.yellow::before {
    background-color: var(--color-text)
}

.line-title.event {
    position: relative;
}

.fill-blue {
    fill: var(--color-bg);
}

.fill-red {
    fill: var(--color-red);
}

.fill-green {
    fill: var(--color-green);
}

.fill-yellow {
    fill: var(--color-yellow);
}

.fill-pink {
    fill: var(--color-pink);
}

.fill-turquoise {
    fill: var(--color-turquoise);
}

.width-800 {
    max-width: 800px;
    margin: 0 auto;
}

.main.pad {
    display: grid;
    gap: clamp(30px, calc(20.789px + 3.289cqw), 80px);
    padding: clamp(30px, calc(14px + 2dvw), 50px) clamp(20px, calc(14.474px + 1.974cqw), 50px) 30px clamp(20px, calc(14.474px + 1.974cqw), 50px);
    justify-items: center;
}

hr {
    width: 66%;
    border: 1px solid var(--color-bg-gray-btn);
    justify-self: center;
}

article.home>img {
    min-width: 180px;
    justify-self: center;
}

.article>svg {
    min-width: 80px;
}

.btn-more {
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.btn-red {
    border: 1px solid var(--color-red);
}

.btn-red-bg {
    border: 1px solid var(--color-red);
    background-color: var(--color-red-1);
    color: var(--color-text-white);
}

.btn-green {
    border: 1px solid var(--color-green);
}

.btn-green-bg {
    border: 1px solid var(--color-green);
    background-color: var(--color-green-1);
    color: var(--color-text-white);
}

.btn-pink {
    border: 1px solid var(--color-pink);
}

.btn-pink-bg {
    border: 1px solid var(--color-pink);
    background-color: var(--color-pink-1);
}

.btn-turquoise {
    border: 1px solid var(--color-turquoise);
}

.btn-turquoise-bg {
    border: 1px solid var(--color-turquoise);
    background-color: var(--color-turquoise-1);
}

.home-banner > div {
  align-self: center;
}

.home-banner>img {
    width: clamp(120px, calc(92.368px + 9.868cqw), 270px);
}

.workshop-date span {
    padding-left: 25px;
    padding-right: 8px;
}

.event {
    display: grid;
    grid-template-columns: 75px 1fr;
    padding: clamp(12px, calc(10.303px + 0.606cqw), 20px);
    background-color: var(--color-bg-gray);
    border: 1px solid var(--color-bg-gray-btn);
}

.event-link {
  gap: clamp(12px, calc(10.27px + 0.541dvw), 20px);
  max-width: fit-content;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.event-link > a:nth-child(2) {
    color: var(--color-text-white);
}

.event-date {
    display: flex;
    flex-direction: column;
    width: max-content;
    row-gap: 2px;
    padding: 6px 10px;
}

.event-date span {
    margin-bottom: 0;
    color: var(--color-text-white);
}

.event.pink > .event-date {
    background-color: var(--color-pink-1);
}

.event.turquoise > .event-date {
    background-color: var(--color-turquoise-1);
}

.event.green > .event-date {
    background-color: var(--color-green-1);
}

.event-info>h3,
.event-info>p {
    margin-bottom: 15px;
}

.event-date span:nth-child(1),
.event-date span:nth-child(2) {
    font-weight: bold;
    letter-spacing: 1px;
}

#vorteile > div > div {
  gap: 10px;
}

.gap-10 {
    gap: 10px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
}

.gallery > img {
  max-width: 30%;
  height: fit-content;
  margin-top: clamp(20px, calc(17.879px + 0.758cqw), 30px);
}

.offer {
  color: var(--color-yellow);
}

#keyfacts {
  padding: 4% 3%;
  border: 1px solid var(--color-bg-gray-btn);
  border-radius: 6px;
  background-color: var(--color-bg-gray);
}

#keyfacts > ul {
  padding-left: clamp(16px, calc(12.973px + 0.946dvw), 30px);
}

#keyfacts > ul > li {
  list-style-type: square;
  padding-left: 6px;
  padding-bottom: clamp(6px, calc(5.632px + 0.132vw), 8px);
}


.sec-li {
  padding-left: 30px;
}

.sec-li > li {
  list-style-type: disc;
}

summary::marker {
  content: "▶  ";
  color: var(--color-text);
  font-size: 20px;
  }

summary {
  margin-bottom: 20px;
  border-bottom: 3px solid var(--color-bg-gray-btn);
}

#faq > details > p {
  padding-bottom: 20px;
}


details[open] summary::marker {
  content: "▼  ";
  color: var(--color-text);
  font-size: 20px;
}

.cta-btn {
  text-decoration: none;
  padding: clamp(2px, calc(-0.333px + 0.833cqw), 10px) clamp(8px, calc(1.583px + 2.292cqw), 30px);
  font-weight: bold;
  color: var(--color-bg);
}

.green-bg {
    background-color: var(--color-green);
}

.yellow-bg {
    background-color: var(--color-yellow);
}

.cta-banner {
    height: clamp(150px, calc(77.083px + 26.042cqw), 400px);
    width: 100%;
    background-image: url('../../img/sitio-web-profesional-con-wordpress-1300x484.avif');
    display: flex;
    background-position: center bottom;
    background-size: cover;
    justify-content: center;
    align-items: flex-end;
    background-repeat: no-repeat;
}

.cta-txt {
  position: relative;
  bottom: clamp(20px, calc(10.789px + 3.289cqw), 70px);
  text-align: center;
}

.cta-txt > h2 {
  text-shadow: 0 0 30px #000;
  font-size: clamp(16px, calc(6.083px + 3.542cqw), 40px);
  background-color: #00000075;
  margin-bottom: clamp(5px, calc(2.237px + 0.987dvw), 20px);
  color: #f9fafb;
}

/* end design layout */

/* start toggle */

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 4px;
    color: var(--color-text);
    cursor: pointer;
}

/* end toggle */

/* start media queries */

@media (min-width: 1801px) {
    .container-home {
        grid-template-columns: 2.5fr 9.5;
    }

    .site-container-3 {
        grid-template-columns: clamp(260px, calc(249.394px + 3.788cqw), 310px) 7.5fr 2fr;
    }

    header {
        padding-right: clamp(14px, calc(-114.724px + 8.04cqw), 30px);
    }

    aside {
        padding-left: clamp(14px, calc(-114.724px + 8.04cqw), 30px);
    }
}

@media (min-width: 801px) {

    header,
    main,
    aside {
        padding-top: clamp(30px, calc(14px + 2dvw), 50px);
    }
}

@media (max-width: 996px) {

    aside {
        display: none;
    }

    #events,
    #events > section > div,
    .tutorials > div,
    .websites > div,
    .home-banner {
        grid-template-columns: 1fr;
    }

    .site-container-3 {
        grid-template-columns: clamp(260px, calc(249.394px + 3.788cqw), 310px) auto;
    }

    article.home>svg {
        display: none;
    }

    .order-1 {
        order: -1;
    }
}

@media (max-width: 660px) {

    .website-grid {
        display: grid;
        grid-template-columns: 1fr 2.5fr;
        grid-template-areas:
            ". . ";
    }

    .site-container-home,
    .site-container-3,
    .home-banner {
        grid-template-columns: 1fr;
    }

    .feature {
        hyphens: auto;
    }

    /* Header wird zur schmalen Leiste oben */
    header {
        height: auto;
        overflow: visible;
        border-right: 0;
        border-bottom: 0.1px dotted #6a6a6a;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 100;
        background-color: var(--color-white);
    }

    .menu-toggle {
        display: block;
        position: absolute;
        z-index: 10;
        background: none;
        border: 2px solid var(--color-yellow);
        font-size: 1rem;
        color: var(--color-text);
        cursor: pointer;
        top: 60px;
        right: 10px;
        border-radius: 75px;
        padding: 10px;
        box-shadow: 0px 1px 10px var(--color-switch);
        background-color: var(--color-bg);
    }

    /* Navigation standardmäßig ausgeblendet */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: clamp(280px, calc(262.5px + 6.25cqw), 300px);
        max-height: calc(100dvh - 100%);
        overflow-y: auto;
        padding: 10px;
        background-color: var(--color-white);
        border: 1px solid var(--color-bg-gray-btn);
        background-color: var(--color-bg-gray);
    }

    /* open */
    nav.is-open {
        display: block;
    }
}

@media (max-width: 599px) {
    .main.wide-pad {
        max-width: 100cqw;
        padding: clamp(10px, calc(1.25px + 3.125cqw), 20px);
    }

    .event,
    .grid-1fr-1fr  {
        grid-template-columns: 1fr;
    }

    .event-date {
        flex-direction: row;
        padding: 2px 8px;
    }

    .event-date {
        gap: 8px;
    }
}