/* ===================================================================
   THOMAS KRAMER — DIGITALES MAUSOLEUM
   Shared Stylesheet für alle Seiten
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700&family=Inter:wght@400;500;600;700;800&family=Special+Elite&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #ffffff;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
}

body {
  padding: 50px 20px 80px;
}

/* ===================================================================
   HEADER (auf allen Seiten oben — nutzt header.png)
   =================================================================== */
.site-header {
  display: block;
  text-align: center;
  margin: 0 auto 50px;
  text-decoration: none;
  cursor: pointer;
  animation: fadeDown 0.9s ease-out;
}

.site-header img {
  display: inline-block;
  max-width: 680px;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.site-header:hover img {
  transform: scale(1.02);
  opacity: 0.93;
}

/* ===================================================================
   BACK BUTTON (auf Unterseiten)
   =================================================================== */
.back-btn {
  position: fixed;
  top: 30px;
  left: 30px;
  background: #fdfaf2;
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  z-index: 100;
  transform: rotate(-2deg);
}

.back-btn::before {
  content: "← ";
  margin-right: 4px;
}

.back-btn:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

/* Pin oben am Back-Button */
.back-btn::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #e6b85c 0%, #b8842a 50%, #6a4810 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* ===================================================================
   SEITEN-CONTAINER
   =================================================================== */
.page {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.page-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 64px;
  margin-bottom: 16px;
  animation: fadeDown 1s ease-out 0.2s both;
}

.page-subtitle {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 60px;
  font-weight: 500;
  animation: fadeDown 1s ease-out 0.4s both;
}

/* ===================================================================
   POLAROID / KARTEN-BASIS
   =================================================================== */
.polaroid-card {
  background: #fdfaf2;
  padding: 14px 14px 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  text-align: center;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.polaroid-card .pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, #e6b85c 0%, #b8842a 50%, #6a4810 100%);
  border-radius: 50%;
  box-shadow: 0 3px 5px rgba(0,0,0,0.4), inset -2px -2px 3px rgba(0,0,0,0.3);
  z-index: 5;
}

.polaroid-card .pin.red {
  background: radial-gradient(circle at 30% 30%, #ff6464 0%, #c41e1e 50%, #6a0a0a 100%);
}

/* ===================================================================
   ANIMATIONEN
   =================================================================== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pinDrop {
  0%   { opacity: 0; transform: translate(-50%, -80px) scale(0.5); }
  60%  { opacity: 1; transform: translate(-50%, 4px)  scale(1.1); }
  100% { opacity: 1; transform: translate(-50%, 0)    scale(1); }
}

@keyframes cardLand {
  0%   { opacity: 0; transform: translateY(-50px) rotate(var(--final-rotate, 0deg)) scale(0.9); }
  100% { opacity: 1; transform: translateY(0)     rotate(var(--final-rotate, 0deg)) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--final-rotate, 0deg)); }
  50%      { transform: translateY(-6px) rotate(var(--final-rotate, 0deg)); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-2deg); }
  75%      { transform: rotate(2deg); }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  .site-header h1 { font-size: 38px; }
  .site-header .subtitle { font-size: 13px; letter-spacing: 5px; }
  .page-title { font-size: 44px; }
  .back-btn { top: 15px; left: 15px; padding: 10px 16px; font-size: 11px; }
}

@media (max-width: 600px) {
  body { padding: 70px 15px 60px; }
  .site-header { flex-direction: column; gap: 12px; margin-bottom: 40px; }
  .page-title { font-size: 34px; }
  .page-subtitle { font-size: 11px; letter-spacing: 2px; margin-bottom: 40px; }
}


/* =========================================================
   GLOBAL MOBILE FINISH — Unterseiten
   ========================================================= */
@media (max-width: 760px) {
  html { scroll-behavior: smooth; }
  body {
    padding: 18px 12px 54px;
    background:
      radial-gradient(circle at 50% 0%, rgba(200,152,88,.16), transparent 34%),
      linear-gradient(180deg, #fffaf0 0%, #ffffff 52%, #fffaf0 100%);
  }
  .site-header {
    margin: 8px auto 26px;
    padding: 6px 8px;
    background: rgba(255,255,255,.92);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .site-header img { max-width: 94vw; }
  .back-btn {
    position: sticky;
    top: 10px;
    left: auto;
    display: inline-block;
    margin: 0 0 14px 0;
    padding: 10px 14px;
    border-radius: 999px;
    transform: none;
    font-size: 10px;
    letter-spacing: 1.3px;
    background: rgba(26,26,26,.92);
    color: #f7d991;
    border-color: rgba(200,152,88,.7);
    backdrop-filter: blur(10px);
  }
  .back-btn::after { display: none; }
  .page { max-width: 100%; }
  .page-title {
    font-size: clamp(34px, 11vw, 48px);
    line-height: .96;
    margin-bottom: 10px;
  }
  .page-subtitle {
    max-width: 92vw;
    margin: 0 auto 34px;
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.45;
  }
  img { max-width: 100%; height: auto; }
  input, textarea, button { font-size: 16px; }
}

@media (max-width: 430px) {
  body { padding-left: 10px; padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
