/********************************************
 * BASE STYLES & GLOBALS
 ********************************************/
:root {
  /* Farbvariablen */
  --primary-color: #0045aa;
  --secondary-color: #000000;
  --text-color: #333333;
  --background-color: #fafafa;
  --footer-bg-color: #333333;
  --footer-text-color: #ffffff;
  --accent-color: #e9f2fa;
  --hover-color: #004999;
  --button-hover-color: #0d5ca2;
  --font-family-base: 'Poppins', sans-serif;
  --font-family-heading: 'Roboto', sans-serif;
}

/* Kommentar: {"path":"/tauri/C/xampp/htdocs/Test/styles.css"} */


html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 16px; /* Basisgröße Desktop */
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1rem; /* Passt sich an body font-size an */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
}

strong {
  color: var(--primary-color);
}

/********************************************
 * SKIP LINK (Barrierefreiheit)
 ********************************************/
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/********************************************
 * HEADER-BEREICH
 ********************************************/
header {
  background-color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo img {
  width: 120px;
  height: auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
}

.contact-info a {
  color: var(--text-color);
  font-weight: 400;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.contact-info a i {
  margin-right: 5px;
}

.contact-info a:hover {
  text-decoration: underline;
}

/********************************************
 * NAVIGATION
 ********************************************/
nav {
  background-color: #333;
  padding: 10px 0;
}

nav .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-bottom: 10px;
  }

  nav .container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav a {
    display: none;
    width: 100%;
    margin: 5px 0;
    text-align: left;
    padding: 10px 20px;
    border-top: 1px solid #444;
  }

  nav .container.open a {
    display: block;
  }
}

/********************************************
 * HERO SECTION
 ********************************************/
 .hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Hero-Bereich passt sich dem Viewport an */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)); /* Transparente Überlagerung */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild proportional skalieren */
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff; /* Weißer Text */
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Textlesbarkeit verbessern */
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 20px 0;
  line-height: 1.4;
}

.hero-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-button:hover {
  background-color: var(--hover-color);
  transform: scale(1.05); /* Leichter Zoom-Effekt */
}

@media (max-width: 768px) {
  .hero-section {
    height: auto; /* Entfernt die feste Höhe */
    aspect-ratio: 16 / 9; /* Erzwingt ein Seitenverhältnis */
  }

  .hero-image {
    object-fit: cover;
    width: 100%;
    height: auto; /* Passt die Höhe dynamisch an */
  }

  .hero-overlay {
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    aspect-ratio: 16 / 9; /* Beibehaltung des Seitenverhältnisses */
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-button {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

/********************************************
 * CONTENT SECTIONS
 ********************************************/
.content {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.content .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
}

.text-container {
  flex: 1 1 400px;
  font-size: 1rem;
}

.image-card {
  flex: 1 1 400px;
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.image-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.image-card-content {
  padding: 20px;
  font-size: 1rem;
  color: #333;
}

.image-card-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.image-card-content p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

/********************************************
 * TEXT CONTAINER, QUOTES & TITEL
 ********************************************/
.text-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  color: #333;
}

.intro-quote {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: #333;
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
  line-height: 1.5;
}

.intro-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--primary-color);
  border-radius: 2px;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.info-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
}

.info-text strong {
  font-weight: 600;
  color: #000;
}

/********************************************
 * CTA-SECTION
 ********************************************/
.cta-section {
  background: var(--accent-color);
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 40px;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 500;
}

.contact-button {
  background: var(--primary-color);
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background: var(--hover-color);
}

/********************************************
 * FOOTER
 ********************************************/
footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-family-base);
}

footer p {
  margin: 0 0 10px 0;
}

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

.footer-links {
  margin-top: 20px;
}

.footer-links a {
  color: #b8b2ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.footer-text {
  margin-bottom: 20px;
}

.contact-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px 0;
}

.contact-image-and-name {
  text-align: center;
}

.contact-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  margin-bottom: 10px;
}

.contact-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin: 5px 0;
  color: var(--footer-text-color);
}

.contact-title {
  color: #979797;
  margin: 0;
  font-size: 0.95rem;
}

footer button {
  margin-top: 20px;
}

footer button:hover {
  background: var(--button-hover-color);
}

/********************************************
 * KONTAKTFORMULAR-BEREICH
 ********************************************/
.kontakt-section {
  background: #fff;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 100%;
}

.kontakt-text h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.kontakt-text h2 {
  font-size: 1.5em;
  margin-top: 20px;
  margin-bottom: 10px;
}

.kontakt-text p {
  margin: 10px 0;
}

.kontakt-text a {
  color: var(--primary-color);
  text-decoration: none;
}

.kontakt-text a:hover {
  text-decoration: underline;
}

.kontakt-formular {
  margin-top: 30px;
}

.kontakt-formular h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.kontakt-formular label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

.kontakt-formular input,
.kontakt-formular textarea {
  width: 50%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.kontakt-formular textarea {
  resize: vertical;
  min-height: 100px;
}

.kontakt-formular button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kontakt-formular button:hover {
  background-color: var(--hover-color);
}

/********************************************
 * ANIMATIONEN
 ********************************************/
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/********************************************
 * RESPONSIVE STYLES
 ********************************************/
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .content .container {
    flex-direction: column;
    align-items: center;
  }

  .image-card {
    display: flex;
    max-width: 100%;
  }

  .kontakt-formular {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .image-card {
    display: flex;
  }

  .container-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .contact-info {
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  nav .container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-bottom: 10px;
  }

  nav a {
    display: none;
    width: 100%;
    margin: 5px 0;
    text-align: left;
    padding: 10px 20px;
    border-top: 1px solid #444;
  }

  nav .container.open a {
    display: block;
  }

  .hero-section {
    height: auto;
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 2rem;
    padding: 8px 16px;
  }

  .text-container,
  .image-card,
  .kontakt-text,
  .kontakt-formular {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 0 10px;
  }

  .cta-section {
    padding: 20px;
  }

  .contact-button {
    width: 40%;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .logo img {
    width: 100px;
  }

  h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  h2 {
    font-size: 1.3rem;
  }

  .contact-info a {
    font-size: 0.8rem;
  }

  .hero-section {
    padding: 40px 10px;
  }

  .hero-title {
   font-size: 1.5rem;
   padding: 5px 10px;
 }

  .text-container {
    padding: 0 10px;
  }

  .image-card {
    margin: 20px 0;
  }

  .contact-button {
    padding: 10px;
    font-size: 0.9rem;
  }

  .contact-img {
    width: 120px;
    height: 120px;
  }

  footer .contact-name {
    font-size: 1rem;
  }

  footer .contact-title {
    font-size: 0.85rem;
  }
}


/********************************************
 * Focus-Stile für bessere Barrierefreiheit
 ********************************************/
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px dashed var(--primary-color);
  outline-offset: 4px;
}

/********************************************
 * Reduzierte Bewegung für Nutzer, die dies bevorzugen
 ********************************************/
@media (prefers-reduced-motion: reduce) {
  .hero-title {
    animation: none;
  }
}

/********************************************
 * Testbereich (Kontaktformular und AGB Styles)
 ********************************************/
.kontakt-section {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 20px auto;
}

.kontakt-text {
  flex: 1 1 50%;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.kontakt-text h1 {
  font-size: 2.2rem;
  color: #0066cc;
  margin-bottom: 20px;
}

.kontakt-text h2 {
  font-size: 1.8rem;
  color: #004999;
  margin-top: 30px;
  margin-bottom: 15px;
}

.kontakt-formular {
  flex: 1 1 50%;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kontakt-formular h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  display: inline-block;
  background: #0066cc;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #004999;
}

/********************************************
 * AGB SECTION
 ********************************************/
 /* Hauptinhalt */

.agb-section{
  margin: 25px;
}
.agb-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.agb-content h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 5px;
}

.agb-content h3, .agb-content h4 {
  color: var(--primary-color);
  margin-top: 20px;
}

.agb-content p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.agb-content ul {
  list-style: disc;
  margin: 15px 0;
  padding-left: 20px;
}

.agb-content ul li {
  margin-bottom: 10px;
}

.agb-content blockquote {
  background-color: #eef5fc;
  border-left: 5px solid var(--primary-color);
  margin: 20px 0;
  padding: 15px;
  font-style: italic;
  color: var(--text-color);
}

/* Tabellen */
.agb-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.agb-content table th, .agb-content table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.agb-content table th {
  background-color: var(--primary-color);
  color: #fff;
}

.agb-content table tr:nth-child(even) {
  background-color: #f9f9f9;
}

@media (max-width: 768px) {

 .agb-content h1 {
   font-size: 2rem;
 }

 .agb-content h2 {
   font-size: 1.5rem;
 }

 .agb-content p, .agb-content ul li {
   font-size: 0.95rem;
 }

 .agb-content table th, .agb-content table td {
   font-size: 0.9rem;
   padding: 8px;
 }

}
