@font-face {
  font-family: "K2D";
  src:
    url("/fonts/K2D-Thin.ttf"), url("/fonts/K2D-SemiBold.ttf"),
    url("/fonts/K2D-ThinItalic.ttf");
}
@font-face {
  font-family: "Dancing Script";
  src: url("/fonts/DancingScript-VariableFont_wght.ttf");
}

/* css clean up */

* {
  font-family: "K2D", sans-serif;
  font-weight: 100;
  box-sizing: border-box;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0;
  padding: 0;
  text-decoration: none;
  /* border: 1px solid red; */
  z-index: 2;
}

:root {
  /* --main: #C6B895; */
  /* --main: #b43782; */
  /* --main: #379d72; */
  /* --main: #339567; */
  /* --main: #359c6c; */

  /* --main: #E9C18E; */

  /* --main: #EC9A54; */
  /* --main: #E9C18E; */
  /* --main: #E5C090; */

  /* --main-accent: #c29f72; */
  /* --main-dark: #121115; */
  /* --text: #2b2b2be8; */

  --background: #2d875d;
  --background-medium: #0e2c1e;
  --background-dark: #0a1f16;
  --background-accent: #256b4a;
  --background-accent-trans: #256b4a73;
  --background-special: #175d3d;
  --background-selection: #113324;
  --text: #fff;
  --nav-dropdown-hover: #e7e7e7;

  --border-small: 10px;
  --border-big: 20px;
}

textarea {
  resize: none;
}

body {
  background-color: var(--background);
  overflow-x: clip;
}

.nophone {
  display: block;
}
.nodesk {
  display: none;
}
.nophone.nav-button,
.nophone.nav-dropdown {
  display: flex;
}
.nodesk.nav-button,
.nodesk.nav-dropdown {
  display: none;
}

/* components */

h1,
h2,
h3,
p {
  cursor: default;
  box-shadow: 1px 1px 2px -10px rgba(0, 0, 0, 0.385);
}

.bold {
  font-weight: bold;
}

.scroll-element {
  position: absolute;
  width: 300px;
  height: auto;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.selectable {
  -ms-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
  cursor: text;
}
.selectable::selection {
  all: unset;
  color: var(--background-selection);
}

p {
  font-size: 20px;
  line-height: 26px;
}

.font {
  color: var(--text);
}

.split-text {
  max-width: 95%;
  column-gap: 80px;
  column-width: 30ch;
}

.narrow-text {
  width: 60%;
  max-width: 60ch;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: unset;
  height: 32px;
  border-radius: 32px;
  padding: 0 16px;
  background-color: transparent;
  transition:
    background-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  white-space: nowrap;
}
.nav-button:hover {
  background-color: var(--text);
  box-shadow: 0 2px 7px -5px var(--background-medium);
}
.nav-button span {
  color: var(--text);
  font-size: 16px;
  transition: color 0.2s ease-in-out;
}
.nav-button:hover span {
  color: var(--background-medium);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: max(100%, 250px);
  height: 12px;
  transform: translateX(-50%);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: max-content;
  min-width: 250px;
  padding: 8px;
  border-radius: 24px;
  background-color: var(--text);
  box-shadow: 0 18px 35px -24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 0.2s ease-in-out,
    transform 0.2s ease-in-out,
    visibility 0.2s ease-in-out;
}

.nav-dropdown-item {
  display: block;
  padding: 11px 16px;
  border-radius: 16px;
  transition: background-color 0.2s ease-in-out;
}

.nav-dropdown-item span {
  color: var(--background-medium);
  font-size: 16px;
  transition: color 0.2s ease-in-out;
}

.nav-dropdown-item:hover {
  background-color: var(--nav-dropdown-hover);
}

.nav-dropdown:not(.is-suppressed):hover > .nav-button,
.nav-dropdown:not(.is-suppressed):focus-within > .nav-button,
.nav-dropdown.is-open > .nav-button {
  background-color: var(--text);
  box-shadow: 0 2px 7px -5px var(--background-medium);
}

.nav-dropdown:not(.is-suppressed):hover > .nav-button span,
.nav-dropdown:not(.is-suppressed):focus-within > .nav-button span,
.nav-dropdown.is-open > .nav-button span {
  color: var(--background-medium);
}

.nav-dropdown:not(.is-suppressed):hover > .nav-dropdown-menu,
.nav-dropdown:not(.is-suppressed):focus-within > .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.disziplin-grid[id],
#angebot-kontakt,
#ueber-mich {
  scroll-margin-top: 96px;
}

.disziplinen-section {
  padding: 2% 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.disziplin-grid {
  display: grid;
  grid-template-columns: 0.8fr repeat(6, 1fr) 0.8fr;
  gap: 30px;
}

.disziplin-image {
  height: 42vw;
  background-size: cover;
  background-position: 50% 0;
  border-radius: var(--border-small);
  margin-bottom: -20px;
  grid-column: 2 / span 6;
}

.disziplin-heading {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-content: end;
}
.disziplin-heading h2 {
  font-size: 48px;
  margin-bottom: -16px;
}
.disziplin-heading p {
  font-style: italic;
  align-self: end;
}

.standalone {
  margin: 48px 0 64px 0;
}
.standalone .disziplin-grid .card {
  position: relative;
  background-color: var(--background-special);
  border-radius: var(--border-big);
  box-shadow: 0 5px 20px -10px var(--background-medium);
  grid-column: 2 / span 6;
}
#ueber-mich .disziplin-grid .card p span {
  font-weight: bold;
}
.ueber-mich-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 25%;
  background-image: url(/images/me.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 100%;
}
.ueber-mich-image-phone {
  height: 240px;
  width: 100%;
  background-image: url(/images/me-phone.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 0;
  margin: 8px 0 16px 0;
  display: none;
}

.image-hover {
  filter: grayscale(1);
  transition: filter 0.3s ease-in-out;
}
.image-hover:hover,
.image-hover:active {
  filter: grayscale(0);
}

.card {
  overflow: hidden;
  background-color: rgba(37, 107, 74, 0.88);
  border-radius: var(--border-big);
  box-shadow: 0 5px 20px -10px var(--background-medium);
  /* backdrop-filter: blur(12px); */
}
.card p {
  margin: 0 22px 16px 22px;
}
.card h3 {
  font-size: 1.8rem;
  margin: 12px 22px 8px 22px;
}

.tele-lnk {
  line-height: 2.7rem;
  text-decoration: underline;
  color: var(--text);
}
.tele-lnk:hover {
  opacity: 0.7;
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.6;
  background-size: cover;
  background-position: 50% 0;
}
.card-image-big {
  aspect-ratio: 1 / 0.15;
}

/* elements */

.overlap {
  margin-bottom: 25rem;
  z-index: 5;
  overflow: hidden;
  background-color: var(--background);
  border-radius: 0 0 1.7rem 1.7rem;
  box-shadow: 0 8px 8px -2px rgba(0, 0, 0, 0.502);
  padding-bottom: 2rem;
  isolation: isolate;
}

#start-seite {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-bottom: 160px;
}

#start-seite h2 {
  margin-top: 1vw;
  font-size: 35px;
  text-align: center;
  padding: 2rem;
  font-family: "Dancing Script";
}

.start-graphic {
  max-width: 1200px;
  width: 80%;
}

h1 {
  font-size: 10vw;
}

h5,
h4 {
  font-weight: bold;
}

#mehr-link {
  position: absolute;
  bottom: 48px;
  background-color: var(--text);
  padding: 12px 28px;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 5px 15px -8px var(--background-medium);
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}
#mehr-link:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 25px -15px var(--background-medium);
}
#mehr-link span {
  color: var(--background-medium);
  font-size: 20px;
}

nav {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 11;
  gap: 16px;
  top: 0;
  left: 0;
  height: 48px;
  width: 100vw;
  /* background-color: rgba(45, 135, 93, 0.84); */
  overflow: visible;
  isolation: isolate;
  backdrop-filter: blur(12px);
}

.top-logo {
  position: absolute;
  top: 0;
  left: 5rem;
  height: 48px;
  width: 48px;
  /* border: 1px solid red; */
  background-image: url(/images/icons/logo.png);
  background-size: 80%;
  background-position: 50%;
  background-repeat: no-repeat;
  transition: opacity 0.2s ease-in-out;
}
.top-logo:hover {
  opacity: 0.7;
}

.c-one {
  grid-column: 2 / span 2;
}
.c-two {
  grid-column: 4 / span 2;
}
.c-three {
  grid-column: 6 / span 2;
}
.c-four {
  grid-column: 2 / span 6;
}

.standalone .disziplin-grid .angebot-card {
  grid-column: 2 / span 3;
}
.standalone .disziplin-grid .contact-card {
  grid-column: 5 / span 3;
}

.angebot-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 32px 32px 62px 32px;
  row-gap: 30px;
  column-gap: 20px;
}

.angebot-element {
  position: relative;
  display: grid;
  grid-template-columns: 80px auto;
  padding: 10px;
  gap: 10px;
  border: 1px solid var(--text);
  border-radius: var(--border-small);
}

.angebot-element p {
  margin: unset;
  font-size: 16px;
  line-height: 18px;
  text-align: end;
  overflow-wrap: anywhere;
}
.angebot-element .full-width {
  text-align: start;
}

.angebot-grid div label {
  position: absolute;
  top: -13px;
  left: 15px;
  background: var(--background-special);
  padding: 0 5px;
  font-size: 16px;
  color: var(--text);
}

.tag-div {
  position: absolute;
  top: -11px;
  right: 15px;
  align-self: end;
  display: flex;
  gap: 4px;
}
.tag-div p {
  font-size: 16px;
  padding: 0 5px;
  background-color: var(--background-special);
}

/* kontakt */

.contact-h2 {
  padding-top: 15px;
  padding: 15px 0.5rem 0 0.5rem;
  font-size: 1.8rem;
  text-align: center;
}

form {
  width: 100%;
  max-width: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: auto;
  padding: 32px;
  row-gap: 30px;
  column-gap: 20px;
  container-type: inline-size;
  container-name: kontakt;
}

.full-width {
  grid-column: 1 / span 2;
}

.form-input {
  all: unset;
  -webkit-user-drag: none;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  /* display: block; */
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  border: 1px solid var(--text);
  border-radius: var(--border-small);
  color: var(--text);
  padding: 0 10px;
  cursor: text;
}

.form-elements label {
  position: relative;
  height: auto;
}
.form-elements label span {
  position: absolute;
  top: -21px;
  left: 15px;
  background: var(--background-special);
  padding: 0 3px 0 5px;
  font-size: 16px;
  color: var(--text);
  transition:
    left 0.2s ease-in-out,
    transform 0.2s ease-in-out;
  width: max-content;
}
.form-elements label:focus-within span {
  left: calc(100% - 15px);
  transform: translateX(-100%);
}
.form-elements label .solid-span {
  top: -21px;
  left: 0;
  padding: 0 3px 0 5px;
}

.form-elements label:focus-within .solid-span {
  left: 0;
}

.textarea {
  box-sizing: border-box;
  padding: 10px 10px;
  margin: -10px 0;
  height: auto;
  min-height: 80px;
  max-height: 300px;
  resize: vertical;
  text-wrap-mode: wrap;
  overflow-wrap: break-word;
  overflow-y: auto;
  field-sizing: content;
}

::placeholder {
  color: #ffffff93;
}

.select {
  padding: 8px 10px;
}
select option {
  padding: 10px;
  background: var(--background-medium);
}

.tel_wrapper {
  display: grid;
  grid-template-columns: 64px auto;
  gap: 10px;
}

.send-wrap {
  display: flex;
  justify-content: center;
}
.send {
  width: 96px;
  background-color: var(--text);
  color: var(--background-special);
  text-align: center;
  box-shadow: 0 5px 15px -8px var(--background-medium);
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  cursor: pointer;
}
.send:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 25px -15px var(--background-medium);
}

@container kontakt (max-width: 450px) {
  .full-width {
    grid-column: unset;
  }
  .form-elements,
  .tel_wrapper {
    grid-column: 1 / span 2;
  }
  .tel_wrapper .form-elements {
    grid-column: unset;
  }
}

/* carousel */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--background-accent);
  padding: 20px 0;
  border-radius: 20px;
}

.carousel-track-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  touch-action: pan-y; /* Allow vertical scrolling */
}

.carousel-slide {
  min-width: 60%; /* Main image width */
  margin: 0 20px; /* Gap for preview images */
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: var(--border-big);
  aspect-ratio: 16 / 9;
  box-shadow: 0 5px 20px -10px var(--background-medium);
  object-fit: cover;
  object-position: top;
}

.carousel-button {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  background: var(--background-medium);
  opacity: 0.7;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 100%;
  transition: opacity 0.2s ease-in-out;
  z-index: 3;
  box-shadow: 0 5px 20px -10px var(--background-medium);
}
.carousel-button:hover {
  opacity: 1;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-button:focus {
  outline: none;
}

li {
  all: unset;
}

/* footer */

footer {
  z-index: -1;
  display: grid;
  position: fixed;
  bottom: 0;
  grid-template-columns: 2fr 3fr;
  width: 100%;
  height: 66rem;
  padding: 46rem 4rem 4rem 4rem;
  background-color: var(--background-dark);
}
/* footer div {
    height: 100%;
} */

.footer-wrapper {
  position: relative;
  height: 100%;
  /* border: 1px solid red; */
}
.map-flex {
  display: flex;
  justify-content: end;
  gap: 40px;
}
.map-flex p,
.map-flex h2 {
  margin-bottom: 0.5rem;
  text-align: end;
}
.map-flex a {
  position: relative;
  padding-right: 20px;
  float: right;
  transition: opacity 0.2s ease-in-out;
}
.map-icon {
  position: absolute;
  top: 4px;
  right: 0;
  width: 16px;
  height: 16px;
  background-size: contain;
}
.map-flex a:hover {
  opacity: 0.7;
}

.map-flex p {
  font-size: 16px;
}

h1 {
  font-size: 20px;
  text-align: end;
}

.kontakt-footer a {
  position: relative;
  padding-left: 20px;
  cursor: pointer;
}
.kontakt-footer .icon {
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  background-size: contain;
}

.leagal {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  gap: 10px;
}
.leagal a,
.kontakt-footer a {
  color: var(--text);
  transition: opacity 0.2s ease-in-out;
}
.leagal a:hover,
.kontakt-footer a:hover {
  opacity: 0.7;
}
.kontakt-footer h2,
.kontakt-footer p {
  margin-bottom: 0.5rem;
}

footer .selectable::selection {
  color: var(--background);
}

.card .p-overwrite {
  position: absolute;
  margin: unset;
  font-size: 1rem;
  line-height: 1.1rem;
  padding-right: 20px;
  bottom: 19px;
}

#footer h2 {
  font-size: 20px;
}

.spec-icon {
  top: 3px;
}

.ueber-mich p {
  margin: 0 42px 36px 42px;
}
.ueber-mich h3 {
  margin: 32px 42px 8px 42px;
}

/* phone */

@media only screen and (max-width: 1560px) {
  .angebot-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 1000px) {
  .disziplin-image {
    grid-column: 1 / span 8;
    border-radius: 0;
    height: 55vw;
  }
  .disziplin-grid {
    grid-template-columns: 0.01fr repeat(6, 1fr) 0.01fr;
  }
  p {
    font-size: 16px;
    line-height: 22px;
  }
  .disziplin-heading h2 {
    font-size: 32px;
  }

  .c-one {
    grid-column: 2 / span 3;
  }
  .c-two {
    grid-column: 5 / span 3;
  }
  .c-three {
    grid-column: 2 / span 3;
  }
  .c-four {
    grid-column: 5 / span 3;
  }
  .overlap {
    margin-bottom: 21rem;
  }
  footer {
    width: 100%;
    height: 64rem;
    padding: 46rem 2rem 1rem 2rem;
  }
  .map-flex {
    gap: 30px;
  }

  .carousel {
    grid-column: 1 / span 8 !important;
    border-radius: 0;
  }
  .carousel-slide img {
    border-radius: var(--border-big);
    aspect-ratio: 4 / 3;
  }
}

@media only screen and (max-width: 840px) {
  footer {
    grid-template-columns: 1fr;
    width: 100%;
    height: 73rem;
    padding: 44rem 2rem 4rem 2rem;
    row-gap: 10px;
  }
  .map-flex {
    justify-content: start;
    flex-direction: row-reverse;
  }
  .map-flex p,
  .map-flex h2 {
    text-align: start;
  }
  h1 {
    text-align: start;
  }
  .map-flex a {
    float: left;
  }
  .overlap {
    margin-bottom: 31rem;
    padding-bottom: 1px;
  }
}

@media only screen and (max-width: 700px) {
  .nophone.nav-button,
  .nophone.nav-dropdown {
    display: none;
  }
  .nodesk.nav-button,
  .nodesk.nav-dropdown {
    display: flex;
  }

  .narrow-text {
    width: auto;
    max-width: 80ch;
  }

  #start-seite .title-h2 {
    font-size: 1.7rem;
  }

  nav {
    justify-content: space-evenly;
    gap: 8px;
    padding: 0 12px;
    bottom: 0;
    top: unset;
  }

  .nav-button,
  .nav-dropdown {
    flex: 1 1 0;
  }

  .nav-button {
    padding: 0 10px;
  }

  .nav-dropdown::after {
    top: unset;
    bottom: 100%;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: unset;
    left: 50%;
    bottom: 60px;
    width: min(320px, calc(100vw - 32px));
    min-width: min(320px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    transform: translate(-50%, 8px);
  }

  .nav-dropdown:not(.is-suppressed):hover > .nav-dropdown-menu,
  .nav-dropdown:not(.is-suppressed):focus-within > .nav-dropdown-menu,
  .nav-dropdown.is-open > .nav-dropdown-menu {
    transform: translate(-50%, 0);
  }

  .nav-dropdown:not(.is-open):hover > .nav-button,
  .nav-dropdown:not(.is-open):focus-within > .nav-button {
    background-color: transparent;
    box-shadow: none;
  }

  .nav-dropdown:not(.is-open):hover > .nav-button span,
  .nav-dropdown:not(.is-open):focus-within > .nav-button span {
    color: var(--text);
  }

  .nav-dropdown:not(.is-open):hover > .nav-dropdown-menu,
  .nav-dropdown:not(.is-open):focus-within > .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
  }

  .disziplin-grid[id],
  #angebot-kontakt,
  #ueber-mich {
    scroll-margin-top: 40px;
  }

  #mehr-link {
    bottom: 80px;
  }

  .disziplin-image {
    height: 80vw;
  }
  .disziplin-grid {
    grid-template-columns: 0.001fr repeat(6, 1fr) 0.001fr;
  }

  .c-one {
    grid-column: 2 / span 6;
  }
  .c-two {
    grid-column: 2 / span 6;
  }
  .c-three {
    grid-column: 2 / span 6;
  }
  .c-four {
    grid-column: 2 / span 6;
  }

  #kontakt .disziplin-grid {
    grid-template-rows: 1fr 1fr;
  }
  .standalone .disziplin-grid .contact-card {
    grid-column: 2 / span 6;
  }
  .standalone .disziplin-grid .angebot-card {
    grid-column: 2 / span 6;
  }

  .ueber-mich-image {
    display: none;
  }
  .ueber-mich-image-phone {
    display: block;
  }

  .carousel-slide img {
    aspect-ratio: 3 / 4;
  }

  .nophone {
    display: none;
  }
  .nodesk {
    display: block;
  }

  footer {
    grid-template-columns: 1fr;
    width: 100%;
    height: 75rem;
    padding: 44rem 2rem 4rem 2rem;
    row-gap: unset;
  }
  .leagal {
    bottom: 65px;
    left: 50%;
  }
  .maps {
    position: relative;
    height: 12rem;
    aspect-ratio: 1;
  }
  .overlap {
    margin-bottom: 33rem;
    padding-bottom: 1px;
  }

  .start-graphic {
    width: 80%;
    margin-bottom: -3rem;
  }
}

@media only screen and (max-width: 500px) {
  form,
  .angebot-grid {
    padding: 20px 20px 62px 20px;
  }

  footer {
    grid-template-columns: 1fr;
    width: 100%;
    height: 76rem;
    padding: 44rem 2rem 4rem 2rem;
    row-gap: unset;
  }
  .leagal {
    bottom: 65px;
    left: 50%;
  }
  .maps {
    display: none;
  }
  .overlap {
    margin-bottom: 34rem;
    padding-bottom: 1px;
  }

  .carousel-slide img {
    border-radius: var(--border-big);
    aspect-ratio: 1 / 2;
  }
}

@media only screen and (max-width: 350px) {
  .angebot-grid div label {
    font-size: 12px;
    top: -10px;
  }
}

.inpextra {
  position: absolute;
  top: -10000rem;
}
