/* Base */
:root {
  --bg:#fffefb;
  --text:#2b2b2b;
  --muted:#6f6f6f;
  --gold:#c9a227;
  --gold-2:#e2c86c;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:18px;
}

.bg {
  position: relative;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/IMG_3851.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;           /* Helligkeit/Blässe anpassen */
  pointer-events: none;
  z-index: -1;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
a.link {
  position: relative;
  padding-bottom: 2px;
  color: color-mix(in srgb, currentColor 75%, #fff);
}

a.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: currentColor;
  color: color-mix(in srgb, currentColor 75%, #fff);
  transition: width .25s ease;
}

a.link:hover::after {
  width: 100%;
  color: color-mix(in srgb, currentColor 75%, #fff);
}
img{max-width:100%;display:block}

/* Accents & Buttons */
.gold{color:var(--gold)}
.gold-grad{
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.btn{
  margin: 3px;
  display:inline-block;
  padding:.55rem .85rem;
  border-radius:999px;
  border:1px solid var(--gold);
  color:var(--text);
  transition:.25s;
  backdrop-filter:saturate(140%);
}
@media (max-width: 380px){
  .btn{
    padding:.45rem .7rem;
    font-size:.8rem;
  }
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow);
}
.btn.primary{
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:#111;
  border:none;
}

/* Navigation */
.wrap{width:min(1100px,92vw);margin:0 auto}
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.7);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding:.6rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.7rem;
  font-weight:600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand .crest{
  width:36px;
  height:36px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%,var(--gold-2),var(--gold));
  display:grid;
  place-items:center;
  color:white;
  box-shadow:0 4px 14px rgba(201,162,39,.35);
}
.nav a{
  padding:.6rem .7rem;
  border-radius:10px;
}
.nav a:hover{
  background:rgba(201,162,39,.08);
}
.links{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav .links a{
  padding: .5rem .6rem;
  font-size: 1rem;
}
@media (max-width: 520px){
  .nav{
    flex-direction: row;
    align-items: center;
  }

  .links{
    gap: 6px;
  }

  .nav .links a{
    padding: .4rem .45rem;
    font-size: .85rem;
  }
}

/* Hero */
.hero{
  position:relative;
  display:grid;
  min-height:84vh;
  place-items:center;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute;
  inset:-20% -10% auto -10%;
  height:70%;
  background:radial-gradient(80% 60% at 50% 0%,rgba(201,162,39,.15),transparent 60%);
}
.hero-inner{
  display:grid;
  gap:1.2rem;
  justify-items:center;
  text-align:center;
  padding: 2vh 0 8vh;
}
.names{
  font-family:"Playfair Display",serif;
  font-weight:700;
  font-size:clamp(2.2rem,7.5vw,5.2rem);
  line-height:1.1;
  letter-spacing:.5px;
  white-space: nowrap;
  max-width: 100%;
}
@media (max-width: 600px){
  .hero{
    min-height: 60vh;
  }

  .hero-inner{
    padding-top: 2vh;
    padding-bottom: 3vh;
  }
}
@media (max-width: 380px){
  .hero{
    min-height: 65vh;
  }
}
.date{
  font-family:"Playfair Display",serif;
  font-weight:600;
  font-size:1.25rem;
  color:var(--muted);
}
.card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
  padding:1.2rem;
}
.map-frame{
  margin-top:12px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
}

/* Countdown */
.countdown {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.8rem;
  margin-top: 0.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.time {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 1rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  text-align: center;
  line-height: 1.2;
  transition: all 0.25s ease;
}

.time strong {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.time span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* smaller on mobile */
@media (max-width: 600px) {
  .time {
    min-width: 60px;
    padding: 0.6rem 0.4rem;
  }

  .time strong {
    font-size: 1.2rem;
  }

  .countdown {
    gap: 0.5rem;
  }
}

/* larger on wide screens */
@media (min-width: 1000px) {
  .time {
    min-width: 100px;
    padding: 1.2rem 1rem;
  }

  .time strong {
    font-size: 1.8rem;
  }
}

/* Sections */
section{
  padding:64px 0;
}
@media (max-width: 600px) {
  section{
    padding:32px 0;
  }
}
.section-title{
  font-family:"Playfair Display",serif;
  font-size:2rem;
  margin:0 0 8px;
}
.section-sub{color:var(--muted);margin-top:0}
.section-title--sm{
  font-size: 1.4rem;
}

/* Schedule */
.timeline{display:grid;gap:14px;margin-top:12px}
.item{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:16px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:16px;
}
.item time{font-weight:600;color:var(--gold)}
.item h4{margin:.2rem 0 .1rem;font-size:1.05rem}
.item p{margin:.1rem 0;color:var(--muted)}

/* Layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr; /* each card takes half */
  gap: 28px;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:900px){.grid{grid-template-columns:1fr}}
.tile{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:16px;
}
.tile-content{
  margin-top:10px
}

/* Footer */
footer{
  padding:44px 0 80px;
  border-top:1px solid rgba(0,0,0,.06);
  background:linear-gradient(180deg,rgba(201,162,39,.06),transparent 40%);
}
.monogram{
  font-family:"Playfair Display",serif;
  font-weight:700;
  font-size:1.6rem;
  letter-spacing:1px;
}
.footer-style{
  display:grid;
  gap:8px;
  justify-items:center;
  text-align:center;
}
.bye{
  color:var(--muted);
}
.copyright{
  font-size:.9rem;
  color:var(--muted);
}

/* Effects */
.reveal{opacity:0;transform:translateY(10px);transition:.6s ease}
.reveal.visible{opacity:1;transform:none}
.divider{
  height:1px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  margin:28px 0;
}
@media (max-width: 600px){
  .divider{
    margin: 12px 0;   /* vorher 28px */
  }
}
@media (max-width: 380px){
  .divider{
    margin: 12px 0;
  }
}
.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;
}

.to-top-btn{
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 9999;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(198, 168, 108, 0.12);
  border: 1px solid rgba(198, 168, 108, 0.35);
  text-decoration: none;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);

  transition: opacity .25s ease, transform .25s ease, background .25s ease, border-color .25s ease;
}

.to-top-btn.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top-btn img{
  width: 14px;
  height: auto;
  opacity: .65;
}
.to-top-btn:hover{
  background: rgba(198, 168, 108, 0.18);
  border-color: rgba(198, 168, 108, 0.55);
}

.to-top-btn:hover img{
  opacity: .85;
}