@import "bootstrap";

:root {
  --bs-heading-color: #284E61;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

body.impressum {
  background: url("content/bilder/erweiterungimpressum.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100vh;
  margin-top: 50vh;
}


#hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}


.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
}

#header-content {
  background-color: #fff;
}

header {
  background-color: rgba(255,0,0,0);
  z-index: 10;
  transition: max-height 1s ease-in-out
}

#hero-logo {
  visibility: hidden;
  position: absolute;
  transform: translate(-50%, -0%);
  width: 80%;
  min-width: 5rem;
  z-index: -99;
}

#hero-logo-secondpage {
  position: relative;
  margin: 1rem;
  width: 8vw;
  min-width: 5rem;
  z-index: 100;
  transform: none;
}

#bg-logo {
  position: absolute;
  transform: translate(-50%, -0%);
  left: 50vw;
  top: 10vh;
  width: 80vw;
  min-width: 5rem;
  z-index: -99;
}

/* Logo wenn es "klebt" */
#hero-logo.sticky {
  position: fixed;
  top: 20px;
  left: 20px;
  transform: none;
  /* keine Zentrierung mehr */
  width: 100px;
  /* kleine Größe im Header */
}

#PlusXLogo {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;

  min-width: 5rem;
}

#balken {


  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 5px;
  background-color: #284E61;
  border-radius: 10px;
  z-index: 10;

}

.space {
  padding-top: 8vh;
  padding-bottom: 2vh;
}

#Scrollformore {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #284E61;
  z-index: 10;
}

#maindiv {

  margin-top: 100vh;

}

.card-hover {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  /* gleiche Rundung wie Bootstrap rounded */
  cursor: pointer;
}

.card-hover img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.card-hover:hover img {
  transform: scale(1.1);
  /* Zoom-Effekt */
}

.card-hover .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 110, 157, 0.4);
  /* halbtransparentes Schwarz */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-hover:hover .overlay {
  opacity: 1;
  /* Text einblenden beim Hover */
}


footer {
  background-color: #284E61;
  padding: 50px 0
}


.writingcard{

  font-weight: 400;
  font-size: xx-large;
}

.spacecard{
  padding-top: 9%;
  padding-left: 9%;
  padding-right: 9%;
}

.spacecard2{
  padding-top: 9%;
  padding-left: 9%;
  padding-right: 9%;
  padding-bottom: 9%;
}


h1 {

  font-family: "Montserrat", sans-serif;
}

p {
  font-family: "Montserrat", sans-serif;
}

h2 {
  font-family: "Montserrat", sans-serif;
}

h3 {

  font-family: "Montserrat", sans-serif;
}

h4 {

  font-family: "Montserrat", sans-serif;
}

h5 {

  font-family: "Montserrat", sans-serif;
}

h6 {

  font-family: "Montserrat", sans-serif;

}

a:link,
a:visited {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  ;

}

.item {
  text-align: center;
  transition: transform 0.4s ease;
}

.item img {
  transition: transform 0.4s ease;
}

.item .text {
  opacity: 0;
  /* erst unsichtbar */
  max-height: 0;
  /* kein Platz */
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.item:hover img {
  transform: scale(1.1);
}

.item:hover .text {
  opacity: 1;
  max-height: 500px;
}

.text-link {
  color: #212529 !important;
  text-decoration: underline;
}

.text-link:hover {
  color: #0056b3;
}

#uebermilkbackimg {

  margin-top: 100vh;
}

.mein-button {
  background-color: #284E61;
  color: white;
  border: none;
  /* optional */
}

.mein-button:hover {
  background-color: #1F3B53;
  /* dunklere Farbe beim Hover */
}