:root {
  /* Farben */
  --color-header-bg: #C87D4C;
  --color-footer-bg: #C87D4C;
  --color-text: #404443;
  --color-text-light: #404443;
  --color-link: #4D4D4D;
  --color-link-hover: #FFFFFF;
  --color-frame: #C87D4C;
  --color-main-bg: #123456;
  --color-lang-active-bg: #888888;
  --color-lang-text: #4D4D4D;
  --color-logo-bg: #C87D4C;
  
  /* Layout */
  --header-height: 8vh;
  --footer-height: 4vh;
  --main-height: 88vh;
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --footer-height: auto;
    --main-height: auto;
  }
}

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

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  height: var(--header-height);
  min-height: 80px;
  background-color: var(--color-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 90px;
  width: auto;
  background-color: var(--color-logo-bg);
  padding: 5px;
  border-radius: 8px;
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--color-link-hover);
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-left: 2rem;
}

.lang-switch a {
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-switch a {
  color: var(--color-lang-text);
  text-decoration: none;
}

.lang-switch a.active {
  background-color: var(--color-lang-active-bg);
  color: var(--color-lang-text);
  text-decoration: none;
}

.lang-switch .inactive:hover {
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

main {
  flex: 1;
  height: var(--main-height);
  padding: 1rem;
  overflow: hidden;
  background-color: var(--color-main-bg);
}

footer {
  height: var(--footer-height);
  min-height: 60px;
  background-color: var(--color-footer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

footer a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.hero {
  position: relative;
  width: 80%;
  height: 100%;
  min-height: var(--main-height);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: url('../assets/collage_main.JPG');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 6rem;
  background-color: transparent;
  border: none;
  border-radius: 12px;
  margin-bottom: 21%;
  margin-top: 0;
  max-width: 100%;
}

.hero-content p {
  max-width: 100%;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 
    -3px -3px 0 var(--color-frame),
    3px -3px 0 var(--color-frame),
    -3px 3px 0 var(--color-frame),
    3px 3px 0 var(--color-frame),
    5px 5px 5px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 2.5rem;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  text-shadow: 
    -2px -2px 0 var(--color-frame),
    2px -2px 0 var(--color-frame),
    -2px 2px 0 var(--color-frame),
    2px 2px 0 var(--color-frame),
    4px 4px 3px rgba(0,0,0,0.7);
  font-weight: bold;
}

.contact-form {
  max-width: 1000px;
  width: 90%;
  min-height: 80vh;
  margin: auto auto;
  padding: 3rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form h1 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #000;
}

.contact-form label {
  color: #000;
}

.status-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  text-align: center;
}

.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

button[type="submit"] {
  background-color: var(--color-link);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
  background-color: var(--color-link-hover);
}

.impressum {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.impressum h1 {
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

.impressum-content {
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 2rem;
  border-radius: 8px;
}

.impressum h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.impressum h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

.impressum p {
  color: #333;
}

.impressum address {
  color: #333;
}

.impressum p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.impressum .company-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.impressum address {
  font-style: normal;
  margin: 1rem 0;
}

.impressum .contact-info,
.impressum .vat-info {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #fff;
  border-radius: 4px;
}

/* Mobile: 768px und kleiner */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --footer-height: 50px;
    --main-height: auto;
  }

  /* Header mit Hamburger */
  header {
    padding: 0 1rem;
    min-height: var(--header-height);
    height: var(--header-height);
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo a {
    display: flex;
    align-items: center;
  }

  .logo img {
    height: 45px;
    max-width: 100px;
    padding: 3px;
  }

  .logo-text {
    display: none;
  }

  /* Hamburger Menu - immer sichtbar */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
    background: none;
    border: none;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Navigation Overlay */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 250px;
    height: 100vh;
    background-color: var(--color-header-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    padding-top: 60px;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 0.8rem 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
    color: var(--color-text);
    text-decoration: none;
  }

  .lang-switch {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
  }

  /* Main Bereich */
  main {
    padding: 0;
    overflow-y: auto;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    background-color: var(--color-main-bg);
  }

  /* Hero Bereich komplett */
  .hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/collage_main.JPG');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.25;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 90%;
    padding: 1rem 0.5rem;
    background: transparent;
  }

  .hero h1 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
  }

  .hero p {
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 100%;
  }

  /* Kontaktformular */
  .contact-form {
    padding: 1rem;
    width: 95%;
    max-width: 400px;
    min-height: auto;
    margin: 1rem auto;
  }

  .contact-form h1 {
    font-size: 1.3rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 0.6rem;
  }

  /* Footer */
  footer {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    min-height: var(--footer-height);
    height: var(--footer-height);
    text-align: center;
  }
}

/* Extra Anpassung für Hochkant (Portrait) */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    padding-top: 8%;
    padding-bottom: 5%;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
  }

  .hero h1 {
    font-size: 1.3rem;
    padding: 0 0.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .hero-content {
    max-width: 95%;
    padding: 0.5rem;
  }

  .hero-background {
    background-size: cover;
  }
}

/* Querformat (Landscape) */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding-top: 3%;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
  }

  .hero h1 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.8rem;
  }

  .hero-background {
    background-size: cover;
  }
}