/* /css/home.css */

:root{
  --red: #b91c1c;
  --text: #0f172a;
  --muted: rgba(15,23,42,.70);
  --border: rgba(15,23,42,.10);
  --shadow: 0 14px 34px rgba(15,23,42,.10);
  --radius: 16px;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

.home-container{
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* HERO */
.home-hero{
  position: relative;
  min-height: 420px;
  background: url("/img/city_pic.png") center/cover no-repeat;
  display: flex;
  align-items: center;
}
.home-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.35);
}
.home-hero__inner{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 54px 0;
}
.home-hero__title{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 950;
  letter-spacing: -0.02em;
}
.home-hero__sub{
  margin: 14px 0 0;
  color: rgba(15,23,42,.75);
  line-height: 1.55;
}
.home-hero__actions{
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn__ic{
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.btn--primary{
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(185,28,28,.25);
}
.btn--ghost{
  background: rgba(255,255,255,.85);
  color: var(--text);
  border-color: rgba(15,23,42,.15);
}

/* FEATURES */
.home-features{

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.feature{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  padding: 18px 16px;
  text-align: center;
}

.feature__ic{
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: rgba(15,23,42,.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__ic img{
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.feature h3{
  margin: 0;
  font-size: 14px;
  font-weight: 950;
}
.feature p{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* SECTION HEAD */
.section-head{
  text-align: center;
  padding: 54px 0 18px;
}
.section-head h2{
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 950;
}
.section-head p{
  margin: 10px 0 0;
  color: var(--muted);
}

/* LOCATIONS */
.locations-grid{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 50px;
}
.map-card, .why-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map-card__img{
  width: 100%;
  height: auto;
  display: block;
}
.why-card{
  margin-top: 14px;
  padding: 18px;
}
.why-card h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
}
.why-icons{
  display: flex;
  gap: 10px;
  margin: 10px 0 12px;
}
.why-icons img{
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.why-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 13px;
}

/* Right cards */
.locations-right{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.loc-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.loc-card img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.loc-card__body{
  padding: 14px 14px 16px;
}
.loc-card__body h3{
  margin: 0;
  font-size: 16px;
  font-weight: 950;
}
.loc-card__body p{
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.loc-btn{
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(185,28,28,.10);
  color: var(--red);
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(185,28,28,.15);
}

/* CTA DARK */
.home-cta{
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.home-cta__bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,23,42,.70) 0%, rgba(15,23,42,.45) 55%, rgba(15,23,42,.35) 100%),
    url("/img/home/cta-bg.jpg") center/cover no-repeat;
}
.home-cta__inner{
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}
.cta-left h2{
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 950;
}
.stars{
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: #ffd166;
}
.cta-right{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  opacity: .95;
}



/* Standort-Modal */
.tw-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.tw-modal.is-open{
  display: block;
}

.tw-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
}

.tw-modal__panel{
  position: relative;
  width: min(720px, calc(100% - 28px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15,23,42,0.35);
  padding: 22px 22px 20px;
}

.tw-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(15,23,42,0.06);
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}

.tw-modal__title{
  margin: 4px 48px 6px 0;
  font-size: 22px;
  font-weight: 900;
}

.tw-modal__subtitle{
  margin: 0 0 16px;
  color: rgba(15,23,42,0.7);
  font-size: 14px;
}

.tw-modal__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tw-modal__card{
  display: block;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  padding: 14px 14px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
}

.tw-modal__card:hover{
  border-color: rgba(185,28,28,0.35);
  box-shadow: 0 10px 24px rgba(15,23,42,0.10);
}

.tw-modal__city{
  font-weight: 900;
  font-size: 16px;
}

.tw-modal__desc{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15,23,42,0.7);
}

@media (max-width: 640px){
  .tw-modal__grid{ grid-template-columns: 1fr; }
  .tw-modal__panel{ margin-top: 6vh; }
}



/* ========= Standort Modal (Design-Style) ========= */
.tw-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.tw-modal.is-open{ display:block; }

.tw-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
}

.tw-modal__panel{
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 7vh auto 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(15,23,42,.35);
  overflow: hidden;
}

.tw-modal__head{
  padding: 22px 22px 8px;
}

.tw-modal__title{
  margin: 0 56px 6px 0;
  font-size: 26px;
  font-weight: 900;
}
.tw-modal__subtitle{
  margin: 0;
  color: rgba(15,23,42,.70);
  font-size: 14px;
  line-height: 1.5;
}

.tw-modal__close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}
.tw-modal__close:hover{ background: rgba(15,23,42,.10); }

.tw-locs{
  padding: 14px 22px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Karte */
.tw-loc{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tw-loc:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(15,23,42,.12);
  border-color: rgba(185,28,28,.25);
}

.tw-loc__img{
  height: 120px;
  background: #f3f4f6;
}
.tw-loc__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.tw-loc__body{
  padding: 14px 14px 16px;
}

.tw-loc__city{
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 4px;
}
.tw-loc__area{
  color: rgba(15,23,42,.70);
  font-size: 13px;
  margin-bottom: 12px;
}

/* roter Button */
.tw-loc__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #b91c1c;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 12px 26px rgba(185,28,28,.22);
}
.tw-loc__btn:hover{
  filter: brightness(0.96);
}

@media (max-width: 760px){
  .tw-locs{ grid-template-columns: 1fr; }
  .tw-modal__panel{ margin-top: 5vh; }
}





/* Responsive */
@media (max-width: 1100px){
  .home-features{ grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .locations-grid{ grid-template-columns: 1fr; }
  .locations-right{ grid-template-columns: 1fr; }
  .home-cta__inner{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .home-features{ grid-template-columns: 1fr; }
  .home-hero{ min-height: 360px; }
}