/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
button,
hr,
input {
    overflow: visible
}

progress,
sub,
sup {
    vertical-align: baseline
}

[type=checkbox],
[type=radio],
legend {
    box-sizing: border-box;
    padding: 0
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%
}

body {
    margin: 0
}

details,
main {
    display: block
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

hr {
    box-sizing: content-box;
    height: 0
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em
}

a {
    background-color: transparent
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted
}

b,
strong {
    font-weight: bolder
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

img {
    border-style: none
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,
select {
    text-transform: none
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: none;
    padding: 0
}

[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring,
button:-moz-focusring {
    outline: ButtonText dotted 1px
}

fieldset {
    padding: .35em .75em .625em
}

legend {
    color: inherit;
    display: table;
    max-width: 100%;
    white-space: normal
}

textarea {
    overflow: auto
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

summary {
    display: list-item
}

[hidden],
template {
    display: none
}

/* AltoProCon Normal */
@font-face {
    font-family: 'AltoProCon';
    src: url('../fonts/AltoProCon-Normal.eot');
    src: url('../fonts/AltoProCon-Normal.eot?#iefix') format('embedded-opentype'),
        url('../fonts/AltoProCon-Normal.woff') format('woff'),
        url('../fonts/AltoProCon-Normal.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* AltoProCon Bold */
@font-face {
    font-family: 'AltoProCon';
    src: url('../fonts/AltoProCon-Bold.eot');
    src: url('../fonts/AltoProCon-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/AltoProCon-Bold.woff') format('woff'),
        url('../fonts/AltoProCon-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
  font-family: "Pleasure Inktrap";
  src: url("/fonts/PleasureInktrapBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
    --light-green: #BBE0B6;
    --orange: #FF7833;
    --red: #E20613;
    --body-font: "AltoProCon", sans-serife;
    --headline-font: "Pleasure Inktrap", sans-serife;
    --color-black: #000000;
    --modal-headline-color: #E20613;
    --modal-button-color: #E20613;
    --white: #ffffff;
}

body {
    height: 100vh;
    width: 100vw;
    max-height: 100vh;
    max-width: 100vw;
    overflow: hidden;
    font-family: var(--body-font);
    font-weight: normal;
}

.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;
}

.loadingscreen {
    display: flex;
    background-color: var(--light-green);
    height: 100dvh;
    width: 100vw;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 9999999;
}

.loadingscreen-words {
    color: var(--orange);
    font-weight: bold;
    font-size: 5rem;
    hyphens: auto;
    font-family: var(--headline-font);
}

.loadingscreen-upperimg,
.loadingscreen-lowerimg {
    width: 100%;
    height: 100%;
    max-height: 80px;
    object-fit: contain;
    object-position: left center;
}

.page-logo {
    width: 140px;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 500;
}

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


.mapwrapper {
    background-image: url(../img/overlaymap.jpg);
    background-size: cover;
    background-position: center center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    box-sizing: border-box;
    z-index: 1;
}

#map {
    width: 100%;
    height: 95dvh;
}

.footer {
  height: 5dvh;
  background: black;
  color: white;
  padding: 5px 15px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer a{
    color: white;
    margin: 0 4px;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 32px;
}

.app-modal[hidden] {
    display: none;
}

.app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.12);
}

.app-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    padding: 42px 48px 52px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.4px);
    -webkit-backdrop-filter: blur(10.4px);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.app-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(0, 0, 0, 0.45);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.app-modal__close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(0, 0, 0, 0.75);
}

.app-modal__title {
    font-size: clamp(1.5rem, 4.2vw, 3rem);
    line-height: 0.95;
    font-weight: 600;
    color: var(--modal-headline-color);
    font-family: var(--headline-font);
}

.app-modal__body {
    max-width: 470px;
    margin: 0 auto;
}

.app-modal__body p {
    margin: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    font-weight: normal;
    color: var(--color-black);
}

.app-modal__actions {
    margin-top: 52px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.app-modal__button {
    min-width: 238px;
    height: 64px;
    padding: 0 32px;
    border: 0;
    border-radius: 18px;

    background: var(--modal-headline-color);
    color: #fff;

    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;

    box-shadow: 0 6px 18px rgba(144, 181, 135, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.app-modal__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(144, 181, 135, 0.34);
}

.app-modal__button:disabled {
    background: rgba(226, 6, 19, 0.18);
    color: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.app-modal__button:disabled:hover,
.app-modal__button:disabled:active {
    transform: none;
    box-shadow: none;
}

.app-modal__button:active {
    transform: translateY(0);
}

.app-modal__button:focus-visible,
.app-modal__close:focus-visible {
    outline: 3px solid rgba(120, 170, 120, 0.5);
    outline-offset: 3px;
}

.form-error {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--white);
    color: var(--red);
    font-weight: bold;
}

/*map controls*/

.custom-map-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.custom-map-control {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--light-green);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .app-modal {
        padding: 18px;
    }

    .app-modal__panel {
        width: 100%;
        min-height: auto;
        padding: 34px 24px 34px;
        border-radius: 16px;
    }

    .app-modal__title {
        margin: 10px 0 36px;
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .app-modal__body {
        max-width: 100%;
    }

    .app-modal__body p {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .app-modal__actions {
        margin-top: 38px;

    }

    .app-modal__button {
        min-width: 50%;
        height: 58px;
        border-radius: 16px;
    }
}

/*pin popup*/

.leaflet-popup-content-wrapper {
    background: rgba(220, 220, 220, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    width: 640px !important;
    max-width: calc(100vw - 48px);
}

.leaflet-popup-tip-container {
    display: none;
}

.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  border: none;
  text-align: center;
  width: 42px;
  height: 42px;
  font: 24px Tahoma, Verdana, sans-serif;
  color: var(--black);
  text-decoration: none;
  background: transparent;
}

.pin-popup {
    padding: 34px 34px 20px;
    text-align: center;
}

.pin-popup__text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.45;
    font-weight: 400;
    color: #111;
    text-wrap: balance;
    word-break: break-word;
      padding-top: 10px;
}

.pin-popup__footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pin-popup__translate {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #111;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pin-popup__translate:hover {
    background: rgba(255, 255, 255, 0.88);
}

.pin-popup__translate:disabled {
    opacity: 0.6;
    cursor: wait;
}

.pin-popup__language {
    font-size: 0.95rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar{
    border: none;
}

#pinText {
  width: 100%;
  background: white;
  border: 0;
  border-radius: 15px;
  padding: 10px 10px 20px;
}

#pinEmail {
  background: white;
  border: none;
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.char-counter {
  text-align: right;
  margin-right: 15px;
}

.category-item {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  align-items: center;
}

.category-item[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 100px;
  transform: scale(1.2);
}

.category-item img {
  width: 60px;
  height: auto;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
}

.category-item.essen::before{
    border: 2px solid #FFB1E3;
}
.category-item.natur::before{
    border: 2px solid #00756A;
}
.category-item.sport::before{
    border: 2px solid #00ADD1;
}
.category-item.uni::before{
    border: 2px solid #DFD3BB;
}
.category-item.begegnungen::before{
    border: 2px solid #E20613;
}
.category-item.sonstiges::before{
    border: 2px solid #ffffff;
}
.category-item.feiern::before{
    border: 2px solid #FF7833;
}
.category-item.kultur::before{
    border: 2px solid #9571C5;
}
.category-item.shopping::before{
    border: 2px solid #B9E3BA;
}
.category-item.stadt::before{
    border: 2px solid #316ABC;
}



@media (max-width: 767px) {
    .leaflet-popup-content {
        width: min(92vw, 520px) !important;
    }

    .pin-popup {
        padding: 24px 22px 16px;
    }

    .pin-popup__text {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .pin-popup__footer {
        margin-top: 14px;
    }

    .pin-popup__translate,
    .pin-popup__language {
        font-size: 0.9rem;
    }
}

.language-switcher {
  position: fixed;
  top: 15px;
  right: 10px;
  z-index: 1000;
}

.language-switcher__toggle {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--light-green);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  margin: 0;

  min-width: 160px;
  padding: 6px 0;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.language-switcher__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-switcher__item {
  margin: 0;
  padding: 0;
}

.language-switcher__link,
.language-switcher__current {
  display: block;
  padding: 12px 16px;
  white-space: nowrap;
  text-decoration: none;
  color: #111;
  font-size: 16px;
}

.language-switcher__link:hover {
  background: #f3f3f3;
}

.language-switcher__current {
  font-weight: 700;
  background: #f7f7f7;
  cursor: default;
}

.form-hint {
  margin: 10px 0 0;
  font-size: 0.95rem!important;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.72);
}

.form-hint a {
  color: inherit;
  text-decoration: underline;
}

@media  (max-width: 400px){
    .category-item[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 100px;
  transform: scale(1.2);
}

.category-item img {
  width: 42px;
  height: auto;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  hyphens: auto;
}
}
