html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.6;
  padding-top: 120px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px 0;
  z-index: 1000;
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-left a,
.nav-right a {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  padding: 5px;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #00ffcc;
}

.nav-left {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-center {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-center img {
  height: 80px;
  width: auto;
}

.nav-right {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .nav-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-left,
  .nav-right {
    flex-direction: row;
    gap: 15px;
  }
}


@media (max-width: 768px) {
  .nav-columns {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .nav-left,
  .nav-right {
    flex-direction: row;
    gap: 20px;
  }
}


/* Header */
header {
  background: img src="images/bg1.png";
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 25vh;
  align-items: center;
  text-align: center;
  color: white;
}

header h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

header p {
  font-size: 1.2em;
}

/* Allgemeine Sektionen */
section {
  scroll-margin-top: 120px; /* Höhe deiner Navigation */
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}


h2 {
  color: #ffffff;
  margin-bottom: 20px;
}

h3 {
  color: #00bbc9;
  margin-bottom: 20px;
}

/* Leistungen */
.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Formular */
form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
}

form button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background: #ffffff;
}

/* Impressum & Datenschutz */
#impressum,
#datenschutz {
  background: #222;
  color: #ccc;
}

/* Footer */
.footer {
  background: #000;
  color: #999;
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9em;
}

.footer a {
  color: #999;
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
}

/* Standard-Layout bleibt wie es ist */

/* Mobile Ansicht */
@media (max-width: 768px) {
  .nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    gap: 8px;
    padding: 10px;
  }

  .nav-left {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-right {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .nav-center {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .nav-center img {
    height: 50px;
  }
}

.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('images/bg1.png');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

form fieldset {
  border: none;
  margin-top: 20px;
}

form fieldset label {
  display: inline-block;
  margin-right: 20px;
  color: #fff;
  font-weight: normal;
}

form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

form .form-row input,
form .form-row select {
  flex: 1 1 45%;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
}

form button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background: #ffffff;
}

form label a {
  color: #ffffff;
  text-decoration: underline;
}

form label a:hover {
  color: #ffffff;
}

#image-grid {
  padding: 2rem;
}

/* Medien */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 1 / 1; /* Quadrat-Grid */
}

.grid-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: opacity 0.5s ease;
}

video.grid-item {
  display: block;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease;
}

