/* Normalize.css wird über CDN eingebunden */
/* Allgemeines Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif";
    line-height: 1.5;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Stellt sicher, dass der Body die volle Höhe des Viewports einnimmt */
}

/* Header */
header {
    background-color: #333;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
	 padding: 20px 10px;
    text-align: center;
    gap: 20px; /* Abstand zwischen den Elementen */
	position: relative;
   
}

.logo {
    max-width: 40%; /* Größe des Logos anpassen */
    height: auto;
    margin-top: 10px; /* Abstand nach oben */
}

.header-inner {
    display: flex;
    flex-direction: column; /* Standardmäßig vertikal ausgerichtet */
    align-items: center; /* Zentrierte Ausrichtung */
    gap: 15px;
}

.header-inner h1 {
    font-size: 2.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.top-contact {
  text-align: center;
  margin-bottom: 10px;
  font-size: 24px;          /* größer */
  letter-spacing: 0.04em;   /* ruhiger, edler */
}

.top-contact a {
  color: #ffffff;           /* weiß */
  text-decoration: none;    /* KEIN Unterstrich */
  font-weight: 500;
}

.top-contact a:hover {
  opacity: 0.85;            /* dezenter Hover */
}

.top-contact .sep {
  color: #ffffff;
  margin: 0 14px;
  opacity: 0.7;
}

/* Navigation */
.nav-links {
	text-align: center;
	margin: 20px auto; /* Abstand nach oben und zentriert */
}
.nav-links ul {
	list-style: none;
	display: flex;
	justify-content: center; /* Zentriert die Links */
	gap:20px; /* Abstand zwischen den Links */
	padding: 0;
	margin: 0;
	
}
.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
	text-transform: uppercase;
    letter-spacing: 4px;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.nav-links li a:hover {
    background-color: #555;
    border-radius: 5px;
}
.nav-links  a.active {
	color: #ffffff;
    background-color: #555;
    border-radius: 5px;
}
/* Hamburger Menu Standardmäßig verstecken */
.hamburger-menu {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
	margin-top: 20px;
}
/* Hauptinhalt */
main {
    flex: 1;
    padding: 20px;
    margin-top: 20px;
}

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

section {
    margin-bottom: 60px;
}


h2 {
	font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}
h3 {
	font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* Hamburger-Icon: drei Striche */
/* Standard: auf Desktop ausblenden */
.hamburger-menu {
    display: none; /* Desktop ausblenden, im Mobile-Block wieder einblenden */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 9999;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Zustand: geöffnet → X */
.hamburger-menu.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile-Navigation */
@media (max-width: 768px) {

    .hamburger-menu {
        display: flex;
        margin-top: 20px;
    }

    .nav-links ul {
        /* statt display:none; */
        display: flex;
        flex-direction: column;
        background-color: #333;
        width: 100%;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: static;   /* damit es unter dem Header bleibt */
    }

    .nav-links ul.active {
        max-height: 400px;  /* genug Platz für alle Links */
        padding: 20px 0;
    }

    .nav-links li a {
        display: block;
        padding: 10px 15px;
        font-size: 1rem;
        text-align: center;
    }
}

/* Hero Image Anpassung */
.hero-image {
    width: 100%;
    text-align: center;
    position: relative;
}
.hero-image img {
    width: 80%;
    height: auto;
	display: none;
	margin: 0 auto;
  	position: relative;
    top: 80px; /* Bild weiter nach unten verschieben */
	}
/* nur das aktive Bild anzeigen */
.hero-image img.active {
    display: block;
}

/* Hauptinhalt */
main {
    flex: 1; /* Hauptinhalt nimmt den verfügbaren Platz ein und drückt den Footer nach unten */
    padding: 20px;
    margin-top: 60px;
}

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

.services, .about, .contact, .location {
    margin-bottom: 60px; /* Abstand zwischen den Abschnitten */
}

/* Footer Navigation – ruhig & ohne Punkte */
.footer-nav ul {
  list-style: none;        /* ← Punkte weg */
  padding: 0;
  margin: 15px 0;
  display: flex;           /* ← nebeneinander */
  justify-content: center; /* ← zentriert */
  gap: 25px;               /* ← Luft zwischen Links */
}

.site-footer {
  background-color: #3f3f3f; /* dein Grau wie Header */
  color: #f2f2f2;
  padding: 40px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.footer-contact {
  font-size: 22px; /* exakt wie Header */
  margin-bottom: 20px;
}

.footer-contact a {
  color: #f2f2f2;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.footer-contact .sep {
  margin: 0 10px;
}

.footer-nav {
  margin-bottom: 24px;
  font-size: 16px;
}

.footer-nav a {
  color: #f2f2f2;
  text-decoration: none;
  margin: 0 6px;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-legal {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.footer-legal-links {
  margin-top: 6px;
  font-size: 14px;
}

.footer-legal-links a {
  color: #f2f2f2;
  text-decoration: none;
}

.footer-legal-links a:hover {
  opacity: 0.8;
}


/* Cookie-Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    text-align: center;
    z-index: 1000;
    display: none; /* Versteckt, bis JS es zeigt */
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
    margin: 0;
    display: inline-block;
}

.cookie-banner a {
    color: white;
    text-decoration: none;
	padding: 0 10px;
}

.cookie-banner a:hover {
    text-decoration: none;
}

#cookie-accept-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#cookie-accept-btn:hover {
    background-color: #45a049;
}


/* Modal-Stil */
.modal {
    display: none; /* Modal ist standardmäßig versteckt */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Halbtransparenter schwarzer Hintergrund */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh; /* Begrenzte Höhe */
    overflow-y: auto; /* Scrollbar bei großem Inhalt */
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header{
	position: sticky;
	top: 0;
	z-index: 1;
}
.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
}

.modal .close:hover {
    color: red;
}



/* Anpassungen für Smartphones */
@media (max-width : 768px ){
    header {
        align-items: center; /* Zentriere den gesamten Header */
        text-align: center;
        padding: 20px 10px;
    }

    .logo {
    max-width: 40%;
    height: auto;
    margin-top: 10px; /* Logo leicht nach unten verschieben */
    }

    .header-inner {
        flex-direction: column; /* Elemente vertikal ausrichten */
        gap: 10px; /* Abstand verringern */
    }
	.header-inner h1 {
	font-size: 1rem; /* Schriftgröße anpassen falls nötig */
	text-align: center;
	margin: 0;
	letter-spacing: 2px;
}
	.amp {
		display: none;
	}
	.amp::after {
		content: "und";
		display: inline;
		margin: 0 4px;
	}
	 .services, .about, .contact, .location {
    margin-bottom: 20px; /* Abstand zwischen den Abschnitten */
	}
	a  {
		font-size: 14px;
}
}

@media (max-width: 768px) {
  .fullwidth-mobile{
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;

    margin-top: 40px;
    margin-bottom: 40px;
  }

  .fullwidth-mobile img{
    width: 100%;
    height: auto;
    display: block;
  }
}

/* =============================
   MOBILE LANDSCAPE / QUERFORMAT
   ============================= */
/* iPhone / Handy im Querformat */
@media (max-height: 500px) and (orientation: landscape) {

    /* H1 kleiner */
    .header-inner h1,
    .header-content h1 {
        font-size: 1.2rem;     /* z. B. 0.9–1.4rem je nach Geschmack */
        letter-spacing: 2px;
        text-align: center;
    }


    /* Menü kleiner */
    .nav-links li a {
        font-size: 0.9rem; 
        padding: 6px 8px;
        letter-spacing: 1px;
    }

    /* Optional: Header kompakter */
    header {
        padding: 10px 5px;
    }

    .logo {
        max-width: 25%;
    }
}

@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
  .fullwidth-mobile{
    max-width: 1200px;   /* exakt wie .container */
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .fullwidth-mobile img{
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Tablet Hochformat: Bild bündig wie Text */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .fullwidth-mobile{
    max-width: 1200px;   /* exakt wie .container */
    margin-left: auto;
    margin-right: auto;

    padding-left: 20px; /* gleicht main-Padding aus */
    padding-right: 20px;

    margin-top: 40px;
    margin-bottom: 40px;
  }

  .fullwidth-mobile img{
    width: 100%;
    height: auto;
    display: block;
  }
}
