:root {
  --text-color: #111;
  --background-color: #f9f9f9;
  --accent-color: #a1887f;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Work Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.8;
}

/* ------------------------- */
/* Logo Styles               */
/* ------------------------- */

.logo-container.top img {
  width: clamp(240px, 30vw, 380px);
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.logo-container.top img:hover {
  transform: scale(1.05);
}

/* Fade-In Animation */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Navigation */
nav {
  background-color: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2rem;
  list-style: none;
  padding: 1rem 1vw;
  overflow-x: auto;
  white-space: nowrap;
}

nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 300;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

/* Großes Video-Banner */
.video-player {
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.video-player video {
  width: 100vw;
  height: 600px;
  object-fit: cover;
  object-position: 60% 40%;
  display: block;
}

/* Hauptinhalt */
main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

section {
  margin-bottom: 3rem;
}

h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-color);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

p, ul, table {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

th, td {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  background-color: #f1f1f1;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 1rem;
  font-family: var(--font-heading);
}

table tr:nth-child(even) {
  background-color: #fafafa;
}

table tr:hover {
  background-color: #f0f0f0;
}

/* Accordion (Details) */
details summary {
  font-size: 1.4rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  padding: 0.5rem 0;
}

/* Kontaktformular */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-inner button {
  margin: 1rem 0 0 0;
}

input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

button {
  align-self: start;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #8d6e63;
}

/* Karte */
iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

/* Footer */
footer {
  background-color: #eee;
  color: #555;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* ------------------------- */
/* Allgemeine Sektionen-Styles */
/* ------------------------- */

section {
  max-width: 1140px;
  margin: 4rem auto 6rem;
  padding: 0 1rem;
  font-family: var(--font-body);
  color: var(--text-color);
  text-align: left;
}

#kontakt {
  text-align: left;
}

section h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  text-align: left;
}

section h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0.5rem 0 2rem 0;
  border-radius: 3px;
}

section p,
section ul,
section ol,
section table,
section form {
  text-align: left;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #555;
}

section a button,
section button {
  display: block;
  margin: 1rem auto 0 auto;
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.85rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

section a button:hover,
section button:hover,
section a button:focus,
section button:focus {
  background-color: #7a5e44;
  transform: scale(1.05);
  outline: none;
}

section label {
  font-weight: 600;
  font-size: 1rem;
}

section input,
section textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  resize: vertical;
  transition: border-color 0.3s ease;
}

section input:focus,
section textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.social-top-right {
  position: absolute;
  top: 5rem;
  right: 8rem;
  z-index: 1001;
}

.social-top-right img {
  width: 48px;
  height: 48px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.social-top-right img:hover {
  opacity: 1;
}

.angebot-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  margin-top: 1.5rem;
}

.angebot-button:hover {
  background-color: #7a5e44;
  transform: translateY(-2px);
}

.datenschutz-herkunft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 1rem;
  font-size: 0.95rem;
  color: #444;
}

.datenschutz-herkunft img {
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

.datenschutz-herkunft a {
  color: #f57c00;
  text-decoration: none;
}

.datenschutz-herkunft a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  /* Allgemeines */
  body {
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 0;
  }

  main,
  section {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  /* Kompakte Navigation */
  nav {
    padding: 0.5rem 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.5rem 0;
    overflow-x: visible;
  }

  nav a {
    font-size: 1rem;
    padding: 0.3rem 0;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-align: left;
  }

  /* Logo */
  .logo-container.top {
    padding: 1.5rem 1rem 1rem;
  }

  .logo-container.top img {
    max-width: 180px;
    margin: 0 auto;
  }

  /* Video-Banner */
  .video-player video {
    height: 220px;
    object-position: center;
  }

  /* Section-Layout */
  section {
    margin: 3rem 1rem 4rem;
    padding: 0;
  }

  section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: left;
  }

  h2, h3 {
    word-break: break-word;
    text-align: left;
  }

  section p,
  section ul,
  section ol,
  section form {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: left;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  /* Bild + Text untereinander */
  .image-text-row,
  .zweispaltig {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .image-text-row img,
  .zweispaltig img {
    width: 100%;
    height: auto;
  }

  .image-text-row .text,
  .zweispaltig .text {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Buttons */
  section a button,
  section button {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    margin: 1.5rem 0 0 0;
    text-align: center;
  }

  /* Formularfelder */
  section input,
  section textarea {
    font-size: 1rem;
    padding: 0.75rem;
  }

  /* Tabellen scrollbar + Hinweis */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 1rem;
  }

  table::before {
    content: '⟶ Wischen, um mehr Spalten zu sehen';
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
  }

  /* Social Icons */
  .social-top-right {
    position: static;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    max-width: 100%;
  }

  .social-top-right img {
    width: 40px;
    height: 40px;
  }

  /* Footer-Links */
  footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  footer a:hover {
    color: var(--accent-color);
  }

  /* Datenschutz / Herkunft */
  .datenschutz-herkunft {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
    gap: 0.75rem;
    max-width: 100%;
  }

  .datenschutz-herkunft span {
    width: 100%;
  }

  .datenschutz-herkunft img {
    height: 20px;
    margin-bottom: 0.5rem;
  }

  /* Angebot-Button */
  .angebot-button {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
  }
}
