@import "/assets/reset.css";
@import "/assets/fonts/fontawesome/css/all.min.css";
@import "/assets/fonts/google/googlefonts.css";
@import "/assets/navi.css";
@import "/assets/cke5-content-styles.css";

:root {
  --bg-main: #fffcef;
  --white: #fff;
  --logo: #d70047;
  --blau: #7da1c6;
  --blau1: #3162b4;
  --blau2: #627d9a;
  --blau3: rgba(125, 161, 198, 0.627);
  --hellgrau: hsl(0, 0%, 67%);
  --hellgrau2: hsl(0, 1%, 84%);
  --black: hsl(206, 23%, 12%);
  --black2: #000000;

  --green: hsl(109, 42%, 47%);
  --green2: hsl(109, 42%, 55%);
  --green3: hsl(109, 42%, 40%);

  --padding-00: 0;
  --padding-05: 0 0.5rem;
  --padding-50: 0.5rem 0;
  --padding-55: 0.5rem;
  --padding-01: 0 1rem;
  --padding-10: 1rem 0;
  --padding-11: 1rem;

  --navbar-height: calc(115px + 30%);
  --navbar-link: #000000;
  --navbar-hover: #d70047;
}

body {
  font-family: "Quicksand", sans-serif;
  line-height: 1.3;
  background: var(--bg-main);

  font-size: 1.275rem;
  color: var(--black2);

  overflow-y: scroll;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.google-maps-container {
  position: relative; /* Wichtig für die Platzierung des Platzhalters */
  width: 100%; /* Oder eine feste Breite */
  height: 350px; /* Oder eine feste Höhe */
  background-color: #f0f0f0; /* Hintergrundfarbe für den Platzhalter */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid #ccc;
}

.google-maps-placeholder p {
  margin-bottom: 15px;
  padding: 0 20px;
}

.google-maps-placeholder button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.google-maps-placeholder button:hover {
  background-color: #0056b3;
}

/* Stellen Sie sicher, dass der iFrame die volle Größe des Containers einnimmt, wenn er geladen ist */
.google-maps-container iframe {
  width: 100%;
  height: 100%;
  border: 0; /* Entfernen Sie den Standard-iFrame-Rahmen */
}

.linie {
  clear: both;
  border-top: 1px solid var(--navbar-link);
  margin-top: 1.25rem;
  padding-bottom: 1rem;
  max-width: calc(100% - 2rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
figure {
  margin-top: 0.55rem !important;
}

.ck-content figure ~ ul {
  padding-left: 2rem !important;
}

.ck-content > figure > img {
  /* outline: 3px solid red !important; */
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

h1 {
  font-size: 160%;
  text-transform: uppercase;
  color: var(--logo);
  font-weight: 700;
  margin: 0;
  /* overflow: auto; */
}
h1::before {
  content: "| ";
}
h2 {
  font-size: 130%;
  color: var(--black2);
  font-weight: 700;
}
h3 {
  font-size: 115%;
  color: var(--black2);
  font-weight: 700;
}

b,
strong {
  font-weight: 700;
}

i {
  font-style: italic;
}

table {
  white-space: nowrap;
  margin-bottom: 0.5rem;
  border: 1px solid var(--hellgrau2);
}

.ck-content .table {
  width: min(400px, 100%) !important;
}

.ck-content .table,
.ck-content .table table td,
.ck-content .table table th {
  margin: 0 0 1rem 0 !important;
}

td {
  padding-right: 1rem;
  padding-bottom: 0.2rem;
}

a {
  color: var(--logo);
  transition: 0.3s;
}
a:hover {
  color: var(--blau2);
}
[href^="tel:"] {
  color: var(--black2);
  text-decoration: none;
}

.nav-grid {
  --column-count: 2;
  display: grid;
  grid-template-columns: repeat(var(--column-count), 1fr);
  grid-auto-rows: 1fr; /* gleiche Höhe für alle Children */
  font-size: 90%;
}
header {
  background-color: var(--logo);
}

.header-content {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 1rem;
}

.logo img {
  max-width: 100%;
  height: auto;
}

.header-text {
  background-color: var(--logo);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  text-align: right;
}
.header-text b {
  font-size: 140%;
}
.header-text p {
  padding: 0;
}

.header-linien img {
  min-height: 30px;
}

.wrapper {
  /* outline: 1px solid red; */
  width: min(1200px, 100%);
  margin-inline: auto;
  /* padding: var(--padding-01); */
}
.wrapper1 {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: var(--padding-01);
}

.zweispaltig {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}
.zweispaltig > :nth-child(1) {
  width: 22%;
  border-right: 1px solid var(--hellgrau);
  padding-right: 1rem;
}
.zweispaltig > :nth-child(2) {
  width: calc(78% - 1rem);
}

.bg-trans {
  background-color: transparent;
  padding: 0;
}
.bg-trans:not(:first-child) {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.bg-white {
  background-color: white;
}
.bg-rot {
  background-color: var(--logo);
  color: var(--white);
}

.grid {
  --column-count: 3;
  display: grid;
  grid-template-columns: repeat(var(--column-count), 1fr);
  grid-auto-rows: 1fr; /* gleiche Höhe für alle Children */
  gap: 1rem;
}

.linie {
  border: none;
  height: 1px;
  border-bottom: 1px solid var(--hellgrau2);
  padding: 0;
  margin: 2rem 0 1rem 0;
}

/* ! Grid Logos */

.grid-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 200px));
  gap: 1rem;
  width: 100%;
  /* margin-top: 1rem; */
  padding: 1.5rem 0 0 0;
  justify-content: center;
}

.grid-logos-item {
  /* border: 0.25rem solid var(--white); */
  outline: 1px solid var(--hellgrau2);
  overflow: hidden;
  padding: 1rem;
  background-color: var(--white);
}
.grid-logos-item > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 1s ease;
}

/* ! Grid Bildergalerie */

.grid-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  /* margin-top: 1rem; */
  padding: 1.5rem 0 0 0;
}

.grid-galerie-item {
  outline: 1px solid var(--hellgrau2);
  padding: 3px;
  overflow: hidden;
}
.grid-galerie-item > a > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1s ease;
}

.grid-galerie-item:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transition: 0.2s ease-in-out;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.flex > :nth-child(1) {
  flex: 1;
  width: min(320px, 100%);
}
.flex > :nth-child(2) {
  flex: 3;
  /* width: min(320px, 100%); */
}

.center {
  text-align: center;
}

footer,
footer a {
  color: var(--black2);
  font-size: 1rem;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

footer i {
  margin-right: 0.5rem;
}

.footer-grid {
  text-align: center;
  margin: 0 auto;
}

/* Tabs */

.tabs {
  display: flex;
  background-color: var(--blau);
}
.tabs-button {
  color: var(--white);
  background-color: transparent;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.tabs-button:hover,
.tabs-button:focus,
.tabs-button.hovered {
  color: var(--white);
  background-color: var(--blau2);
}
.tab-content-grid {
  padding: 1rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 2fr;
}
.tab-content-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 9999px) {
  section {
    padding: var(--padding-01);
    clear: both;
  }
  section:not(.bg-trans) {
    padding: var(--padding-11);
  }
  .header-content {
    padding: 1rem 1rem 0 1rem;
  }
}

@media (max-width: 920px) {
  body {
    /* background-color: rgba(255, 0, 0, 0.1); */
    font-size: 1.1rem;
  }

  .nav-grid {
    --column-count: 1;
  }
  .header-content {
    padding: 1rem 1rem 0 1rem;
  }

  section {
    padding: var(--padding-01);
  }
  section:not(.bg-trans) {
    padding: var(--padding-11);
  }
  .grid {
    --column-count: 2;
  }
  .tab-content-grid {
    grid-template-columns: 1fr;
  }
  .tabs-button {
    padding: 0.5rem;
  }
  figure {
    /* width: 50% !important; */
  }
}

@media (max-width: 768px) {
  .zweispaltig > * {
    min-width: 100%;
  }
  .zweispaltig > :nth-child(1) {
    border-right: none;
    border-bottom: 1px solid var(--black2);
    padding-bottom: 1rem;
  }
  .flex > * {
    min-width: 100%;
    flex: 1;
  }
}
@media (max-width: 480px) {
  body {
    /* background-color: rgba(0, 0, 255, 0.1); */
    font-size: 0.9rem;
  }
  .nav-link {
    font-size: 0.95rem;
  }
  .header-content {
    grid-template-columns: auto 1fr;
  }
  .header-text {
  }

  section {
    padding: var(--padding-01);
  }
  section:not(.bg-trans) {
    padding: var(--padding-11);
  }
  .grid {
    --column-count: 1;
  }
  figure:not(.table) {
    width: 100% !important;
  }
  .flex > * {
    min-width: 100%;
    flex: 1;
  }
}
