:root {
  --brand: #800000;
  --brand-dark: rgba(128, 0, 0, 0.95);
  --brand-yellow: #ffcc00;
  --max-width: 1200px;
  --header-large: 140px;
  --header-small: 90px;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.5;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 4px solid var(--brand-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: var(--header-large);
}

header.open {
  max-height: 600px;
}

header.shrink:not(.open) {
  max-height: var(--header-small);
}

.header-top {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 20px;
}

.logo {
  height: var(--header-large);
  transition: height 0.3s ease;
}

header.shrink .logo {
  height: var(--header-small);
}

.menu-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--brand);
  cursor: pointer;
  border: 0;
  background: none;
}

.menu-toggle .lines {
  width: 30px;
  height: 22px;
  position: relative;
}

.menu-toggle .lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle .lines span:nth-child(1) {
  top: 0;
}

.menu-toggle .lines span:nth-child(2) {
  top: 9px;
}

.menu-toggle .lines span:nth-child(3) {
  top: 18px;
}

.menu-toggle.active .lines span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active .lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .lines span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

.menu-toggle span.text {
  font-size: 16px;
  margin-top: 5px;
}

/* Menu */
nav#menu {
  width: 100%;
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

nav#menu .menu-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
}

nav#menu a {
  padding: 12px 5px;
  font-weight: bold;
  color: #fff;
  text-align: left;
  font-size: 18px;
}

nav#menu a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

nav#menu a:hover {
  color: var(--brand-yellow);
}

/* ===== Hero ===== */
.hero-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: var(--header-large);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-text h1 {
  margin-bottom: 10px;
  font-size: clamp(22px, 4vw, 38px);
}

.hero-text p {
  margin-bottom: 15px;
  font-size: clamp(14px, 2vw, 18px);
}

.hero-text .btn {
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  display: inline-block;
}

.hero-text .btn:hover {
  background: var(--brand-yellow);
  color: #222;
}

@media (max-width: 600px) {
  .hero-wrap {
    height: 90vh;
  }
  .hero-text {
    padding: 15px;
    max-width: 95%;
  }
}

/* ===== Main ===== */
main {
  width: 100%;
  background: var(--brand-yellow);
  padding: 40px 0;
}

.main-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 20px;
  border: 2px solid var(--brand-yellow);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  background: #fff;
  scroll-margin-top: 120px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--brand);
  border-bottom: 3px solid var(--brand-yellow);
  display: inline-block;
  padding-bottom: 6px;
}

/* Text-Image Sektionen */
.text-image {
  display: flex;
  gap: 20px;
  align-items: center;
}

.text-image .img {
  flex: 0 0 30%;
}

.text-image .img img {
  width: 100%;
  border-radius: 6px;
  border: 2px solid var(--brand-yellow);
}

.text-image .txt {
  flex: 1;
  text-align: left;
}

@media (max-width: 840px) {
  .text-image {
    flex-direction: column;
  }
}

/* Leistungen */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.leistung-card {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  border: 2px solid var(--brand-yellow);
  text-align: center;
}

.leistung-card h3 {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 18px;
}

.leistung-card i {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--brand-yellow);
}

/* Kontaktformular */
form.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 2px solid var(--brand-yellow);
  border-radius: 6px;
  font-size: 16px;
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.switch-container input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.switch-container label {
  font-size: 16px;
  cursor: pointer;
}

form.contact-form button {
  width: fit-content;
  margin-top: 10px;
}

/* Kontaktinformationen */
.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #fff;
  margin: 30px 0 0 0;
}

.contact-info .img {
  flex: 0 0 30%;
}

.contact-info .img img {
  width: 100%;
  border-radius: 6px;
}

.contact-info .txt {
  flex: 1;
}

/* ===== Footer ===== */
footer {
  background: #222;
  color: #fff;
  padding: 20px;
}

footer .foot-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--brand-yellow);
}

@media (max-width: 600px) {
  .header-top {
    padding-left: 60px;
  }
}
