:root {
  --serif: 'Playfair Display', serif;
  --script: 'Dancing Script', cursive;
  --sans: 'Montserrat', sans-serif;
  --white: #fff;
  --black: #212121;
  --trans: rgba(255,255,255,0.7);
}
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body {
  background: url('hintergrund.gif') center center/cover no-repeat fixed;
}
@media (max-width: 900px) {
  body {
    background: url('hintergrund.gif') center center/cover no-repeat scroll !important;
  }
}


/* Hintergrund-GIF als Bild */
.bg-gif {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.92;
  pointer-events: none;
}

/* Header / Tabs / Sprachwahl */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(255,255,255,0.91);
  padding: 0.5rem 2vw 0.5rem 2vw;
  position: fixed;
  z-index: 1002;
  top: 0; left: 0;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  flex-shrink: 1;
  overflow-x: auto;
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  background: none;
  border: none;
  margin-bottom: 0.1rem;
  align-items: center;
  padding: 0;
}

.tab-link {
  background: none;
  border: none;
  outline: none;
  color: #31251a;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.09rem;
  letter-spacing: 0.07em;
  padding: 0.09rem 0.2rem 0.05rem 0.2rem;
  margin: 0 0.02rem;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.7,0,.4,1);
  position: relative;
}

.tab-link::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: -0.22em;
  width: 0%;
  height: 2px;
  background: #b9a376;
  transition: width 0.24s cubic-bezier(.77,0,.18,1);
  border-radius: 1px;
}

.tab-link.active,
.tab-link:hover {
  color: #b09a6a;
  background: none;
}

.tab-link.active::after,
.tab-link:hover::after {
  width: 50%;
}

@media (max-width: 900px) {
  .tab-nav { font-size: 0.99rem; gap: 0.55rem; }
  .tab-link { font-size: 0.93rem; }
}
@media (max-width: 600px) {
  .tab-nav { font-size: 0.87rem; gap: 0.26rem; }
  .tab-link { font-size: 0.83rem; }
}


/* Abstand unter dem Header */
body { padding-top: 72px; font-family: var(--serif); color: #212121; min-height: 100vh; margin:0; }

.hochzeits-banner {
  width: 100vw;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 72px;
  padding-bottom: 28px;
  position: relative;
  z-index: 2;
}

.banner-img-frame {
  background: rgba(255,255,255,0.85); /* halbtransparenter weißer Hintergrund */
  border-radius: 24px;
  box-shadow: 0 6px 40px 0 rgba(50,30,0,0.10);
  padding: 18px 20px 10px 20px;
  margin-bottom: -22px;
  max-width: 540px;
}

.banner-img {
  max-width: 490px;
  width: 90vw;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: grayscale(1);
  opacity: 0.97;
  border-radius: 18px;
}

.banner-title-overlay {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  padding: 0.7rem 0.6rem 0.6rem 0.6rem;
  background: rgba(255,255,255,0.93);
  border-radius: 13px;
  box-shadow: 0 2px 18px 0 rgba(140,130,100,0.09);
  text-align: center;
  position: relative;
  top: -8px;
}
.banner-names {
  font-family: 'Playfair Display', serif;
  font-size: 2.0rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin-bottom: 0.24rem;
  color: #31251a;
}
.banner-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: #6c6355;
}
.hochzeits-banner::before {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(32,32,32,0.22) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  border-radius: 0 0 44px 44px;
  pointer-events: none;
}

@media (max-width: 650px) {
  .banner-img-frame { max-width: 98vw; padding: 7px 4vw; }
  .banner-img { max-width: 97vw; }
  .banner-title-overlay { max-width: 97vw; padding: 0.33rem 0.13rem;}
  .banner-names { font-size: 1.23rem; }
  .hochzeits-banner { padding-top: 34px; }
}




.invitation-message {
  width: 100%;
  background: rgba(255,255,255,0.66);
  display: flex;
  justify-content: center;
  padding: 1.5rem 0.6rem 1.2rem 0.6rem;
}
.invitation-message-text {
  max-width: 640px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  color: #3d3022;
  text-align: center;
  border-radius: 15px;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background: rgba(255,255,255,0.19);
  box-shadow: 0 2px 16px rgba(180,160,120,0.06);
  padding: 1.2rem 1.1rem 1.2rem 1.1rem;
}


/* TIMELINE */
.timeline-section {
  max-width: 550px;
  margin: 40px auto;
  padding: 0 20px;
}
.timeline-graphic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
  position: relative;
}
.timeline-icon {
  width: 36px;
  height: 36px;
  margin-right: 24px;
  opacity: 0.88;
}
.timeline-time {
  font-weight: 600;
  font-size: 18px;
  color: #2c3700;
}
.timeline-title {
  font-size: 18px;
  color: #495814;
  margin-left: 3px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .timeline-section {
    max-width: 100%;
    padding: 0 6vw;
  }
  .timeline-time, .timeline-title { font-size: 16px;}
}



/* LOCATION & TREPPEN-BILD */
.location-section {
  background:rgba(255,255,255,0.83);
  padding:4rem 1.2rem;
  width: 100%;
}
.location-content {
  max-width:1100px;
  margin:0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-items: center;
}
.location-text {
  width: 100%;
  max-width: 860px;
  text-align: center;
  margin-bottom: 1.7rem;
}
.location-row {
  display: flex;
  flex-direction: row;
  gap: 2.3rem;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}
#map {
  width: 100%;
  max-width: 400px;
  min-width: 160px;
  height: 320px;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(31,38,135,0.06);
  background: #e6e6e6;
  margin: 0 auto;
}


@media (max-width: 900px) {
  #map {
    min-width: 0;
    max-width: 98vw;
    height: 220px;
  }

}
.goetztreppe-img {
  width: 100%;
  max-width: 390px;
  border-radius: 19px;
  box-shadow: 0 4px 32px rgba(60,60,60,0.09);
  margin-top: 0;
  object-fit: cover;
  flex: 1 1 0;
}
@media (max-width: 900px) {
  .location-row { flex-direction: column; gap: 1.1rem; }
  #map, .goetztreppe-img { max-width: 98vw; height: 220px; }
}



/* FAQ */
.faq-section {
  background: rgba(255,255,255,0.7);
  padding:4rem 1.2rem;
}

.faq-content {
  max-width:700px;
  margin:0 auto;
}

.faq-content h2 {
  font-family:'Playfair Display',serif;
  font-size:2.1rem;
  font-weight:600;
  text-align:center;
  margin-bottom:2rem;
  letter-spacing:0.07em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 1.19rem;
  background: none;
  border: none;
  outline: none;
  color: #212121;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: color 0.18s;
  position: relative;
  box-shadow: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0.7rem; top: 1.05rem;
  font-size: 1.5rem;
  color: #bbb;
  transition: transform 0.22s cubic-bezier(.7,0,.2,1);
}

.faq-item.active .faq-question::after {
  content: "–";
  transform: rotate(90deg);
  color: #b6a16a;
}

.faq-answer {
  background: rgba(255,255,255,0.65) !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 12px !important;
  color: #484848 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.04rem !important;
  padding: 0 1.08rem !important;
  margin-top: 0.2rem !important;
  font-weight: 400 !important;
  transition: max-height 0.23s cubic-bezier(.55,0,.1,1), background 0.15s;
}
.faq-item.active .faq-answer {
  max-height: 320px !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.7rem !important;
  background: rgba(255,255,255,0.83) !important;
}



/* RSVP */
.rsvp-section {
  background:rgba(255,255,255,0.83);
  padding:4rem 1.2rem;
}
.rsvp-content {
  max-width:540px;
  margin:0 auto;
}
.rsvp-content h2 {
  font-family:'Playfair Display',serif;
  font-size:2.1rem;
  font-weight:600;
  text-align:center;
  margin-bottom:2.2rem;
  letter-spacing:0.07em;
}
.rsvp-row {
  display:flex;
  gap:1rem;
  margin-bottom:1.05rem;
}
.rsvp-row input,
.rsvp-row select {
  flex:1;
  padding:0.7rem 1rem;
  font-size:1.08rem;
  border-radius:8px;
  border:1px solid #bbb;
  font-family:'Montserrat',sans-serif;
}
.rsvp-content textarea {
  width:100%;
  padding:0.8rem 1rem;
  font-size:1.08rem;
  border-radius:8px;
  border:1px solid #bbb;
  font-family:'Montserrat',sans-serif;
  resize:vertical;
  margin-bottom:1rem;
}
.rsvp-hint {
  font-size:0.97rem;
  color:#888;
  margin-bottom:0.5rem;
}
.rsvp-privacy {
  font-size:1rem;
  display:flex;
  align-items:center;
  gap:0.6rem;
  margin-top:1rem;
}
.rsvp-content button[type="submit"] {
  margin-top:1.1rem;
  background:#222;
  color:#fff;
  font-family:'Playfair Display',serif;
  font-size:1.15rem;
  padding:0.8rem 0;
  border:none;
  border-radius:9px;
  cursor:pointer;
  transition:background 0.2s;
}
.rsvp-content button[type="submit"]:hover {
  background:#555;
}
@media (max-width: 700px) {
  .rsvp-content, .rsvp-section {
    max-width: 100vw !important;
    width: 100vw !important;
    box-sizing: border-box !important;
    padding: 0.5rem 2vw !important;
  }
  .rsvp-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .rsvp-row input,
  .rsvp-row select,
  .rsvp-content textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
    padding: 0.54rem 0.7rem !important;
  }
}


/* Modal */
.modal {
  display:none;
  position:fixed;
  top:0;left:0;width:100vw;height:100vh;
  background:rgba(40,40,40,0.43);
  z-index:9999;
  align-items:center;
  justify-content:center;
}
.modal-content {
  background:#fff;
  padding:2.3rem 2.1rem;
  border-radius:16px;
  max-width:410px;
  box-shadow:0 2px 24px rgba(60,60,60,0.10);
  font-family:'Montserrat',sans-serif;
  position:relative;
  text-align:center;
}
.modal-content h3 {
  font-family:'Playfair Display',serif;
  font-size:1.35rem;
  font-weight:700;
  margin-bottom:1.1rem;
}
.modal-close {
  position:absolute;top:1rem;right:1rem;
  font-size:1.3rem;
  background:none;
  border:none;
  cursor:pointer;
}

/* Kontakt */
.contact-section {
  background:rgba(255,255,255,0.7);
  padding:3rem 1.2rem 2.2rem 1.2rem;
}
.contact-content {
  max-width:500px;
  margin:0 auto;
  text-align:center;
}
.contact-content h2 {
  font-family:'Playfair Display',serif;
  font-size:1.7rem;
  font-weight:600;
  margin-bottom:1.3rem;
  letter-spacing:0.07em;
}
.contact-content div {
  font-size:1.13rem;
  line-height:2;
  font-family:'Montserrat',sans-serif;
  color:#444;
}
.contact-content a {
  color:#444;
  text-decoration:underline;
}


button,
input[type="submit"],
.rsvp-content button[type="submit"] {
  background: #222 !important;
  color: #fff !important;
  border: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  border-radius: 9px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 12px rgba(31,38,135,0.07);
}
button:hover,
input[type="submit"]:hover {
  background: #444 !important;
}

.faq-question {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #212121 !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.13rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  padding: 1.03rem 0 0.6rem 0 !important;
  border-bottom: 1px solid #ececec !important;
  margin: 0 !important;
  letter-spacing: 0.02em !important;
  transition: color 0.18s;
  outline: none !important;
  cursor: pointer;
}
.faq-question:focus {
  outline: none !important;
}
.faq-answer {
  max-height: 0 !important;
  overflow: visible !important;
  background: rgba(255,255,255,0.65) !important;
  border-radius: 12px !important;
  color: #484848 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.04rem !important;
  padding: 0 1.08rem !important;   /* Nur links und rechts, oben/unten = 0 */
  margin-top: 0.2rem !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  border: none !important;
  transition: max-height 0.23s cubic-bezier(.55,0,.1,1), background 0.15s, padding 0.2s;
}

/* NUR wenn das FAQ-Item aktiv ist, kommt die Antwort sichtbar darunter: */
.faq-item.active .faq-answer {
  max-height: 1000px !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.7rem !important;
  background: rgba(255,255,255,0.83) !important;
}
.faq-question {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #212121 !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.13rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  padding: 1.03rem 0 0.6rem 0 !important;
  border-bottom: 1px solid #ececec !important;
  margin: 0 !important;
  letter-spacing: 0.02em !important;
  transition: color 0.18s;
  outline: none !important;
  cursor: pointer;
}

.faq-question:focus {
  outline: none !important;
}
.faq-question:hover {
  color: #b9a376 !important; /* Auf Wunsch: zarter Goldton beim Hover */
  background: none !important;
}

@media (max-width: 650px) {
  #lang-switch .lang-btn {
    font-size: 0.78rem !important;
    padding: 0.09rem 0.33rem !important;
    min-width: 26px !important;
    border-radius: 5px !important;
  }
}

section, .banner, .timeline-section, .faq-section, .rsvp-section, .contact-section {
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}


/* Passwort-Gate */
.passgate {
  position: fixed;
  inset: 0;
  display: none;              /* via JS auf .show gesetzt */
  align-items: center;
  justify-content: center;
  background: rgba(20,20,20,0.35);
  backdrop-filter: blur(6px);
  z-index: 10000;
}
.passgate.show { display: flex; }

.passcard {
  width: min(92vw, 460px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 1.6rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}
.passcard h2 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 .35rem 0;
  font-size: 1.6rem;
}
.passcard p {
  margin: 0 0 1rem 0;
  color: #444;
}

.passrow {
  display: flex;
  gap: .6rem;
  margin-bottom: .65rem;
}
#pass-input {
  flex: 1;
  padding: .75rem .9rem;
  border: 1px solid #cfcfcf;
  border-radius: 9px;
  font-size: 1rem;
}
#pass-btn {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: .75rem 1rem;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}
#pass-btn:hover { background: #444; }

.pass-error {
  min-height: 1.2em;
  color: #b00020;
  font-size: .95rem;
  margin-bottom: .25rem;
}
.passhint { color:#777; }

body.locked { overflow: hidden; }

/* kleines Shake bei falschem PW */
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}
.passcard.shake { animation: shake .35s; }


