@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Sacramento&display=swap');

/* === Grundlayout === */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff8f0; /* freundlich, warm, außen */
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  color-scheme: light; /* Browser-Farbprofil harmonisieren */
}

/* Main Wrapper */
.main-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff; /* Hauptinhalt weiß */
  padding: 0 20px 60px 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header */
header {
  background-color: #f47c20; /* warmes Orange, Hex ohne alpha für gleiches Rendering */
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #e5a75a;
}

/* Header Wrapper */
.header-wrapper {
  max-width: 1100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

/* Logo */
.logo { 
  height: 90px; 
  display: block; 
}

/* Navigation Desktop */
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
nav ul li { margin: 0 12px; }
nav ul li a {
  color: #ffffff; /* Hex-Farbwert für Konsistenz */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
nav ul li a:hover,
nav ul li a[aria-current="page"] { color: #ffe6c2; }

/* Hamburger-Menü Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #ffffff; /* Hex */
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #fff8f0;
}
.hero-text { flex: 1 1 300px; max-width: 500px; padding: 24px; }
.hero-text h2 { font-size: 36px; font-weight: 600; color: #f47c20; }
.hero-image { flex: 1 1 300px; max-width: 500px; padding: 24px; }
.hero-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Button */
.button {
  display: inline-block;
  padding: 12px 24px;
  background: #f47c20;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 12px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}
.button:hover, .button:focus { background: #d96c1b; outline: none; }

/* Section */
.section { padding: 40px 24px; background-color: #ffffff; }
.section h2, .section h3, .section h4 { margin-bottom: 16px; }
.section h2 { font-size: 32px; color: #f47c20; }
.section h3 { font-size: 24px; color: #333; }
.section h4 { font-size: 20px; color: #333; }

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* Tabellen zweispaltig */
.zweispaltig {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.zweispaltig th, .zweispaltig td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}
.zweispaltig th { background-color: #f47c20; color: #ffffff; font-weight: 600; }
.zweispaltig td:first-child { width: 70%; }
.zweispaltig td:last-child { width: 30%; }

/* Formulare */
form label { display: block; margin-bottom: 6px; font-weight: 600; color: #333; }
form input[type="text"], form input[type="email"], form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc;
  border-radius: 5px; font-family: 'Montserrat', sans-serif; font-size: 16px;
  color: #333; box-sizing: border-box; transition: border-color 0.3s ease;
}
form input[type="text"]:focus, form input[type="email"]:focus, form textarea:focus {
  border-color: #f47c20; outline: none;
}
form textarea { resize: vertical; min-height: 120px; }

/* Listen */
ul { padding-left: 20px; }
ul li { margin-bottom: 8px; }

/* Footer */
footer {
  background-color: #f47c20; /* Hex statt rgba */
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  padding: 24px 16px;
  width: 100%;
  box-sizing: border-box;
}
footer a { color: #ffffff; margin: 0 10px; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
footer a:hover, footer a:focus { color: #ffe6c2; outline: none; }

/* Responsive Header & Hero */
@media (max-width: 768px) {
  .header-wrapper { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .menu-toggle { display: flex; margin-left: auto; margin-right: 20px; }
  nav { width: 100%; flex-direction: column; position: absolute; top: 100%; left: 0; background: #f47c20; border-top: 1px solid #e5a75a; }
  nav ul { display: none; flex-direction: column; text-align: left; padding: 0; margin: 0; }
  nav ul li { margin: 12px 20px; }
  nav ul li a { font-size: 18px; }
  nav ul.active { display: flex; }
}
