

:root {
  /* Farbpalette */
  --color-white: #f5f7fa;
  
  --color-blue: rgba(100, 161, 227, 1);       /* z. B. für Buttons, Links */
  --color-darkblue: #0a48a5;
  --color-buttonblue: #005be4e7;
  /* --color-hoverbuttonblue:#002d75e7; */
  --color-hovergreen: rgb(225, 255, 0);
  --color-green: rgb(225, 255, 0);     /* dunklere Variante für Hover-Effekt */
  --color-black: #000000;        /* grünlicher Akzent */
  --color-grey:rgba(217, 217, 217, 1);

  /* Schriftarten */
  --font-base: Aksara, sans-serif; /* Basis-Schriftart */
  --font-heading: 'Inter', sans-serif;

  /* Schriftgrößen */
  --font-size-base: 16px;
  --font-size-h1: 64px;
  --font-size-h2: 48px;
  --font-size-h3: 24px;
  --font-size-sm: 0.875rem;


  /* Abstände */
  --hoehe-header: 60px;
}



header {
  margin-top: 1rem;
  margin-left: 2vw;
  margin-right: 2vw;
  border: #000000 1px solid;
  background-color: var(--color-darkblue);
  border-radius: 10px;
  min-height: var(--hoehe-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2vw;
  position: relative;
}

.verankerungslaengen {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

header h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  color: var(--color-white);
  margin: 0;
  font-weight: normal
}

.ingenieurTools a {
  text-decoration: none;
  color: var(--color-white);
  font-family: var(--font-base);
  font-size: var(--font-size-h3);
}

.ingenieurTools a:hover {
  color: var(--color-green);
  cursor: pointer;
}


.toolsUeberUns {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.dropdown {
  position: relative;
  display: inline-block;
  transform: transform 0.9s ease;
}


.dropdown-toggle {
  background: none;
  border: none;
  color: white;
  font-size: var(--font-size-h3);
  cursor: pointer;
}

.dropdown-toggle:hover {
  color: var(--color-green) /* grün (z. B. Tailwind green-500) */
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--color-darkblue);
  border: #000000 1px solid;
  border-radius: 10px; 
  min-width: 160px;
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}


.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-white);
  font-size: var(--font-size-h3);
  font-family: var(--font-base);
  font-weight: lighter;
}

.dropdown-menu a:hover {
  /* background-color: var(--color-green); */
  color: var(--color-green);
}


.dropdown:hover .dropdown-menu {
  display: block;
}

.ueberUns a {
  text-decoration: none;
  color: var(--color-white);
  font-family: var(--font-base);
  font-size: var(--font-size-h3);
}

.ueberUns a:hover {
  color: var(--color-green);
  cursor: pointer;
}



body {
  background-color: var(--color-blue);
  margin: 0;
  padding: 0;
}

main {
  margin: 0;
  background-color: var(--color-blue);
}

.verankerungslaengen-sections {
  /* border: #000000 1px solid; */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 2rem 2vw;
  min-height: 60vh;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .verankerungslaengen-sections {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1rem 3vw;
    min-height: 100vh;
  }
  .section {
    min-height: 0;
    height: auto;
    overflow-y: auto;
    /* Ermöglicht Scrollen, wenn Inhalt zu groß */
  }

  .section:nth-child(2) {
    min-height: 1050px; 
    height: auto;
  }
}

@media (max-width: 700px) {
  .verankerungslaengen-sections {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }
  .section {
    flex: 1 1 auto;
    min-height: unset;
    height: auto;
    overflow-y: auto;
  }

  .section:first-child {
    min-height: 1500px; 
    height: auto;
  }

  .section:nth-child(2) {
    min-height: 1000px; 
    height: auto;
  }

  .section:nth-child(3) {
    min-height: 1000px; 
    height: auto;
  }

  
  
}
@media (min-width: 700px) {
  .verankerungslaengen-sections {
    align-items: stretch;
  }
  .section {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* Synchronisiere die Höhe der ersten beiden Sections auch auf kleinen Bildschirmen */
@media (max-width: 900px) {
  .verankerungslaengen-sections {
    /* JavaScript kann hier helfen, aber mit CSS: */
    /* Die Sections werden gleich hoch, wenn beide flex: 1 sind und der Container flex ist */
  }
  .section {
    flex: 1 1 0;
    min-height: 0;
  }
}
.section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  border: 1px solid #000;
  background-color: var(--color-grey);
  border-radius: 10px;
  overflow: hidden;
  flex: 1 1 320px;
  box-sizing: border-box;
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .verankerungslaengen-sections {
    align-items: stretch;
  }
  .section {
    height: 100%;
    justify-content: space-between;
  }
  .section-footer {
    margin-top: auto;
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-darkblue);
  min-height: 48px;
  border-bottom: 1px solid #000;
  border-radius: 10px 10px 0 0;
}

.section-header h3 {
  margin: 0;
  color: var(--color-white);
  font-size: var(--font-size-h3);
  font-family: var(--font-base);
  font-weight: normal;
}

.input-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}
.input-columns > div {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 700px) {
  .input-columns {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .input-columns > div {
    min-width: 0;
    width: 100%;
  }
}

.input-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.5rem;
  height: 100%;
}

.parameter-container {
  /* border: #000000 1px solid; */
  width: 100%;
  min-width: 0;
  /* height: 90px; entfernt, damit die Höhe flexibel ist */
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.7rem;
  box-sizing: border-box;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (max-width: 700px) {
  .parameter-container {
    /* height: auto; bleibt */
    padding: 0.3rem 0.2rem;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
  }
}

.parmeter-name-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.parmeter-name-info p {
 font-family: var(--font-base);
 /* font-size: small; */
}

.parmeter-name-info button {
  background-color: var(--color-blue);
  color: var(--color-black);
  border: none;
  border-radius: 70%;
  width: 24px;
  height: 24px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  line-height: 24px;
}

.parmeter-name-info button:hover {
  background-color: #0056b3;
}
/* .parameter-eigabefeld{
  font-size: 14px;
} */


.eingabefeld, .dropdown-parameter {
  width: 100%;
  min-width: 0;
  height: 2.2rem;
  font-size: 1rem;
  box-sizing: border-box;
  padding: 4px 8px;
}
/* 
.expositions-dropdown-row {
  display: flex;
  gap: 0.3rem;
  width: 100%;
}
.expo-dropdown {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  font-size: 1rem;
  box-sizing: border-box;
  padding: 4px 8px;
  height: 2.2rem;
}
@media (max-width: 700px) {
  .expositions-dropdown-row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .expo-dropdown {
    width: 100%;
    min-width: 0;
    height: 1.8rem;
    font-size: 0.95rem;
    padding: 2px 4px;
  }
} */


.expositions-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.3rem;
  width: 100%;
}
.expo-dropdown {
  width: 100%;
  min-width: 0;
  font-size: 1rem;
  box-sizing: border-box;
  padding: 4px 8px;
  height: 2.2rem;
}
@media (max-width: 700px) {
  .expositions-dropdown-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 0.2rem;
  }
  .expo-dropdown {
    height: 1.8rem;
    font-size: 0.95rem;
    padding: 2px 4px;
  }
}

@media (max-width: 500px) {
  .eingabefeld, .dropdown-parameter {
    height: 1.8rem;
    font-size: 0.95rem;
    padding: 2px 4px;
  }
}

.berechnen-btn {
  width: 70%;
  max-width: 220px;
  min-width: 120px;
  height: 2.7rem;
  font-family: var(--font-base);
  font-size: 1.18rem;
  /* font-size: 1.65rem; */
  margin: 0.5rem auto 2.2rem auto;
  border: var(--color-black) 2px solid;
  border-radius: 10px;
  background-color: var(--color-darkblue);
  color: var(--color-white);
  cursor: pointer;
  display: block;
}
.berechnen-btn:hover {
  color: var(--color-green);
  border: var(--color-green) 2px solid;
}
@media (max-width: 700px) {
  .berechnen-btn {
    width: 90%;
    max-width: 200px;
    font-size: 1.05rem;
    height: 2.3rem;
    margin-bottom: 1.5rem;
  }
}

.section-footer {
  display: flex;
  align-items: center;
  height: 48px;
  min-height: 40px;
  margin-top: 2rem;
}
@media (max-width: 700px) {
  .section-footer {
    margin-top: 1rem;
  }
}

.textarea-protokoll-container, .info-container {
  /* border: #000000 1px solid; */
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.info-container{
  /* border : red 1px solid; */
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  min-height: 0;
  min-width: 0;
}

.textarea-protokoll-container {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: stretch;
  justify-content: stretch;
  margin: 0 auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  flex: 1 1 auto;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
@media (max-width: 700px) {
  .textarea-protokoll-container {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}

.textarea-protokoll, .textarea-info {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border: none;
  padding: 10px;
  box-sizing: border-box;
  resize: none;
  font-size: 1rem;
  border-radius: 5px;
  background: #fff;
  flex: 1 1 auto;
  display: block;
}
@media (max-width: 500px) {
  .textarea-protokoll, .textarea-info {
    font-size: 0.9rem;
    padding: 4px;
    min-height: 80px;
  }
}

/* Info-Section: Textfeld und Bild teilen sich die Höhe 50/50 */
.info-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
}

.textarea-info-container {
  flex: 1 1 0;
  height: 50%;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  margin: 0;
  box-sizing: border-box;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
@media (max-width: 700px) {
  .textarea-info-container {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}

.textarea-info {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border: none;
  padding: 10px;
  box-sizing: border-box;
  resize: none;
  font-size: 1rem;
  border-radius: 5px;
  background: #fff;
  flex: 1 1 auto;
  display: block;
}

.imageview-infon-container {
  flex: 1 1 0;
  height: 50%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background-color: var(--color-grey);
  margin: 0;
  border-radius: 5px;
  /* Abstand zum Textfeld */
  margin-top: 0.5rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
@media (max-width: 700px) {
  .imageview-infon-container {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}

.imageview-infon-container img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.textarea-info-container {
  margin-bottom: 0.5rem;
}

/* Hero & Discover Section */
.hero-container {
  text-align: center;
  margin-top: 5vw;
  margin-bottom: 5vw;
}
.hero-container h1 {
  font-weight: bold;
  letter-spacing: 0.1rem;
  font-size: clamp(2rem, 6vw, 4rem);
}
.hero-container h3 {
  font-weight: normal;
  letter-spacing: 0.05rem;
  font-size: clamp(1rem, 3vw, 2rem);
}

.highlighted-text {
  color: var(--color-green);
}

.jetzt-entdecken-container {
  text-align: center;
  padding: 0.1rem 3vw;
}

.jetzt-entdecken-container h2 {
  font-family: var(--font-base);	
  font-weight: bold;
  margin-bottom: 3rem;
  text-decoration: none;
  letter-spacing: 0.5rem;
  font-size: clamp(1rem, 3vw, 2rem);
}
.buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}


.tool-button {
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-base);
  margin: 0 8px;
  padding: 10px 18px;
  font-size: 1.9rem;
  border: var(--color-black) 2px solid; /* immer 2px, nicht 3px */
  border-radius: 12px;
  background-color: var(--color-darkblue);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border 0.3s, transform 0.2s;
}

.tool-button:hover {
  background-color: var(--color-darkblue);
  color: var(--color-green);
  border: var(--color-green) 2px solid; /*bleibt 2px*/
  cursor: pointer;
}

.tool-button:hover a {
  color: var(--color-green);
}
 

.tool-button a{
color: var(--color-white);
text-decoration: none;
}


.tool-button-coming-soon {
  margin: 0 8px;
  padding: 10px 18px;
  font-size: 1.9rem;
  border: rgb(180, 200, 214) 2px solid;
  border-radius: 12px;
  background-color: var(--color-darkblue);
  color: var(--color-grey);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border 0.3s, transform 0.2s;
}



.tool-button-coming-soon a{
  color: rgb(141, 178, 204);
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
}



.tool-button-coming-soon:hover  {
  /* Kein Hovereffekt */
  background-color: var(--color-darkblue);
  color: var(--color-grey);
  border: var(--color-grey) 2px solid;
  transform: none;
  cursor: not-allowed;
}


@media (max-width: 500px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.3rem;
    --font-size-h3: 1rem;
    --hoehe-header: 40px;
  }
  .jetzt-entdecken-container button {
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 6px;
  }
}

/* Standard: mobile Menü unsichtbar, Desktop sichtbar */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.mobile-nav {
  display: none;
}

/* Bei kleinen Bildschirmen: Rollen tauschen */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    align-items: center;
    order: 3;
  }

  .verankerungslaengen {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .ingenieurTools {
    order: 1;
  }



}












