/*
Theme Name: Vorlesetag
Author: Alexander Czasny
Version: 1.0
*/

:root {
    --vt-color-primary: #003B78;
    --vt-color-secondary: #0073BF;
    --vt-color-accent: #C63E0D;
    --vt-color-yellow: #FBDB7B;
    --vt-color-white: #FFFFFF;

    --vt-color-bg: #F8FAFC;
    --vt-color-surface: #FFFFFF;
    --vt-color-text: #000000;

    --vt-color-blue-soft: #AFD3EB;
    --vt-color-rose-soft: #F9C8B6;
    --vt-color-yellow-soft: #FAF5C9;

    --vt-box-shadow-normal: 0px 15px 40px rgba(0, 0, 0, 0.06);
    --vt-box-shadow-light: 0px 5px 15px rgba(0, 0, 0, 0.05);
    --vt-radius-lg: 24px;
    --vt-radius-md: 1rem;
    --vt-transition: 0.2s ease-in-out;
}

@font-face {
  font-family: 'Switzer-Variable';
  src: url('assets/fonts/Switzer-Variable.woff2') format('woff2'),
       url('assets/fonts/Switzer-Variable.woff') format('woff'),
       url('assets/fonts/Switzer-Variable.ttf') format('truetype');
       font-weight: 100 900;
       font-display: swap;
       font-style: normal;
}

@font-face {
  font-family: 'CabinetGrotesk-Variable';
  src: url('assets/fonts/CabinetGrotesk-Variable.woff2') format('woff2'),
       url('assets/fonts/CabinetGrotesk-Variable.woff') format('woff'),
       url('assets/fonts/CabinetGrotesk-Variable.ttf') format('truetype');
       font-weight: 100 900;
       font-display: swap;
       font-style: normal;
}

html {
    font-size: 18px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--vt-color-text);
    font-family: 'Switzer-Variable', system-ui, -apple-system, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'CabinetGrotesk-Variable', sans-serif;
    font-weight: 700; /* oder dynamisch je nach Heading */
}

h1 {
    font-family: 'CabinetGrotesk-Variable', sans-serif;
    font-weight: 800; /* Extra Bold */
    font-size: clamp(36px, 6vw, 60px);
    color: var(--vt-color-primary);
    line-height: 1.05;
    position: relative;
    display: block;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        125deg,
        #003B78 0%,
        #0073BF 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;    
}

h2 {
    font-family: 'CabinetGrotesk-Variable', sans-serif;
    font-weight: 800; /* Extra Bold */
    font-size: clamp(28px, 4vw, 44px);
    color: var(--vt-color-primary);
    line-height: 1.1;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}



h3 {
    font-family: 'CabinetGrotesk-Variable', sans-serif;
    font-weight: 800; /* Extra Bold */
    font-size: clamp(22px, 3vw, 30px);
    color: var(--vt-color-primary);
    line-height: 1.1;
    position: relative;
    margin-bottom: 1.5rem;
}

h4 {
    font-family: 'CabinetGrotesk-Variable', sans-serif;
    font-weight: 800; /* Extra Bold */
    font-size: clamp(20px, 2vw, 24px);
    color: var(--vt-color-primary);
    line-height: 1.15;
    letter-spacing: 0;
    text-wrap: balance;
}

b,
strong {
    font-weight: 700;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

p,
li,
ul,
ol {
    font-size: 1rem; /* entspricht 18px */
}



.font-size-0-7 {
    font-size: 0.77rem;
}

.site-main {
    overflow: hidden;
}

.section-space {
    padding: 6rem 0;
}

/* Erstes Element auf der Seite hat nach oben einen kleineren Abstand */
article > .module-wrapper:first-of-type > .section-space {
    padding-top: 3rem;
}

article > .module-wrapper:first-of-type > .has-bg.section-space { 
    padding-top: 6rem;
    margin-top: 3rem;
}




/* Abstand bei dem Modul kleiner! AUSNAHME! */
.m-calendar-download.section-space {
    padding-top: 0;
}
.m-countdown-progress.section-space {
    padding-top: 3rem;
    padding-bottom: 3rem;
}



.ff-btn {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-family: ;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-width: var(--bs-border-width);
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: var(--bs-border-radius);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}



.btn-primary {
    --bs-btn-bg: var(--vt-color-accent);
    --bs-btn-border-color: var(--vt-color-accent);
    --bs-btn-hover-bg: #e84d0b;
    --bs-btn-hover-border-color: #e84d0b;
    --bs-btn-active-bg: #e84d0b;
    --bs-btn-active-border-color: #e84d0b;
    --bs-btn-disabled-bg: var(--vt-color-accent);
    --bs-btn-disabled-border-color: var(--vt-color-accent);
    --bs-btn-font-weight: 700;
    --bs-btn-padding-y: 1rem;
    --bs-btn-padding-x: 2rem;
    --bs-btn-border-radius: 0.5rem;
    transition: all 0.3s;    
}

.btn-primary:hover {
    background: var(--vt-color-primary);
    border-color: var(--vt-color-primary);
    color: var(--vt-color-white);
    box-shadow: 0px 15px 40px 0px rgba(0, 0, 0, 0.06);    
    transform: translateY(-3px);
}


.btn-secondary,
.ff-btn-secondary {
    --bs-btn-bg: var(--vt-color-secondary);
    --bs-btn-border-color: var(--vt-color-secondary);
    --bs-btn-hover-bg: var(--vt-color-primary);
    --bs-btn-hover-border-color: var(--vt-color-primary);
    --bs-btn-active-bg: var(--vt-color-primary);
    --bs-btn-active-border-color:var(--vt-color-primary);
    --bs-btn-disabled-bg: var(--vt-color-secondary);
    --bs-btn-disabled-border-color: var(--vt-color-secondary);
    --bs-btn-font-weight: 700;
    --bs-btn-padding-y: 1rem;
    --bs-btn-padding-x: 2rem;
    --bs-btn-border-radius: 0.5rem;
    transition: all 0.3s;    
}

.btn-secondary:hover,
.ff-btn-secondary:hover {
    background: var(--vt-color-primary);
    border-color: var(--vt-color-primary);
    color: var(--vt-color-white);
    box-shadow: 0px 15px 40px 0px rgba(0, 0, 0, 0.06);    
    transform: translateY(-3px);
}


article a:not(.btn) {
    font-weight: 600;
    text-decoration: underline;
    color: currentColor;
    transition: color 0.2s ease;
}

article a:not(.btn):hover {
    color: var(--vt-color-primary);
}

article a:not(.btn)::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 9px;
    margin-right: 0.25rem;
    margin-left: 0.25rem;

    background-image: url("data:image/svg+xml,%3Csvg width='5' height='9' viewBox='0 0 5 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.10811 4.5L0 1.05L0.945946 0L5 4.5L0.945946 9L0 7.95L3.10811 4.5Z' fill='%23C63E0D'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;

    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

article a:not(.btn):hover::before {
    transform: translateX(4px);
}

/* Besonderheiten wegen dem roten Pfeil. Bei diesen Modulen deaktivieren */
.m-specials article a:not(.btn),
.m-specials article a:not(.btn):hover,
.m-text-image figure a:not(.btn),
.m-text-image figure a:not(.btn):hover,
.crt-feed a:not(.btn),
.crt-feed a:not(.btn):hover {
    font-weight: inherit;
    text-decoration: inherit;
    color: inherit;
}

.m-specials article a:not(.btn)::before,
.m-text-image figure a:not(.btn)::before,
.crt-feed a:not(.btn)::before {
    display: none;
}


.crt-feed a:not(.btn),
.crt-feed a:not(.btn):hover {
    font-weight: inherit;
    text-decoration: inherit;
    color: inherit;
}

.crt-feed a:not(.btn)::before {
    display: none;
}




li::marker {
    color:var(--vt-color-yellow);
}



/* 
Underlines for headlines
*/
   
.has-underline {
    display: inline;
}
/*
.has-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15em;
    width: 100%;
    height: 0.35em;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}

.has-underline--pink::after {
    background-image: url("assets/images/underline-pink.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% auto;
    content: "";
    position: relative;
    z-index: -1;    
    display: block;
    width: calc(100% + 20px);
    height: 12px;
    transform: translate(-10px, -0.5em); 
}

.has-underline--blue::after {
    background-image: url("assets/images/underline-blue.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% auto;
    content: "";
    position: relative;
    z-index: -1;    
    display: block;
    width: calc(100% + 20px);
    height: 12px;
    transform: translate(-10px, -0.5em);    
}

.has-underline--yellow::after {
    background-image: url("assets/images/underline-yellow.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% auto;
    content: "";
    position: relative;
    z-index: -1;    
    display: block;
    width: calc(100% + 20px);
    height: 12px;
    transform: translate(-10px, -0.5em); 
}


.has-underline--yellow-dark::after {
    background-image: url("assets/images/underline-yellow-dark.svg");
    background-repeat: no-repeat;
    background-position: left center; 
    background-size: 100% auto;
    content: "";
    position: relative;
    z-index: -1;    
    display: block;
    width: calc(100% + 20px);
    height: 12px;
    transform: translate(-10px, -0.5em); 
}
*/

.has-underline {
    display: inline;

    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;

    padding-bottom: 0;

    background-repeat: no-repeat;
    background-position: left calc(100% - 0.08em);
    background-size: 100% 0.35em;

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.has-underline--pink {
    background-image: url("assets/images/underline-pink.svg");
}

.has-underline--blue {
    background-image: url("assets/images/underline-blue.svg");
}

.has-underline--yellow {
    background-image: url("assets/images/underline-yellow.svg");
}

.has-underline--yellow-dark {
    background-image: url("assets/images/underline-yellow-dark.svg");
}

/* Standardabstand */
h2.has-underline + * {
    margin-top: 1rem;
}

/* Spezielle Fälle */
.m-partner__section > .row:has(.m-partner__headline.has-underline) {
    margin-bottom: 2rem;
}

/* 
Hintergrund Module 
*/

.has-bg {
    position: relative;
}

.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.has-bg--blue::before {
    background-color: #AFD3EB;
}

.has-bg--pink::before {
    background-color: #F9C8B6;
}

.has-bg--yellow::before {
    background-color: #FAF5C9;
}

.has-bg--gray::before {
    background-color: #F8FAFC;
}


/* Breadcrumbs */
.breadcrumb-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.site-breadcrumb {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.site-breadcrumb__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: var(--vt-color-primary);
}

.site-breadcrumb a,
.site-breadcrumb .breadcrumb_last {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    line-height: 1.2;
}

.site-breadcrumb a {
    color: var(--vt-color-primary);
    text-decoration: none;
    align-items: baseline;
}

.site-breadcrumb a:hover {
    text-decoration: underline;
}

.site-breadcrumb .breadcrumb_last {
    color: var(--vt-color-accent);
}

.site-breadcrumb .breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    color: var(--vt-color-primary);
}

.site-breadcrumb .breadcrumb-home-icon {
    display: inline-flex;
    align-items: center;
    color: var(--vt-color-accent);
    line-height: 1;
    transform: translateY(1px);
}

.site-breadcrumb .breadcrumb-home-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.site-breadcrumb .breadcrumb-home-text {
    margin-left: 8px;
}


@media (max-width: 991.98px) {

    .section-space {
        padding: 5rem 0;
    }


    .breadcrumb-container {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {

    .site-breadcrumb {
        font-size: 12px;
        line-height: 2;
    }

}


/* =========================================================
   Module Wrapper
========================================================= */

.module-wrapper {
    position: relative;
}

/* =========================================================
   Preview Module
========================================================= */

.module-wrapper--preview {
    border: 2px dashed #f5c542;
    background: rgba(255, 248, 219, 0.35);
    border-radius: 18px;
    padding: 20px;
    margin: 24px 0;
}

/* =========================================================
   Hidden Module
========================================================= */

.module-wrapper--hidden {
    border: 2px dashed #e74c3c;
    background: rgba(255, 229, 229, 0.35);
    border-radius: 18px;
    padding: 20px;
    margin: 24px 0;
}

/* =========================================================
   Visibility Notice
========================================================= */

.module-visibility-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;
    padding: 10px 14px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =========================================================
   Preview
========================================================= */

.module-wrapper--preview .module-visibility-notice {
    background: #f5c542;
    color: #7a5a00;
}

/* =========================================================
   Hidden
========================================================= */

.module-wrapper--hidden .module-visibility-notice {
    background: #e74c3c;
    color: #ffffff;
}