/* 🌐 Grundlegende Einstellungen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body,
a {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-weight: 200;
}

body {
  height: auto;
}

h1 {
  font-weight: 200;
}
h2 {
  font-weight: 100;
}
a {
  color: #fff;
}

/* 📦 Wrapper-Grundstruktur */
.wrapper {
  display: grid;
  grid-template-areas:
    "header"
    "main";
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  grid-auto-flow: row;
}

/* 🔝 Header */
header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "zirkel title insta dropdown";
  width: 100vw;
  height: 8vh;
  padding: 1vw;
  gap: 2%;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  align-content: center;
}

.zirkel {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-area: zirkel;
}

.zirkel > img {
  height: 5vh;
}

.title {
  grid-area: title;
  justify-self: start;
  font-size: x-large;
  align-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1vw;
}

/* 📸 Instagram Button */
.insta,
.dropdown {
  height: 6vh;
  display: flex;
  align-items: center;
}

.insta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 7vh;
  height: 7vh;
  background-color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.insta-btn img,
.insta img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  position: relative;
}

img,
.fa {
  vertical-align: middle;
}

/* 🔽 Dropdown-Menü */
.dropbtn {
  background-color: #c6168d;
  color: white;
  width: 6vh;
  height: 6vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  z-index: 2001;
}

.dropbtn i {
  font-size: 28px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 2000;
}

.dropdown-content a {
  padding: 12px 16px;
  color: black;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #c6168d;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #c6168d;
}

/* 🧊 Inhalte: Grid-Layout */
.main {
  grid-area: main;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(6, 100vh) auto;
  grid-template-areas:
    "C1"
    "C2"
    "C3"
    "C4"
    "C5"
    "C6"
    "footer";
  width: 100vw;
  height: auto;
  overflow: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.main section {
  scroll-snap-align: start;
  background-size: cover;
  display: grid;
  grid-template-areas: "box";
  height: 100vh;
}

.C1 {
  grid-area: C1;
  background-image: url("img/fenster_g.jpeg");
}
.C2 {
  grid-area: C2;
  background-image: url("img/garten_ct_g.jpeg");
}
.C3 {
  grid-area: C3;
  background-image: url("img/Haus_Str_g.jpeg");
}
.C4 {
  grid-area: C4;
  background-image: url("img/uniHB.jpg");
}
.C5 {
  grid-area: C5;
  background-image: url("img/heidelberg_g.jpeg");
}
.C6 {
  grid-area: C6;
  background-image: url("img/treppe_g.jpeg");
}

footer {
  grid-area: footer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #c6168d;
  color: white;
  font-size: 1.2rem;
  scroll-snap-align: start;
  padding: 1rem;
  min-height: 4vh;
}

/* 📦 Box */
.box {
  grid-area: box;
  background-color: #c6168d;
  color: #fff;
  width: 40%;
  margin-right: 5%;
  opacity: 0.9;
  padding: 3%;
  text-align: left;
  border-radius: 10px;
  align-self: center;
  justify-self: end;
}

.C6 .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 📬 Zusatzinhalte */
.crest {
  max-height: 150px;
  margin-bottom: 1em;
  text-align: center;
}

.address,
.links {
  text-align: center;
}

.icon {
  width: 40px;
  height: 40px;
  margin: 0 0.5em;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.icon:hover {
  transform: scale(1.1);
}

.extern {
  flex-direction: row;
}

/* 📱 Responsives Design */
@media screen and (max-width: 770px) {
  header,
  footer {
    text-align: center;
    height: auto;
  }

  .main {
    grid-template-rows: auto;
    scroll-snap-type: none;
  }

  section {
    background-position: center;
    height: auto;
    min-height: 80vh;
    scroll-snap-align: start;
    padding: 2rem 0;
  }

  .box {
    width: 90%;
    margin: 0 auto;
    text-align: left;
  }

  .C6 .box {
    align-items: center;
    text-align: center;
  }

  iframe {
    width: 100% !important;
    height: 250px !important;
  }

  .dropbtn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .dropdown-content {
    right: 0;
    left: auto;
  }

  .icon {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 500px;
    padding: 3em;
  }
}

.impressum {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

.impressum h1,
h2 {
  color: #c6168d;
  margin-top: 2rem;
}
.mail a {
  color: #c6168d;
}
.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}
