/* Basic BSV-Style declarations */
:root {
    --primary: #153456;
    --primary-75: rgba(21, 52, 86, 0.75);
    --primary-50: rgba(21, 52, 86, 0.5);
    --primary-25: rgba(21, 52, 86, 0.25);
    --secondary: #68A569;
    --secondary-75: rgba(104,165,105,0.75);
    --secondary-50: rgba(104,165,105,0.5);
    --secondary-25: rgba(104,165,105,0.25);
    --warning: #E83F40; /* Backbord-Rot */
    --border-radius: 4px;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'ETmodules';
    src: url(https://www.bsv-ammersee.de/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.woff) format('woff');
}

body, html {
    font-family: 'Exo 2', Helvetica, Arial, Lucida, sans-serif;
    color: var(--primary);
    margin: 0;
    padding: 0 2px;
}

h1, h2, h3, h4, h5, h6, p, input, select, textarea, label, input::placeholder, select::placeholder, textarea::placeholder {
    font-family: 'Exo 2', Helvetica, Arial, Lucida, sans-serif;
    color: var(--primary);
    margin: 0;
}

h2 {
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

a {
    color: var(--secondary)!important;
    text-decoration: underline;
}

button, a.btn {
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 300ms ease 0ms;
    color: var(--secondary)!important;
    border: 2px solid;
    cursor: pointer;

    padding: .3em 1em;
    line-height: 1.7em!important;
    background-color: transparent;
    background-position: 50%;
    background-repeat: no-repeat;
    transition-property: all!important;
    font-weight: 500;
    margin: 0 0em;
}

button:hover, a.btn:hover {
    background-color: var(--secondary-25);
    border-color: rgba(255,255,255,0)!important;
    padding-right: 2em;
    margin-right: 1em;
}

button:hover:after, a.btn:hover:after {
    line-height: 1em;
    content: "\35";
    font-family: ETmodules!important;
    opacity: 1;
    margin-left: 2px;
    font-feature-settings: "kern" off;
    font-variant: none;
    transition: all 300ms ease 0ms;
    position: absolute;
    font-size: 1.6em;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    background-size: cover;
}

button:disabled, button[disabled], a.btn:disabled, a.btn[disabled], button:disabled:hover, button[disabled]:hover, a.btn:disabled:hover, a.btn[disabled]:hover {
    background-color: var(--secondary-25)!important;
    color: var(--secondary-75)!important;
    cursor: not-allowed!important;
    margin: 0 0em!important;
    padding: .3em 1em!important;
    border: none;
}

button:disabled:hover:after, button[disabled]:hover:after, a.btn:disabled:hover:after, a.btn[disabled]:hover:after {
    content: ""!important;
    transition: none!important;
    
}

input, textarea, select {
    padding: 0.375rem 0.75rem;
}
input:focus, select:focus, textarea:focus{
    border-color: var(--secondary); 
    box-shadow: 0 0 0 2px var(--secondary-25);
    outline: none; 
}

label:has(+ input:focus), label:has(+ textarea:focus), label:has(+ select:focus),
input:focus::placeholder, select:focus::placeholder, textarea:focus::placeholder  {
    color: var(--secondary)!important;
}


input {
    width: 100%;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    outline-width: 1px;
    outline-color: var(--secondary);
    color: var(--primary);
}
input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
    accent-color: var(--primary);
}

label {
    margin-bottom: 0.3rem;
    display: block;
}

textarea {
    width: 100%;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    min-height: 120px;
}

select {
    /* Reset native appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    padding-right: 2.5rem; 
    background-color: #ffffff; 
    color: var(--primary);
    width: 100%; 
    border-width: 1px; 
    border-style: solid; 
    border-color: var(--primary);
    border-radius: var(--border-radius);
    outline: none; 
    transition: all 0.2s ease-in-out; 

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e3a8a'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}


.warning {
    color: var(--warning);
}

.muted {
    color: var(--primary-25);
    padding: 0;
    margin: 0;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.no-padding {
    padding: 0;
}
.no-margin {
    margin: 0;
}


/* Responsive styling */
/*** Responsive Styles Standard Desktop and Large Desktop And Above ***/
@media all and (min-width: 981px) {
    h1 {
        font-size: 62px;
    }
    h2 {
        font-size: 54px;
    }
    h3 {
        font-size: 46px;
    }
    h4 {
        font-size: 38px;
    }
    h5 {
        font-size: 30px;
    }
    h6, button, a.btn {
        font-size: 22px;
    }
    p, label, input, select, textarea, input::placeholder, select::placeholder, textarea::placeholder {
        font-size: 16px;
    }
}

/*** Responsive Styles Standard Desktop Only ***/
@media all and (min-width: 768px) and (max-width: 980px) {
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 42px;
    }
    h3 {
        font-size: 36px;
    }
    h4 {
        font-size: 32px;
    }
    h5 {
        font-size: 24px;
    }
    h6, button, a.btn  {
        font-size: 18px;
    }
    p, label, input, select, textarea, input::placeholder, select::placeholder, textarea::placeholder  {
        font-size: 15px;
    }
}


/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 767px) {
    h1 {
        font-size: 26px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 22px;
    }
    h4 {
        font-size: 20px;
    }
    h5 {
        font-size: 18px;
    }
    h6, button, a.btn  {
        font-size: 16px;
    }
    p, label, input, select, textarea, input::placeholder, select::placeholder, textarea::placeholder {
        font-size: 14px;
    }
    .col-2 {
        grid-template-columns: 1fr!important;
        row-gap: 20px;
    }
}


/* Course overview specific styling  */
.grid-titelzeile {
    margin: 0;
    margin-top: 20px;
}

.grid-container-5col {
    display: grid;
    grid-template-columns: 15% auto 10% 10% 220px; 
    align-items: center; 
    grid-gap: 10px;
    padding: 5px;
    margin: 0 auto;
    max-width: 100%;
}
    
.grid-container-5col .item {
    display: flex;
    flex-direction: column; 
    justify-content: space-evenly; 
    height: 100%;
}
    
.grid-container-5col .item.buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
    
.grid-container-5col .label {
    font-weight: bold;
    margin-right: 5px;
}

.row {
    margin: 0px 0px 40px 0px;
}

@media all and (min-width: 768px) and (max-width: 980px) {
    .grid-container-5col {
        display: grid;
        grid-template-columns: 18% auto 9% 9% 140px
    }
}

@media (max-width: 768px) {
    .grid-container-5col {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .grid-container-5col .item {
        flex-direction: row;
        justify-content: left
    }

    
    
    .grid-container-5col .item.buttons {
        justify-content: space-around;
    }
}


/* Course sign-up form specific styling  */
.col, .col-2 {
    margin-bottom: 20px;
}
.col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
}