/*
Theme Name: Gäste willkommen / Hotelkompetenz by Stephanie
Author: Stephanie Busch von Holtum
Description: Ein einfaches Wordpress Theme.
Version: 4
*/


* {
    box-sizing: border-box;
}

:root { 
    --meine-hintergrundfarbe: #fafafa;
    --sbvh-color-bg-main:    var(--meine-hintergrundfarbe);
    --sbvh-color-iceblue:    #b0c4de;
}

html {
    height: 100%;
    font-family: Montserrat, verdana, sans-serif;
    line-height: 1.6em;
    font-size: 18px;
}
body:not(.admin-bar) {
    --wp-admin--admin-bar--height: 0px;
}

body {
    background: var(--meine-hintergrundfarbe);
    height: 100vh;
    min-height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column nowrap;
}



/****************
 **** Design ****
 ***************/
 main, aside, footer {
    padding: 1em;
}

    /*
    * Header 
    */

    header {
        max-width: 100%; 
        position: relative;
    }

    .header-logo {
        position: absolute;
        z-index: 5;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-logo img {
        width: 50vw;
        max-width: 180px;
        aspect-ratio: 1/1; /* Logodatei ist quadratisch, sonst Seitenverhätnis anpassen! */
        height: auto;
        display: block;
    }

    @media screen and (min-width: 560px) {

        .header-logo {
            top: 10vh;
            bottom: unset;
        }

        .header-logo img {
            max-width: 250px;
        }
    
    }

    /* Container für Headerbild / post_thumbnail */
    .header-media {
        max-height: 60vh;
        overflow: hidden;
    }

    /* Startseiten Header höher */
    body.home .header-media {
        max-height: 80vh; 
    }

    .header-media .wp-post-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
    }

    div#header-icons {
        position: fixed;
        top: 0;
        right: 0;
        width: 40vw;
        height: 2.8em;
        max-width: 6em;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .header-icon {
        flex: 1 0 30%;
        color: #FFF;
        font-size: 1.2em;
    }

    .scrolled .header-icon {
        color: #b0c4de;
    }

    /* Seiten-spezifische  Header modifikatonen */
    body.page-id-97 a.custom-logo-link, body.page-id-2 a.custom-logo-link { display: none; }

    /* Headerbild ausgeblendet */
    .page-id-25 .header-media, 
    .page-id-27 .header-media,
    .page-id-3 .header-media { 
        height: 40vh;
        background-color: #B0C4DE;
        position: relative; /* Added position: relative to the parent container */
    }

/* Logo zentriert im Header */
.page-id-25 .header-logo,
.page-id-27 .header-logo,
.page-id-3 .header-logo {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.page-id-25 .header-logo img,
.page-id-27 .header-logo img,
.page-id-3 .header-logo img {
    width: 25vw;
    max-width: 250px;
    aspect-ratio: 1/1; /* Logodatei ist quadratisch, sonst Seitenverhältnis anpassen! */
    height: auto;
    display: block;
}


    /**
 * Farben
 */
/* Blaue Textbox Farbinfo */
.textbox-blue {
    background-color: #B0C4DE;
}

/* Graue Textbox Farbinfo*/
.textbox-gray {
    background-color: #F0F0F0;
}

/* Hellblaue Textbox Farbinfo*/
.textbox-light-blue {
    background-color: #E6EAF9;
}

/* Rosa Textbox Farbinfo*/
.textbox-rose {
    background-color: #F9E6E9;
}


/* Typographie */
h1 {
    font-family: Playfair Display;
    font-style: italic;
    font-size: 2em;
    line-height: 1.3em;
}

h2 {
    font-family: Playfair Display;
    font-style: normal;
    font-size: 1.5em;
    line-height: 1.3em;
}

h3, h4, h5, h6 {
    font-family: Playfair Display;
    font-style: normal;
    font-size: 1.3em;
    line-height: 1.3em;
}

/* Abstand h1 und h2 */
h1 + h2 {
    margin-top: 50px; 
}

.wrapper main,
.blog-page-header {
    width: calc(100% - 20px); /* 100% der Breite minus 20px (10px links und 10px rechts) */
    margin-inline: auto;
    margin-bottom: 2.8em;
    max-width: 1060px;
    padding: 0;
}

/* Desktop */
@media screen and (min-width: 54em) {
    .wrapper {
        flex-flow: row nowrap;
        justify-content: center;
    }

    .page-template-blog-php .wrapper main,
    .page-template-hotels-php .wrapper main {
        width: calc(100% - 20px); /* 100% der Breite minus 20px (10px links und 10px rechts) */
        max-width: 1600px;
        margin-inline: auto;
    }
}


/**
 * Main
 */
 main {
    background-color: var(--meine-hintergrundfarbe);
    word-wrap: break-word; /* bricht lange Worte auf mobile um, verhindert overflow */
}


/**
 * Footer
 */
footer {
    background-color: #f0f0f0;
}


/**
 * Desktop oder größer
 */
 @media screen and (min-width: 54em) {
    main {
        background-color: var(--meine-hintergrundfarbe);
    }
}


/*
 * Navigation

header nav {
    padding-top: var(--wp-admin--admin-bar--height);
}
*/

header nav ul li:hover {
    background-color: var(--meine-hintergrundfarbe)
}

header nav ul {
    margin: 0; /* Neu hinzugefügt, um den Standardabstand zu entfernen */
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: center; /* Änderung für die Ausrichtung */
}

header nav ul a {
    text-align: center;
    text-decoration: none;
    padding: 1em;
    color: #323232;
    font-size: 24px; /* Hier die Schriftgröße einfügen */
    font-family: Playfair Display, sans-serif; /* Hier die gewünschte Schriftart einfügen */
}


/** 
 *Navigation - Menü 
 */
 header nav ul {
    margin: 10px;
    padding: 10px;
    list-style-type: none;
    display: flex;
    justify-content: space-between; /* Abstand zwischen den Menüpunkten */
}

header nav ul a {
    position: relative; /* Position relativ setzen, damit die Pseudo-Elemente relativ zum Anker positioniert werden können */
    text-align: center;
    text-decoration: none;
    padding: 1em 2em 0.5em 2em; /* Hier den Abstand bei den Menüpunkten und Unterstrich ändern */
    color: #323131;
    font-size: 24px;
    font-family: Playfair Display; /* Standardschriftart für den ersten Satz */
}

/* Stil für die erste Zeile */
header nav ul a::before {
    content: attr(data-first-line); /* Inhalt aus dem data-first-line Attribut einfügen */
    display: block; /* Als Blockelement anzeigen */
    font-family: Playfair Display, sans-serif; /* Schriftart für die erste Zeile */
    font-style: normal; /* Schriftart für die erste Zeile */
}

/* Stil für die zweite Zeile */
header nav ul a::after {
    content: attr(data-second-line); /* Inhalt aus dem data-second-line Attribut einfügen */
    display: block; /* Als Blockelement anzeigen */
    font-family: Playfair Display, serif; /* Schriftart für die zweite Zeile */
    font-style: italic;
}

header nav ul.sub-menu {
    font-size: 0.75em;
}

header nav ul.sub-menu a {
    font-family: Playfair Display, sans-serif; /* Schriftart für den unteren Menütext */
}

@media screen and (min-width: 560px) {
    header nav ul.sub-menu {
        display: none;
    }

    header nav ul li a i {
        display: none;
    }

    header nav ul a {
        display: block;
    }

    span.menu-item-description { 
        display: block;
        font-size: 0.6em;
        font-family: Playfair Display;
        font-style: italic;
        line-height: 1.1em;
        margin-top: .5em;
    }
}

/* Media Query für Tablet-Ansicht (bis 991px) */
@media screen and (max-width: 991px) {
    header nav {
        padding-top: 0; /* Abstand oben entfernen */
    }

    header nav ul {
        padding: 0; /* Standardabstandentfernen */
        margin: 0; /* Standardabstand entfernen */
        display: flex;
        justify-content: center; /* Menüpunkte zentrieren */
    }

    header nav ul li {
        margin: 0 10px; /* Abstand zwischen den Menüpunkten anpassen */
    }

    header nav ul a {
        padding: 10px; /* Abstand anpassen */
    }
}

/** 
 *Aktiver Menü-Punkt 
 */
 @media screen and (min-width: 560px) {
    header nav ul li a {
        text-align: center;
        text-decoration: none;
        padding: 1em 0.5em 0.5em 0.5em; /* Abstand nach Bedarf */
        margin-bottom: 50px;
        color: #323131;
        font-size: 1.1em;
        font-family: Playfair Display; /* Schriftart */
        position: relative; /* Position relativ setzen, damit das Pseudoelement relativ zum Anker positioniert werden kann */
    }


    header nav ul li a:hover::after {
        content: ''; /* Pseudoelement-Inhalt */
        display: block; /* Als Blockelement anzeigen */
        position: absolute; /* Absolut positioniert relativ zum Anker */
        bottom: -1px; /* Position unter dem Text */
        left: 0; /* Von links beginnen */
        width: 100%; /* Volle Breite des Ankers */
        height: 2px; /* Dicke des Unterstrichs */
        background-color: #323131; /* Farbe des Unterstrichs */
    }
 }

 @media screen and (min-width: 560px) {
    header nav ul li a {
        text-align: center;
        text-decoration: none;
        padding: 1em 0.5em 0.5em 0.5em; /* Ändere den Abstand hier nach Bedarf */
        margin-bottom: 50px;
        color: #323131;
        font-size: 1.1em;
        font-family: Playfair Display; /* Schriftart */
        position: relative; /* Position relativ setzen, damit das Pseudoelement relativ zum Anker positioniert werden kann */
    }
}

@media screen and (min-width: 992px) {
    header nav ul li a {
        text-align: center;
        text-decoration: none;
        padding: 1em 1em 0.5em 1em; /* Ändere den Abstand hier nach Bedarf */
        margin-bottom: 50px;
        color: #323131;
        font-size: 1.75em;
        font-family: Playfair Display; /* Schriftart */
        position: relative; /* Position relativ setzen, damit das Pseudoelement relativ zum Anker positioniert werden kann */
    }

    span.menu-item-description { 
        font-size: 0.75em;
        line-height: 1.6em;
    }
}

/* Mobile Navigation */
/*@media screen and (max-width: 34.998em) {*/
@media screen and (max-width: 559px) {

    header nav {
        background: var(--meine-hintergrundfarbe);
        backdrop-filter: blur(4px);
        transition: left 0.3s ease-out;
        position: fixed;
        top: 0;
        left: calc(-80vw - 1em);
        width: calc(80vw + 1em);
        
        height: 100%;
        z-index: 999;
        padding-inline: .5em;

        /* Menü bündig mit unterem Bildschirmrand */
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    header nav ul {
        padding: 0;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
    }

    header nav ul li {
        margin: 0;
    }

    header nav ul li a {
        padding: 1em;
        font-size: 1.3em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.menu-open header nav {
        left: 0;
    }

    header nav ul li .menu-item-description {
        margin-left: .3em;
    }
    header nav ul li a::after {
        position: relative;
        border-bottom : 2px solid transparent;
    }

    header nav ul li a:hover::after {
        position: relative;
        border-bottom : 2px solid #000;
    }

}


/*
 * Navigation Button
 */
 #nav-btn {
    cursor: pointer;
    position: relative;

/*    top: calc(20px + var(--wp-admin--admin-bar--height)); */
}

@media screen and (min-width: 35em) {
    #nav-btn {
        display: none;
    }
}

/* Menü geöffnet */
#nav-btn.close span:first-child {
    rotate: 45deg;
    position: absolute;
    top: 20%;
}

#nav-btn.close span:nth-child(2) {
    opacity: 0;
}

#nav-btn.close span:last-child {
    rotate: -45deg;
    position: absolute;
    top: 20%;
}


/** 
 *Burger-Icon-Stil 
 */
.burger-icon {
    cursor: pointer;
    z-index: 1000;
}

.burger-icon span {
    display: block;
    width: 60%;
    height: 4px; /* Striche */
    background-color: #FFFFFF;
    margin: 4px 0; /* Abstand zwischen den Strichen */
    transition: color 0.3s, transform 0.3s ease, opacity 0.3s ease;
}

.burger-icon:hover span {
    background-color: #B0C4DE;
}

/* Stile für das geöffnete Menü */
nav.menu-open  {
    left : 0; /* positioniere Menü innerhalb des view */
    display: flex;
}


/* Ändern der Striche zu einem X, wenn das Menü geöffnet ist */
.menu-open .burger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px); /* Anpassen der Transformierung */
}

.menu-open .burger-icon span:nth-child(2) {
    opacity: 0;
}

.menu-open .burger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px); /* Anpassen der Transformierung */
}

/* Farbe des Burger-Icons beim Scrollen */
.scrolled .burger-icon span {
    background-color: #B0C4DE; /* Farbe für das Burger-Icon beim Scrollen */
}



/**
 * Style für die Blog Seite
 */ 
.page-template-blog main article,
.page-template-hotels main article {
    display: flex;
    margin-bottom: 5em; /* Abstand zwischen den Blogbeiträgen */
    /*
    margin-left: 150px;
    margin-right: 150px; */
    max-width : 1200px;
    margin-inline: auto;
    align-items: stretch; 
}

.page-template-blog main article .blog-post-image,
.page-template-hotels main article .blog-post-image {
    flex: 0 0 33%; /* Breite des Bildes (1/3 des verfügbaren Platzes) */
    margin-right: 50px; /* Abstand zwischen Bild und Text */
    display: flex; /* Um das Bild innerhalb des Containers auszurichten */
    align-items: stretch; /* Stellt sicher, dass das Bild die gleiche Höhe hat */
}

.page-template-blog main article img,
.page-template-hotels main article img {
    width: 100%; /* Bildbreite */
    height: 100%; /* Automatische Höhe, um das Seitenverhältnis beizubehalten */
    object-fit: cover; /* Stellt sicher, dass das Bild den gesamten Container ausfüllt */
}

.page-template-blog main article .article-thumb,
.page-template-hotels main article .article-thumb { 
    flex: 1 0 45%; 
}

.page-template-blog main article .article-content,
    .page-template-hotels main article .article-content {
        flex: 1 0 calc(55% - 20px); /* Breite des Inhalts (2/3 des verfügbaren Platzes abzüglich des Abstands) */
        min-width: 300px; /* Mindestbreite für den Inhalt */
        background-color: #f0f0f0;
    }

@media screen and (min-width: 992px) {
    
    .page-template-blog main article .article-thumb,
    .page-template-hotels main article .article-thumb { 
        flex: 1 0 33%; 
    }
    
    .page-template-blog main article .article-content,
    .page-template-hotels main article .article-content {
        flex: 1 0 calc(67% - 20px); /* Breite des Inhalts (2/3 des verfügbaren Platzes abzüglich des Abstands) */
        min-width: 300px; /* Mindestbreite für den Inhalt */
        background-color: #f0f0f0;
    }

}


.page-template-blog main article .article-content h2,
.page-template-hotels main article .article-content h2 {
    margin-top: 30px; 
}

.page-template-blog main article .read-more,
.page-template-hotels main article .read-more {
    margin-bottom: 20px; 
}

.page-template-blog main article .article-meta span,
.page-template-hotels main article .article-meta span {
    margin-right: 5px;
}

.page-template-blog main article h2 a,
.page-template-hotels main article h2 a {
    color: #323131; 
    text-decoration: none;
}

.page-template-blog main article h2 a:hover,
.page-template-hotels main article h2 a:hover {
    color: #ffffff; /* Farbe beim Hover-Effekt */
}

.page-template-blog main article .article-excerpt,
.page-template-hotels main article .article-excerpt {
    margin-top: 10px;
}

.page-template-blog main article .read-more,
.page-template-hotels main article .read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 10px;
    background-color: #B0C4DE;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
}

.page-template-blog main article .read-more:hover,
.page-template-hotels main article .read-more:hover {
    background-color: #E6EAF9;
}

/* Abstand für Überschriften und Intro-Texte in WordPress-Beiträgen */
.page-template-blog main article .entry-content h1,
.page-template-blog main article .entry-content h2,
.page-template-blog main article .entry-content p,
.page-template-hotels main article .entry-content h1,
.page-template-hotels main article .entry-content h2,
.page-template-hotels main article .entry-content p  {
    margin-left: 20px; /* Abstand links */
    margin-right: 20px; /* Abstand rechts */
}

/* Media Query für Tablet und größere Bildschirme */
@media screen and (min-width: 35em) {
    .page-template-blog main article,
    .page-template-hotels main article {
        padding: 0; /* Setze den Seitenabstand auf 0 zurück */
    }

    .page-template-blog main article .article-thumb img,
    .page-template-hotels main article .article-thumb img {
        aspect-ratio: 1 / 1;
    }

    .page-template-blog main article .article-content,
    .page-template-hotels main article .article-content {
        padding: 0 20px;
    }

    .page-template-blog main article h2,
    .page-template-hotels main article h2 {
        margin-top: 0;
    }

    .page-template-blog main article h2 a,
    .page-template-hotels main article h2 a {
        color: black;
    }
}

@media screen and (max-width: 768px) {
    .page-template-blog main article,
    .page-template-hotels main article {
        display: block; /* Ändere die Anzeige auf Block, um die Elemente zu stapeln */
        flex-direction: column;
        margin-left: 20px; /* Verringere den linken Seitenabstand */
        margin-right: 20px; /* Verringere den rechten Seitenabstand */
    }

    .page-template-blog main article .blog-post-image,
    .page-template-blog main article .article-thumb,
    .page-template-blog main article .article-content,
    .page-template-hotels main article .blog-post-image,
    .page-template-hotels main article .article-thumb,
    .page-template-hotels main article .article-content {
        flex: 1 0 100%; /* Alle Elemente sollen die volle Breite einnehmen */
        margin-right: 0; /* Entferne den rechten Rand */
        margin-bottom: 20px; /* Füge einen Abstand zwischen den gestapelten Elementen hinzu */
    }

    .page-template-blog main article .article-content,
    .page-template-hotels main article .article-content {
        padding: 20px; /* Füge Innenabstand hinzu */
    }

    .page-template-blog main article .blog-post-image img,
    .page-template-hotels main article .blog-post-image img,
    .page-template-blog main article .article-thumb img,
    .page-template-hotels main article .article-thumb img {
        width: 100%;
        height: auto;
    }
}


/**
 * Style für die Textboxen auf der Leistungen Seite
 */
.textbox-container {
    background-color: transparent;
    color: #323131;
    display: flex;
    flex-wrap: wrap;
}

.textbox {
    flex: 1 1 calc(50% - 20px);
    margin: 0 10px 20px;
    padding: 20px;
    overflow: hidden;
    position: relative;
    word-wrap: break-word; /* Umbruch des Textes bei Bedarf */
    min-height: 400px; /* Mindesthöhe textbox */
}
    
    
.textbox-content {
    flex-grow: 1; 
}

.custom-button {
    background-color: transparent;
    color: #323131;
    padding: 15px;
    text-align: left;
    text-decoration: underline;
    font-size: 16px;
    position: absolute;
    bottom: 10px;
    left: 20px; /* Abstand vom linken Rand */
}

.custom-button:hover {
    background-color: var(--meine-hintergrundfarbe);
}

/* Styling für die Striche */
.textbox-container hr {
    border: 0;
    border-top: 1px solid #323131; /* Farbe und Dicke des Strichs */
    width: 100%; /*Breite des Striches */
    margin: 10px 0; /* Abstand zwischen Linie und Text */
}

/* Styling für die Überschrift (Titel) */
.textbox h3 {
    font-size: 24px; 
    color: #323131; 
    margin-top: 0; /* oberer Abstand für die Überschrift */
    margin-bottom: 20px; /* unterer Abstand für die Überschrift */
}

/* Media Query für Tablet */
@media screen and (max-width: 1024px) {
    .textbox {
        width: calc(50% - 20px); /* Zwei Boxen nebeneinander auf Tablets */
        margin: 0 10px 50px; /* Abstand zwischen den Boxen */
        min-height: 550px;
    }
}

/* Media Query für mobile Geräte */
@media screen and (max-width: 600px) {
    .textbox {
        width: 100%; /* Eine Box pro Zeile auf mobilen Geräten */
        margin-right: 0; /* Kein rechter Abstand auf mobilen Geräten */
        min-height: 200px;
    }
}


/**
 * Style für die Icontextbox auf der Kurse Seiten 
 */
.custom-textbox {
    display: flex;
    align-items: flex-start; /* Ändert die vertikale Ausrichtung zu 'flex-start' */
    background-color: #f0f0f0; /* Standard-Hintergrundfarbe der Box */
    padding: 50px; /* Standard-Innenabstand der Box */
    margin-bottom: 50px; /* Standard-Abstand zwischen den Textboxen */
    overflow: hidden;
}

/* Stil für das Bild */
.custom-textbox .textbox-image {
    flex-shrink: 0; /* Verhindert das Schrumpfen des Bildcontainers */
    margin-right: 4em; /* Abstand zwischen Bild und Text vergrößern */
    order: -1;
}


.custom-textbox .textbox-image img {
    width: 400px; /* Bildbreite */
    height: 400px; /* Bildhöhe */
    object-fit: cover; /* Bild an Rahmen anpassen, ohne das Seitenverhältnis zu verlieren */
}

/* Stil für das Icon */
.custom-textbox h3 i {
    margin-right: 10px; /* Abstand zwischen Icon und Titel */
    font-size: 24px; /* Größe des Icons */
}

/* Stil für den Titel */
.custom-textbox h3 {
    margin-top: 0; 
    margin-bottom: 10px; 
    color: #323131; 
    font-size: 24px;
}

/* Stil für den Strich */
.custom-textbox hr {
    margin-top: 10px; /* Abstand über dem Strich */
    margin-bottom: 30px; /* Abstand unter dem Strich */
    border: 0;
    border-top: 1px solid #323131; /* Farbe und Dicke des Strichs */
    width: 70%; /*Breite des Striches */
    margin-left: 0;
}

/* Stil für den Absatz */
.custom-textbox p {
    margin-top: 10px; 
    margin-bottom: 0; 
    color: #323131;
}

/* Stil für den Link */
.custom-textbox .contact-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: #323131; /* Textfarbe des Links */
    text-decoration: underline; /* Unterstreichung */
}

.custom-textbox .contact-link:hover {
    background-color: var(--meine-hintergrundfarbe); /* Hintergrundfarbe des Links beim Hover */
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .custom-textbox {
        flex-direction: column; /* Ändern der Flex-Richtung auf Spaltenlayout */
        align-items: flex-start; /* Text links ausrichten */
        justify-content: flex-start; /* Bild links ausrichten */
        line-height: 1.6; /* Erhöhung des Zeilenabstands */
    }

    .custom-textbox .textbox-content {
        text-align: left; /* Zentrieren des Textes horizontal */
        margin-top: 0px; /* Abstand zwischen Bild und Text hinzufügen */
    }
    
    .custom-textbox .textbox-image {
        margin-bottom: 20px; /* Unteren Abstand hinzufügen */
        order: -1; /* Ändern der Reihenfolge, um das Bild über den Text zu platzieren */
    }

    .custom-textbox .textbox-image img {
        width: 100%; /* Bildbreite auf 100% setzen */
        height: auto; /* Automatische Höhe beibehalten */
        object-fit: cover; /* Bild an Rahmen anpassen, ohne das Seitenverhältnis zu verlieren */
    }
}

@media screen and (max-width: 767px) {
    .custom-textbox {
        padding: 20px;
        width: calc(100% - 40px); /* Breite der Box anpassen */
    }

    .custom-textbox .textbox-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
}


/** 
 *Style für das Startseiten-Element auf der Startseite 
 */
.startseite-element {
    display: flex;
    max-width: 1060px;
    align-items: flex-start; /* Vertikale Ausrichtung zu 'flex-start' */
    padding: 50px 0; /* Innenabstand des Elements */
    margin-bottom: 0px !important; /* Abstand zwischen den Elementen */
    overflow: hidden;
    width: 100%;
}

/* Stil für das Bild */
.startseite-element .bild {
    flex-shrink: 0; /* Verhindert das Schrumpfen des Bildcontainers */
    margin-right: 40px; /* Abstand zwischen Bild und Text */
    margin-left: -100px;
}

.startseite-element .bild img {
    width: 500px; /* Bildbreite */
    height: auto; /* Bildhöhe */
}

/* Abstand Blogelemente */
.wp-block-query li.wp-block-post { 
    margin-bottom: 3em; 
}

/* Stil für das Blogbild */
.wp-block-post-featured-image {
    flex-shrink: 0; /* Verhindert das Schrumpfen des Bildcontainers */
    margin-right: 40px; /* Abstand zwischen Bild und Text */
    margin-left: 0px;
    width: 400px; /* Bildbreite */
    height: 400px; /* Bildhöhe */
}

/* Blogtext rechts vom Bild anordnen */
.wp-block-column is {
    padding-left: 0px;
}

/* Stil für den Inhalt */
.startseite-element .inhalt {
    flex-grow: 1; /* Lässt den Inhalt wachsen, um den verfügbaren Platz auszufüllen */
}

/* Stil für die Überschrift */
.startseite-element h2 {
    margin-top: 20px; /* Abstand für die Überschrift */
    margin-bottom: 20px; /* Unterer Abstand für die Überschrift */
    color: #323131; /* Textfarbe der Überschrift */
}

/* Stil für den Text */
.startseite-element p,
.wp-block-post-excerpt__excerpt {
    margin-top: 10px; /* Abstand für den Text */
    margin-bottom: 20px; /* Unterer Abstand für den Text */
    color: #323131; /* Textfarbe */
}

.custom-textbox h3 {
    font-size: 1.3em; /* Schriftgröße für h3 anpassen */
    font-family: 'Playfair Display', serif; /* Schriftart für h3 anpassen */
    font-style: normal; /* Schriftstil für h3 anpassen */
}

/* Stil für den Button */
.startseite-element .weiter-button,
.wp-block-post-excerpt__more-link {
    display: inline-block; /* Der Button wird inline angezeigt */
    padding: 10px 20px; /* Innenabstand des Buttons */
    background-color: transparent; /* Transparenter Hintergrund */
    color: #323131; /* Textfarbe des Buttons */
    border: 2px solid #323131; /* 2px breiter Rand in der Farbe des Textes */
    text-decoration: none; /* kein Unterstrich */
}

.startseite-element .weiter-button:hover,
.wp-block-post-excerpt__more-link:hover {
    background-color: #f0f0f0; /* Hintergrundfarbe des Buttons beim Hover */
    color: #323131; /* Textfarbe des Buttons beim Hover */
}

/* Stil für das Bild, wenn es rechts vom Text ist */
.startseite-element.bild-rechts .bild {
    margin-right: -30px; /* Kein Abstand zwischen Text und Bild (für Bild rechts) */
    margin-left: 0px; /* Abstand zwischen Bild und Text (für Bild rechts) */
}

.startseite-element.bild-rechts .inhalt {
    order: -1; /* Ändert die Reihenfolge von Bild und Text (für Bild rechts) */
}

/* Media Queries für Tablet-Ansicht (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .startseite-element .bild img,
    .wp-block-post-featured-image {
        width: 200px; /* Anpassung der Bildbreite für Tablets */
        height: auto; /* Automatische Anpassung der Bildhöhe für Tablets */
    }

}

/* Media Queries für Tablet-Ansicht (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .startseite-element .bild img,
    .wp-block-post-featured-image {
        width: 100%; /* Das Bild kann maximal die Breite seines Containers haben */
        height: auto; /* Automatische Anpassung der Bildhöhe */
    }
}

/* Media Queries für Mobile-Ansicht (bis 767px) */
@media screen and (max-width: 767px) {
    .startseite-element {
        flex-direction: column;
        padding: 20px;
    }

    .startseite-element .bild,
    .wp-block-post-featured-image {
        margin-right: 0;
        margin-left: 0;
    }

    .startseite-element .bild img,
    .wp-block-post-featured-image {
        max-width: 100%;
    }

    .startseite-element.bild-rechts .inhalt {
        order: initial;
    }
}


/** 
 *Style für die Textbox auf der Startseite und Kurse Seite
 */
.custom-textbox {
    background-color: #f0f0f0; /* Hintergrundfarbe */
    padding: 50px;
    margin-top: 5%;
    margin-bottom: 5%;
    border-radius: 0; /* Optional: abgerundete Ecken */
    width: 100%; /* Standardbreite */
    box-sizing: border-box; /* Stellt sicher, dass Padding zur Breite gezählt wird */
}

.custom-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-align: center;
    color: #323131; /* Textfarbe */
    font-size: 1.6em; /* Schriftgröße */
    padding: 20px 0; /* Abstand oben und unten */
}
.custom-textbox.home { 
    justify-content: center; 
}

/* Media Queries für Tablet-Ansicht (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .custom-textbox {
        padding: 40px; /* Kleinerer Innenabstand für Tablets */
    }
}

/* Media Queries für Mobile-Ansicht (bis 767px) */
@media screen and (max-width: 767px) {
    .custom-textbox {
        padding: 30px; /* Kleinerer Innenabstand für mobile Geräte */
        width: 100%; /* Volle Breite auf mobilen Geräten */
        line-height: 1.6; /* Erhöhung des Zeilenabstands */
    }

    .custom-text {
        font-size: 1.3em; /* Kleinere Schriftgröße für mobile Geräte */
    }
}


/** 
 *Style für das Newsletter Element 
 */
.newsletter-wrapper {
    background-color: #B0C4DE;
}

.newsletter-container {
    background-color: #B0C4DE; 
    display: block;
    max-width: 1060px;
    margin-inline: auto;
    padding: 20px; /* 20px Abstand oben und unten */
    margin-top: 20px; /* Abstand vom vorherigen Element */
    margin-bottom: 0px; /* Abstand zum nächsten Element Footer */
    clear: both; /* Löscht die Floats von anderen Elementen */
    overflow: hidden; /* Verhindert, dass der Inhalt aus dem Container austritt */
}

.graphic-element {
    float: left; /* Bild links ausrichten */
    
}

.text {
    color: #323131;
    overflow: hidden; /* Verhindert, dass der Text in das Bild überlappt */
    margin-top: 30px;
    margin-left: 0px; 
    margin-right: 0px;
    line-height: 1.6em;
}

@media screen and (min-width: 992px) {
    .text {
        margin-top : 90px;
    }
}

.newsletter-form {
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
}

.graphic-element img {
    width: 500px;
    height: 300px;
    margin-left: 0%;
    margin-top: 10%;
    margin-bottom: 10%;
}

@media screen and (max-width: 768px) {
    .newsletter-container {
        padding: 10px; /* Reduziere den Abstand für kleinere Bildschirme */
    }
    
    .graphic-element {
        float: none; /* Entferne das Floating für kleinere Bildschirme */
        margin: 0 auto 20px; /* Zentriere das Bild und füge unten einen Abstand hinzu */
        text-align: center;
    }

    .graphic-element img {
        width: 100%; /* Passe die Bildbreite an die Containerbreite an */
        height: auto; /* Erhalte das Seitenverhältnis */
    }

    .text {
        margin-top: 20px; /* Reduziere den oberen Abstand */
        text-align: center; /* Zentriere den Text */
        line-height: 1.6;
    }
}

@media screen and (max-width: 480px) {
    .newsletter-container {
        padding: 5px; /* Weiter reduziere den Abstand für sehr kleine Bildschirme */
    }

    .text {
        margin-top: 10px; /* Weiter reduziere den oberen Abstand */
        text-align: left; /* Linksbündig für besseres Lesen auf sehr kleinen Bildschirmen */
        line-height: 1.6;
    }

    .graphic-element img {
        margin-top: 5%;
        margin-bottom: 5%;
    }
}


/** 
 *Style für das Kontaktformular 
 */
/* Hintergrundfarbe des Formulars */
.wpcf7 {
    background-color: var(--meine-hintergrundfarbe);
    padding: 20px;
}

/* Ändere die Schriftart und die Schriftfarbe */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    font-family: Montserrat, sans-serif;
    color: #323131;
}

/* Ändere die Stil des Absende-Buttons */
.wpcf7 input[type="submit"] {
    background-color: #B0C4DE;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* Größe des Absende-Buttons */
.wpcf7 input[type="submit"] {
    font-size: 20px; /* Ändere die Schriftgröße des Buttons */
    padding: 15px 30px; /* Ändere das Padding, um den Button größer zu machen */
}

/* Bewegung beim Hovern */
.wpcf7 input[type="submit"]:hover {
    transform: translateY(-5px); /* Behalte die vorherige Bewegung bei */
}

/* Ändere die Breite der Eingabefelder */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%; 
    max-width: 100%;
    box-sizing: border-box;
    height: 50px;
}

.wpcf7 textarea[name="your-message"] {
    height: 200px;
}


/** 
 *Style für den Footer 
 */
.footer-container {
    background-color: #f0f0f0;
    font-family: Montserrat;
    width: 100%; /* Setzt die Breite auf 100% */
    max-width: 1060px; /* Optional: Begrenzt die maximale Breite des Containers */
    margin: 0 auto; /* Zentriert den Container horizontal */
    display: block;
    justify-content: space-between;
    padding: 50px; /* Gleicher Abstand oben und unten */
    clear: both; /* Löscht die Floats von anderen Elementen */
    overflow: hidden; /* Verhindert, dass der Inhalt aus dem Container austritt */
}

.footer-menu {
    /* Ändere die Ausrichtung des Menüs auf rechtsbündig */
    text-align: right;
}

.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu ul li {
    display: inline-block;
    margin-right: 10px;
}

.footer-menu ul li:last-child {
    margin-right: 0;
}

.footer-menu ul li a {
    color: #767b7d;
    text-decoration: none;
}

.footer-menu ul li a:hover {
    color: #323131;
}

.footer-container .copyright-info {
    text-align: right;
    color: #767b7d;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 30px; /* Abstand zwischen Menü und Copyright */
}

/* Trennstriche zwischen Menüpunkten */
.footer-menu ul li:not(:last-child)::after {
    content: "| ";
    margin-left: 12px;
    margin-right: 2px;
    color: #777;
}

/* SM Icons Style */
.footer-social-icons {
    float: left; /* Bild links ausrichten */
    
}

.footer-social-icons a {
    display: inline-block;
    margin-right: 14px; /* Abstand der Icons anpassen */
}

.footer-social-icons i {
    font-size: 40px; /* Größe der Icons anpassen */
    color: #767b7d; /* Farbe der Icons anpassen */
}

.footer-social-icons a:hover i {
    color: #323131;
}

/**
 * Tablet und größer
 */
 @media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .footer-menu {
        text-align: center;
        margin-top: 20px;
    }

    .footer-menu ul li {
        display: block;
        margin: 5px 0;
    }

    .footer-social-icons {
        float: none;
        margin: 20px 0;
    }

    .footer-container .copyright-info {
        margin-top: 20px;
        text-align: center;
    }

    .footer-menu ul li:not(:last-child)::after {
        content: none;
    }
}

@media screen and (max-width: 480px) {
    .footer-container {
        padding: 10px;
    }

    .footer-menu ul li {
        margin-right: 0;
    }

    .footer-social-icons i {
        font-size: 30px;
    }
}
