html, body{
    margin: 0;
}
body{
    max-width: 1150px;
    margin: 0 auto;
    background-color: #222831;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header{
    background-color: #31363F;
    border-radius: 50px;
    margin: 20px !important;
    padding: 10px;
}
.nav-link{
    color: #76ABAE;
    font-family: "Quicksand", sans-serif;
    display: flex;
    flex-direction: column;
}
.nav-link:hover{
    color: #76ABAE
}
a.nav-link.active{
    background-color: #76ABAE !important;
    border-radius: 20px;
    color: #ffffff !important;
}
span.nav-icon{
    display: flex;
    justify-content: center;
}
.nav-icon > img{
    width: 20px;
}
.mobile-spacer{
    display: none;
}

.content-container{
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    grid-template-columns: repeat(8, 1fr);
    height: 700px;
    gap: 20px;
    margin: 20px;
}
.section{
    border-radius: 20px;
    background-color: #31363F;
    box-shadow: var(--shadow) !important;
}
.caption{
    grid-row: span 1;
    grid-column: span 7;
    background-color: #76ABAE;
}
.emoji{
    grid-row: span 1;
    grid-column: span 1;
}
/* ========== Design-Variablen ========== */
:root{
  --bg-dark: #222831;
  --bg-medium: #31363F;
  --text: #ffffff;
  --accent: #76ABAE;
  --radius: 20px;
  --space: 16px;
  --shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* ========== Layout ========== */
.mailto{
  grid-row: span 4;
  grid-column: span 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background-color: #222831 !important;
  box-shadow: none;
  padding: 0;
}

form{
  display: flex;
  flex-direction: column;
  gap: var(--space);
  width: 100%;
  height: auto;
  padding: 30px 30px 30px;
  background-color: #31363F;
  border-radius: 20px ;
  box-shadow: var(--shadow);
}

/* Alles im Formular: volle Breite, Höhe automatisch */
form > *{
  width: 100%;
}

/* ========== Felder (Basis) ========== */
input, textarea{
  font: inherit;
  color: var(--text);
  background: var(--bg-medium);
  border: none;
  border-radius: var(--radius);
  padding: 5px 10px;
  transition: box-shadow .25s ease, background-color .25s ease;
}

/* dunklere Varianten, wo du sie brauchst */
.dark-field{ background: var(--bg-dark); }

/* Größen (statt height:100%) */
.your-name,
.subject{
  font-size: clamp(1rem, 1.2vw + .8rem, 1.6rem); /* skaliert moderat */
  min-height: 56px;
}

.your-mail{                  /* falls E-Mail-Feld bewusst dunkler */
  background: var(--bg-dark);
}

.message{
  background: var(--bg-dark);
  min-height: 220px;         /* genug Platz, aber flexibel */
  resize: vertical;          /* Benutzer darf Höhe anpassen */
}

/* Fokus – barrierefrei & stilvoll */
input:focus-visible,
textarea:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(118,171,174,.35);
}

/* Placeholder dezenter */
::placeholder{
  color: rgba(255,255,255,.55);
}

/* ========== Button ========== */
.send-button{
  height: 48px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #0b1b1d;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.send-button:hover{
  transform: translateY(-1px);
  background-color: #222831;
  color: #ffffff;
}
.send-button:active{
  transform: translateY(0);
  box-shadow: none;
}

/* ========== Container-Kachel ========== */
.section{
  border-radius: var(--radius);
  background: var(--bg-medium);
  color: var(--text);
  font-family: "Quicksand", sans-serif;
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.adress{
    grid-row: span 2;
    grid-column: span 4;
}
.contacts{
    grid-row: span 2;
    grid-column: span 4;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
a > img{
    width: 100px;
}

.holographic-container{
  height: auto;
  background: transparent;
  padding: 12px 0;
}
.holographic-card {
  width: auto;
  height: auto;
  background:#31363F;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  transition: all 0.5s ease;
}
.holographic-card a{
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.holographic-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    rgba(0,255,255,0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}
.holographic-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
}
.holographic-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

.hover-underline {
  font-size: 2rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
}
.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ff0000, #00ffff);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}
.hover-underline::before {
  top: -5px;
  transform-origin: left;
}
.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

@media(max-width: 1024px){
    .body{
        padding-bottom: 80px !important;
    }
    .content-container{
        display: flex;
        flex-direction: column;
    }
    header {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.75);
        z-index: 1000;
        height: 70px;
        display: flex;
        align-items: center;
        border: 1px solid #76ABAE;
    }
    .nav-text{
        display: none;
    }
    .nav-icon > img{
        width: 28px;
        height: 28px;
    }
    .mobile-spacer{
        display: flex;
        padding: 38.5px;
    }
    form{ 
        padding: 20px;
    }
    .mailto{
        padding: 0;
    }
    .your-name, .subject{ 
        min-height: 50px; 
    }
    .emoji{
        display: none;
    }
}

@media(max-width: 768px){
    .gap-5{
        gap: 2rem !important;
    }
    .nav-icon > img{
        width: 22px;
        height: 22px;
    }
    a > img{
    width: 60px;
}
}

@media(max-width: 510px){
    .gap-5{
        gap: 1rem !important;
    }
    li.nav-item > a.active{
        width: 40px;
    }
    a > img{
    width: 40px;
}
}

@media(max-width: 394px){
    .gap-5{
        gap: 0rem !important;
    }
    .nav-icon > img{
        width: 17px;
        height: 17px;
    }
    a > img{
    width: 30px;
}
}