/*----------------------------- GLOBAL -----------------------------*/

body {
  margin: 0;
  background-color: #ffffff;
  color: #ffffff;
  font-family: sans-serif;
}

a:focus,
button:focus,
.tile:focus {
  outline: 4px solid #26292e;
  outline-offset: 4px;
}

/*----------------------------- HEADER -----------------------------*/

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #26292e;
  color: #ffffff;
  padding: 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #26292e;
  transition: box-shadow 0.3s ease;
}

body.scrolled header {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  height: 10px;
  width: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(1.2);
}

.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 2px solid #26292e;
  border-radius: 3px;
  padding: 2px;
}

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

.hamburger span {
  height: 4px;
  background-color: #a4a9d8;
  border-radius: 2px;
  width: 100%;
}
.hamburger:focus {
  outline: 3px solid #ffffff;  /* Fokusfarbe */
  outline-offset: 2px;         /* Abstand zwischen Rahmen und Button */
}


#hamburger.active span {
  background-color: #ffffff;
}

/*--------------------------- NAVIGATION ---------------------------*/

.nav-wrapper {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.section-nav {
  display: flex;
  gap: 1rem;
}

.section-nav a {
  color: #a4a9d8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: normal;
  position: relative;
  transition: all 0.2s ease;
}

.section-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: #ffffff;
  transition: width 0.3s ease;
  margin-top: 4px;
}

.section-nav a:hover,
.section-nav a.active {
  color: #ffffff;
  font-weight: bold;
}

.section-nav a:hover::after,
.section-nav a.active::after {
  width: 100%;
}

/*------------------------------ MAIN ------------------------------*/

.section-block {
  margin-bottom: 3rem;
  padding: 1rem 2rem;
  color: #ffffff;
}

.section-block h2 {
  color: #26292e;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
}

#section-title {
  font-size: 1.1rem;
  color: #a4a9d8;
  margin-top: 0.5rem;
}

/*------------------------- SCROLL CONTAINER ------------------------*/

.scroll-container {
  max-height: 480px;
  max-width: 700px;
  margin: 0 auto;
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
  background-color: #a4a9d8;
  border: 4px solid #121016;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.scroll-container::-webkit-scrollbar {
  width: 4px;
}
.scroll-container::-webkit-scrollbar-thumb {
  background-color: #a4a9d8;
  border-radius: 4px;
}
.scroll-container::-webkit-scrollbar-track {
  background-color: #26292e;
}

/*----------------------------- KACHELN -----------------------------*/

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
}

.tile {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 200px;
  background-color: #26292e;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: #ffffff;
  border-radius: 12px;
}

.tile:hover {
  transform: scale(1.05);
}

.tile .inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tile .inner img.icon {
  width: 75px;
  height: auto;
  transition: transform 0.3s ease;
  margin-bottom: 0.5rem;
}

.tile:hover .inner img.icon {
  transform: translateY(-8px);
}

.tile p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  font-size: 0.9rem;
  color: #ffffff;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.tile:hover p {
  opacity: 1;
  max-height: 40px;
}

/*----------------------------- FOOTER -----------------------------*/

footer {
  background-color: #26292e;
  color: #ffffff;
  padding: 2rem;
  text-align: center;
}

footer h3 {
  color: #a4a9d8;
  margin-bottom: 1rem;
}

/*------------------------- KONTAKTFORMULAR ------------------------*/

.contact-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 2px solid #26292e;
  border-radius: 8px;
  padding: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 2px solid transparent;
  border-radius: 4px;
  background-color: #121016;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease-in-out;
  
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 2px solid #26292e;
  outline: 4px solid #ffffff;
  outline-offset: 4px
}

.contact-form button {
  background-color: #a4a9d8;
  color: #121016;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/*------------------------------ POPUP ------------------------------*/

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #26292e;
  padding: 2rem;
  border-radius: 12px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  max-width: 90%;
}

.popup-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #a4a9d8;
}

.popup-content button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #a4a9d8;
  color: #121016;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.hidden {
  display: none;
}

