/* Global Styles */
:root {
  --primary-color: #D1BC8A;
  --primary-dark: #bfa760;
  --secondary-color: #f5f5dc;
  --text-color: #000000;
  --light-text: #666666;
  --white: #ffffff;
  --light-bg: #fff8dc;
  --card-bg: #ffffff;
  --border-color: #d3d3c3;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Slightly reduced gap for mobile */
}
.logo-img {
  height: 70px; /* Adjusted for mobile */
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-img {
  max-width: 280px; /* Adjusted for mobile */
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto; /* Added margin for mobile */
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}

.col {
  flex: 1 1 100%; /* Ensure columns stack on mobile by default */
  padding: 0.5rem;
}

/* For two columns */
.col-md-6 {
  width: 100%;
}

/* For three columns */
.col-md-4 {
  width: 100%;
}

/* For four columns */
.col-md-3 {
  width: 100%;
}

@media (min-width: 768px) {
  .col {
    flex: 1; /* Reset flex behavior for larger screens */
  }
  .col-md-6 {
    width: 50%;
  }
  
  .col-md-4 {
    width: 33.333333%;
  }
  
  .col-md-3 {
    width: 25%;
  }
  .logo-img {
    height: 90px; /* Restore original size for desktop */
  }
  .hero-img {
    max-width: 325px; /* Restore original size for desktop */
    margin: 0 auto; /* Restore original margin */
  }
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  flex-direction: column;
  /* align-items: center; Entfernt, um linksbündige Ausrichtung zu ermöglichen */
  align-items: flex-start; /* Logo und Text linksbündig auf Mobile */
  padding: 0.75rem 1rem; /* Adjusted padding for mobile */
  position: relative; /* Wichtig für die absolute Positionierung des Toggles */
}

.logo {
  font-size: 1.25rem; /* Adjusted for mobile */
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem; /* Adjusted for mobile */
}

.logo-subtitle {
  font-size: 0.75rem; /* Adjusted for mobile */
  color: var(--light-text);
}

nav ul {
  display: none; /* Standardmäßig ausblenden, wird per JS gesteuert */
  flex-direction: column; /* Stack nav items on mobile */
  align-items: center; /* Center nav items on mobile */
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  width: 100%; /* Volle Breite für das aufklappbare Menü */
  background-color: var(--white); /* Hintergrund für das aufklappbare Menü */
  position: absolute;
  top: 100%; /* Unter dem Header positionieren */
  left: 0;
  box-shadow: var(--shadow);
}

nav ul.active {
  display: flex; /* Anzeigen, wenn aktiv */
}

nav li {
  margin: 0.25rem 0; /* Adjusted margin for stacked items */
  width: 100%; /* Volle Breite für Listenelemente */
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.75rem 1rem; /* Größere Klickflächen */
  display: block;
  text-align: center; /* Center text in nav links */
  border-bottom: 1px solid var(--border-color); /* Trennlinien zwischen Links */
}

nav li:last-child a {
  border-bottom: none; /* Keine Trennlinie beim letzten Element */
}

nav a:hover {
  color: var(--primary-color);
  background-color: var(--light-bg);
}

/* Hamburger Menu Button (Styling wird hier vorbereitet) */
.menu-toggle {
  display: none; /* Standardmäßig auf Desktop ausblenden */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 767px) { /* Gilt nur für mobile Ansichten */
  .menu-toggle {
    display: block; /* Auf Mobilgeräten anzeigen */
    position: absolute; /* Positionierung relativ zum Header-Container */
    top: 50%; /* Vertikal zentrieren */
    transform: translateY(-50%); /* Korrektur für vertikale Zentrierung */
    right: 1rem; /* Anpassen nach Bedarf */
    z-index: 101; /* Über anderen Header-Elementen */
  }
  .header-container nav {
    width: 100%; /* Damit das absolute Menü korrekt positioniert wird */
  }
}

@media (min-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 2rem;
  }
  
  nav ul {
    display: flex; /* Auf Desktop immer anzeigen */
    flex-direction: row; /* Restore row layout for nav */
    margin: 0;
    position: static; /* Zurücksetzen der Positionierung */
    box-shadow: none; /* Schatten entfernen */
    background-color: transparent; /* Hintergrund entfernen */
    width: auto; /* Breite zurücksetzen */
  }
  nav li {
    margin: 0 0.5rem; /* Restore original margin */
    width: auto; /* Breite zurücksetzen */
  }
  nav a {
    padding: 0.5rem 0.25rem; /* Restore original padding */
    text-align: left; /* Restore original text alignment */
    border-bottom: none; /* Keine Trennlinien auf Desktop */
  }
  nav a:hover {
    background-color: transparent; /* Hover-Hintergrund entfernen */
  }
  .logo {
    font-size: 1.5rem; /* Restore original size */
  }
  .logo-subtitle {
    font-size: 0.875rem; /* Restore original size */
  }
}



/* Hero Section */
.hero {
  background-color: #ebf5ff;
  padding: 2rem 1rem; /* Adjusted padding for mobile */
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem; /* Adjusted for mobile */
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1rem; /* Adjusted for mobile */
  color: var(--text-color);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem; /* Adjusted padding for mobile */
  border-radius: 0.375rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  font-size: 0.9rem; /* Adjusted font size for mobile */
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: #d1d5db;
  text-decoration: none;
}

.btn-group {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 0.75rem; /* Adjusted gap for mobile */
  justify-content: center;
  align-items: center; /* Center stacked buttons */
}

@media (min-width: 768px) {
  .btn-group {
    flex-direction: row; /* Restore row layout for buttons */
    gap: 1rem;
  }
  .btn {
    padding: 0.75rem 1.5rem; /* Restore original padding */
    font-size: 1rem; /* Restore original font size */
  }
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 1.25rem; /* Adjusted padding for mobile */
  margin-bottom: 1rem; /* Adjusted margin for mobile */
}

.card-title {
  font-size: 1.1rem; /* Adjusted for mobile */
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Sections */
.section {
  padding: 2rem 0; /* Adjusted padding for mobile */
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem; /* Adjusted margin for mobile */
  font-size: 1.5rem; /* Adjusted for mobile */
}

@media (min-width: 768px) {
  .card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .card-title {
    font-size: 1.25rem;
  }
  .section {
    padding: 3rem 0;
  }
  .section-title {
    margin-bottom: 2rem;
    font-size: 1.75rem; /* Restore for desktop */
  }
}

/* Features */
.features {
  background-color: var(--white);
}

.feature-card {
  height: 100%;
}

/* Image Placeholder */
.img-placeholder {
  background-color: #e5e7eb;
  border-radius: 0.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #1f2937;
  color: #9ca3af;
  padding: 1.5rem 0; /* Adjusted padding for mobile */
  text-align: center;
}

footer a {
  color: #d1d5db;
}

footer a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column; /* Stack links on mobile */
  justify-content: center;
  gap: 0.5rem; /* Adjusted gap for mobile */
  margin: 0.75rem 0;
}

/* Trennstrich im Footer für mobile Ansicht entfernen */
@media (max-width: 767px) {
  .footer-links a + a::before {
    content: ""; /* Entfernt den Standard-Trennstrich, falls vorhanden */
    display: none;
  }
  .footer-links a {
    padding: 0.3rem 0; /* Etwas mehr Abstand zwischen den Links */
  }
}

/* Trennstrich im Footer für Desktop-Ansicht hinzufügen */
@media (min-width: 768px) {
  .footer-links a + a::before {
    content: "|";
    margin: 0 0.5rem;
    color: #9ca3af; /* Farbe des Trennstrichs, passend zum Footer-Text */
  }
}


footer .container {
  display: flex;
  flex-direction: column; /* Stack all footer content on mobile */
  align-items: center; 
}

footer p, footer .footer-links {
    width: 100%; 
    text-align: center; 
}

.footer-logo-social-container {
    display: flex;
    flex-direction: column; /* Stack logo and social on mobile */
    align-items: center; 
    width: 100%; 
    margin-top: 1rem; 
}

.footer-logo {
    margin-top: 0;
    margin-bottom: 1rem; /* Add space below logo on mobile */
}

.footer-logo img {
    height: 60px; /* Adjusted for mobile */
    width: auto;
    display: block; 
}

@media (min-width: 768px) {
  footer {
    padding: 2rem 0;
  }
  .footer-links {
    flex-direction: row; /* Restore row layout */
    gap: 1rem;
    margin: 1rem 0;
  }
  footer .container {
    flex-direction: row; /* Restore row layout for footer items */
    flex-wrap: wrap; 
    justify-content: space-between; 
  }
  .footer-logo-social-container {
    flex-direction: row; /* Restore row layout */
    justify-content: space-between; 
  }
  .footer-logo {
    margin-bottom: 0; /* Reset margin */
  }
  .footer-logo img {
    height: 80px; /* Restore original size */
  }
}


/* Contact Form */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
}

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

/* List Styling */
.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.list-spaced li {
  margin-bottom: 0.5rem;
}

/* Special Callout Boxes */
.callout {
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.callout-info {
  background-color: #e0f2fe;
  border-left: 4px solid #0ea5e9;
}

.callout-warning {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
}

.callout-danger {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
}

/* Responsive Tables */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: #f9fafb;
  font-weight: 600;
}

/* Print Styles */
@media print {
  header, footer, .no-print {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}
.kontakt-formular {
  background: #fff;
  padding: 1.5rem; /* Adjusted padding for mobile */
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@media (min-width: 768px) {
  .kontakt-formular {
    padding: 2rem; /* Restore original padding */
  }
}

/* Additional Mobile Optimizations (max-width: 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .logo-img {
    height: 60px; 
  }
  .logo {
    font-size: 1.1rem;
  }
  .logo-subtitle {
    font-size: 0.7rem;
  }
  nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .footer-logo img {
    height: 50px;
  }
  footer p {
    font-size: 0.85rem;
  }
  .footer-links a {
    font-size: 0.85rem;
  }
}
