/* Abschied von Filip — Gedenkseite
   Palette: Mitternachtsblau, warmes Gold/Ember, off-white Papier
*/

:root{
  --navy: #1b2a3d;
  --navy-2: #263650;
  --gold: #c9a26a;
  --gold-soft: #e4cfa8;
  --ember: #a6473c;
  --paper: #f7f4ef;
  --paper-2: #eee9e0;
  --ink: #2b2f36;
  --ink-soft: #5b6270;
  --line: #ddd5c6;
  --white: #ffffff;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body{
  padding: 0 16px;
  position: relative;
}

/* Warme, dezente Untermalung im Hintergrund der ganzen Seite */
.ambient{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 420px at 18% 0%, rgba(201,162,106,0.16), transparent 65%),
    radial-gradient(620px 480px at 85% 15%, rgba(166,71,60,0.08), transparent 60%),
    radial-gradient(700px 600px at 50% 100%, rgba(27,42,61,0.06), transparent 55%);
}

h1, h2, h3{
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
}

a{ color: var(--navy-2); }

.wrap{
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* Header */
.hero{
  padding: 56px 0 28px;
  text-align: center;
  position: relative;
}

.hero-glow{
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(201,162,106,0.30) 0%, rgba(201,162,106,0.08) 45%, transparent 72%);
  filter: blur(2px);
  z-index: 0;
}

.hero .flame{
  width: 76px;
  height: 100px;
  margin: 0 auto 22px;
  display: block;
  position: relative;
  z-index: 1;
}

@keyframes flicker{
  0%, 100% { transform: scaleY(1) scaleX(1) rotate(0deg); }
  25%      { transform: scaleY(1.03) scaleX(0.98) rotate(-0.6deg); }
  50%      { transform: scaleY(0.97) scaleX(1.02) rotate(0.4deg); }
  75%      { transform: scaleY(1.02) scaleX(0.99) rotate(-0.3deg); }
}
.flame-flicker{
  transform-origin: 50% 100%;
  animation: flicker 3.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .flame-flicker{ animation: none; }
}

.hero .eyebrow{
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero h1{
  font-size: clamp(34px, 6.5vw, 52px);
  margin: 0 0 8px;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}

.hero .dates{
  font-size: 18px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.hero .brieftitel{
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 21px;
  color: var(--navy-2);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* Photo frame */
.photo-frame{
  width: 188px;
  height: 188px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 0 0 8px rgba(201,162,106,0.10), 0 12px 30px rgba(27,42,61,0.12);
  overflow: hidden;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-caption{
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Decorative divider between sections */
.divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 24px;
}
.divider span{
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.divider span:last-child{
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Section cards */
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 0 rgba(27,42,61,0.02);
}

.tribute p{
  font-size: 17px;
  margin: 0 0 14px;
}
.tribute p:last-child{ margin-bottom: 0; }
.tribute p.lead::first-letter{
  font-family: "Cormorant Garamond", serif;
  font-size: 3.4em;
  font-weight: 700;
  color: var(--gold);
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 4px;
}

/* Timeline (Eckdaten) */
.timeline-title{
  margin-top: 0;
  margin-bottom: 22px;
}
.timeline{
  position: relative;
  padding-left: 26px;
  border-left: 2px solid var(--gold-soft);
}
.timeline-item{
  position: relative;
  padding-bottom: 20px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-dot{
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.timeline-value{
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
}

/* Condolence entries */
.section-title{
  text-align: center;
  margin-bottom: 4px;
}
.section-sub{
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 28px;
}

.entry{
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.entry:last-child{ border-bottom: none; }

.entry .avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 700;
  flex: none;
}

.entry .body{ flex: 1; min-width: 0; }

.entry .meta{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.entry .name{
  font-weight: 700;
  color: var(--navy);
}

.entry .time{
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.entry .message{
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.entry .photo{
  margin-top: 10px;
}
.entry .photo img{
  max-width: 100%;
  max-height: 360px;
  border-radius: 10px;
  display: block;
}

.empty-state{
  text-align: center;
  color: var(--ink-soft);
  padding: 24px 0;
  font-style: italic;
}

/* Kerzen */
.candles-card{
  background: linear-gradient(180deg, var(--white) 0%, #fbf8f2 100%);
}
.candle-form{
  margin-bottom: 8px;
}
.candle-choices{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}
.candle-choice{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, transform 0.1s ease;
  flex: 1 1 120px;
  max-width: 150px;
}
.candle-choice:hover{
  border-color: var(--flame-color, var(--gold));
  transform: translateY(-2px);
}

.candle-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mini-candle{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  cursor: default;
}
.mini-candle-name{
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mini-candle-date{
  font-size: 10px;
  color: var(--ink-soft);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

/* Dank-Popup nach dem Entzünden einer Kerze */
.candle-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  background: var(--navy);
  color: var(--paper);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(27,42,61,0.35);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.candle-toast.is-visible{
  opacity: 1;
  transform: translate(-50%, 0);
}
.candle-toast-text{
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.35;
}
.candle-toast-text strong{
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  color: var(--gold-soft);
}
.candle-toast-close{
  appearance: none;
  border: none;
  background: none;
  color: var(--paper);
  opacity: 0.7;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
}
.candle-toast-close:hover{ opacity: 1; }

/* Form */
.form-title{
  margin-top: 0;
}

label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 18px;
}
textarea{ min-height: 110px; resize: vertical; }

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,106,0.25);
}

.file-field{
  margin-bottom: 20px;
}
.file-field input[type="file"]{
  width: 100%;
  font-size: 14px;
  padding: 10px 0;
}
.file-hint{
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.honeypot{
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

button.submit{
  appearance: none;
  border: none;
  background: var(--navy);
  color: var(--paper);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
button.submit:hover{ background: var(--navy-2); }

.notice{
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.notice.success{
  background: #eaf3ea;
  color: #2f5233;
  border: 1px solid #cfe3cf;
}
.notice.error{
  background: #fbeaea;
  color: #7a2a2a;
  border: 1px solid #f0cccc;
}

footer{
  text-align: center;
  padding: 24px 0 56px;
  color: var(--ink-soft);
  font-size: 13px;
}
footer .quote-mark{
  font-family: "Cormorant Garamond", serif;
  font-size: 54px;
  line-height: 0.5;
  color: var(--gold-soft);
}
footer .quote{
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 19px;
  color: var(--navy-2);
  margin-bottom: 12px;
}
footer .legal{
  margin-top: 14px;
}
footer .legal a{
  color: var(--ink-soft);
  text-decoration: underline;
}
