/* ---------- style.css ---------- */
/*
Theme Name: Tannenhof
Theme URI: https://tannenhof-griesheim.de
Author: Tannenhof Team
Description: Ein WordPress-Theme für den Tannenhof - Zentrum für klassische Reitkunst.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
@font-face {
    font-family: 'Snell Roundhand';
    src: url('fonts/SnellRoundhand.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Mobile-First-Stile */
body {
     font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    background-color: rgb(255, 255, 255);
    color: rgb(240, 232, 190);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}
.content_wrapper {
    width: 100%;
    background-color: rgb(240, 232, 190);   
}
header {
    display: flex;
    align-items: center; /* Zentriert die Elemente vertikal */
    justify-content: space-between; /* Verteilt die Elemente gleichmäßig */
    padding: 10px 20px;
    background-color: rgb(0, 51, 36);
    color: rgb(240, 222, 120);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 50px;
}

header img {
    height: 35px;   
    flex-shrink: 0; /* Verhindert das Schrumpfen */
}

header h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    flex-grow: 1; 
	padding-left: 5px;
	padding-right: 5px;
}

body.scrolled header h1 {
    opacity: 0;
    visibility: hidden;
}

body.scrolled header{
   min-height: 40px;
}

body.scrolled header img{
    height: 25px;  
    left: 10px;
}

nav {
    display: flex; /* Flexbox für den `nav`-Container */
    align-items: center; /* Zentriert das Hamburger-Menü vertikal */
    position: relative;
    flex-shrink: 0; /* Navigation bleibt in ihrer Größe konstant */
}

nav .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert die Hamburger-Balken */
    cursor: pointer;
    background: none;
    border: none;
}

nav .hamburger div {
    background-color: rgb(240, 222, 120);
    height: 2px;
    width: 25px;
    margin: 3px 0;
    transition: all 0.3s;
}

nav .hamburger.active div:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

nav .hamburger.active div:nth-child(2) {
    opacity: 0;
}

nav .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
}

nav ul {
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgb(0, 51, 36);
    
}

nav.active ul {
    display: flex;
	flex-direction: column;
	position: absolute;
	top: 33px;
	right: -20px;
	background-color: rgb(0, 51, 36);	
	min-width: 165px;
	padding: 10px;
}

nav ul li {
    margin: 9px 0;
}

nav ul li a {
    color: rgb(240, 222, 120);
    text-decoration: none;
    padding: 10px;
}
.trenner-green{
	width:100%;
	height: 25px;
	background-color: rgb(0, 51, 36);
	
}
footer {
    background-color: rgb(0, 51, 36);
    color: rgb(240, 222, 120);
    text-align: start;
    padding: 10px;
    position: relative;
    display: flex;   
    justify-content: space-between;
	min-height: 50px;
	font-size: 0.8rem;
} 
a{
	text-decoration: none;
	color: inherit;
}
footer p{
	line-height:15px;
	
}
.footer-left{
	width:50%;
	padding-left: 15px;
}
.footer-right{
	width:50%;
	padding-left: 40px;
}
.page{
	color: rgb(0, 0, 0);
}
.no-bottom-margin{
	margin: 0 0;
}
.no-top-margin{
	margin-top: 0px;
}
.margin-top-25{
	margin-top: 25px; 
}
.margin-bottom-25{
	margin-bottom: 25px; 
}
h2{
	font-size: 1rem;
}
p{
	line-height: 25px;
}
.wp-block-group{
	padding: 20px;
	
} 

.no-top-bottom-margin{
	margin-top: 0px !important;
	margin-bottom: 0px !important;
}

.no-top-bottom-padding{
	padding-top: 0px;
	padding-bottom: 0px;
}	
.txt-beige{
	padding: 25px;
	font-size: 1rem;
	margin-top: 0px;
	margin-bottom: -25px;
}
.green-block{
	background-color: rgb(0, 51, 36);
	color: rgb(240, 222, 120);
	padding-top: 10px;
	padding-bottom: 20px;

}

.green-block-border{
	background-color: rgb(0, 51, 36);
	color: rgb(240, 222, 120);
	padding-top: 10px;
	padding-bottom: 20px;

}

.green-block-border p {
  border: 0.75px solid rgb(240, 222, 120);
  padding: 10px;
  display: block; /* Block-Element nimmt ganze Breite ein */
  width: 100%;     /* explizit volle Breite */
  box-sizing: border-box; /* Padding wird innerhalb der Breite berücksichtigt */
  text-align: center;
}

.wp-block-list{
	margin-top: 25px;
	margin-bottom: 25px;
}	
/* Tablet- und Desktop-Stile */
@media (min-width: 768px) {
    header {
        justify-content: space-between;
        padding: 10px 20px;
    }

    header h1 {
        font-size: 1.25rem;
    }
	header img { 
		height: 50px;
	}
    nav {
        position: absolute;
        top: 15px;
        right: 30px;
    }

    nav ul {
        display: none;
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 5px;
    }

    nav .hamburger {
        display: flex;
    }
	nav.active ul {		
		top: 55px;
		right: -30px;
		min-width: 165px;
	}
}

@media (min-width: 1024px) {
    .content_wrapper {
        width: 1024px;
    }
	 header h1 {
        font-size: 1.25rem;
    }
}
