/* ============================================
   VUPS – Verbessertes Frontend (site-v2)
   Palliativstation Klinikum Steyr
   ============================================ */

:root {
  /* Farben – warm, würdevoll, zugänglich */
  --violet:        #5a3e8a;
  --violet-dark:   #3d2a63;
  --violet-light:  #7a5aa8;
  --orange:        #ef7d2e;
  --orange-dark:   #d9641a;
  --teal:          #2f9d86;
  --teal-dark:     #247a68;
  --pink:          #e0559a;
  --blue:          #3f9dd6;
  --petrol:        #155f82;
  --petrol-dark:   #0f4763;

  /* Neutrale Farben */
  --ink:           #2b2440;
  --ink-light:     #463d5e;
  --muted:         #6c6480;
  --muted-light:   #9b94aa;
  --line:          #e9e2f0;
  --line-dark:     #d4cbdf;
  --cream:         #fdf8f1;
  --cream-dark:    #f5ede3;
  --card:          #ffffff;

  /* Schatten */
  --shadow-sm:     0 2px 8px rgba(61, 42, 99, 0.06);
  --shadow:        0 8px 30px rgba(61, 42, 99, 0.10);
  --shadow-lg:     0 18px 50px rgba(61, 42, 99, 0.14);
  --shadow-orange: 0 12px 30px rgba(217, 100, 26, 0.30);

  /* Abstände */
  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      1.5rem;
  --space-lg:      2.5rem;
  --space-xl:      4rem;
  --space-2xl:     6rem;

  /* Border-Radius */
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     24px;

  /* Übergänge */
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basis */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(1200px 600px at 80% -5%, rgba(239, 125, 46, 0.06) 0%, transparent 60%),
    radial-gradient(1000px 500px at 10% 15%, rgba(95, 62, 138, 0.05) 0%, transparent 55%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet);
  transition: color var(--transition);
}

a:hover {
  color: var(--orange);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Typografie */
h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
  color: var(--violet-dark);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--violet-dark);
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-light);
  max-width: 62ch;
  line-height: 1.65;
}

/* Layout-Hilfen */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.section-padding {
  padding: var(--space-2xl) 0;
}

.section-padding-sm {
  padding: var(--space-xl) 0;
}

/* Skip-Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(233, 226, 240, 0.8);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--violet-dark);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  transition: transform var(--transition);
}

.logo:hover img {
  transform: scale(1.03);
}

.logo span {
  max-width: 260px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--violet-dark);
  background: rgba(90, 62, 138, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark)) !important;
  color: #fff !important;
  box-shadow: var(--shadow-orange);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(217, 100, 26, 0.38);
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--violet-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 800px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 2rem;
    gap: 0.75rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-slow), opacity var(--transition), visibility var(--transition);
  }

  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    font-size: 1.25rem;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .logo span {
    display: none;
  }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/terrasse.jpg") center center / cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded::before {
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 28, 64, 0.35) 0%, rgba(44, 28, 64, 0.25) 40%, rgba(21, 35, 48, 0.82) 100%),
    radial-gradient(ellipse at bottom, rgba(21, 95, 130, 0.35), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 700px;
}

.hero-logo {
  height: clamp(90px, 14vw, 140px);
  width: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 4px 20px rgba(20, 12, 35, 0.55));
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(90, 62, 138, 0.85);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(45, 30, 70, 0.35);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  text-shadow: 0 3px 25px rgba(30, 18, 50, 0.45);
  margin-bottom: 0.4em;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 54ch;
  margin: 0 0 2rem;
  text-shadow: 0 2px 12px rgba(30, 18, 50, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 32px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(217, 100, 26, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-large {
  font-size: 1.15rem;
  padding: 18px 40px;
}

/* ============================================
   CTA-BANNER
   ============================================ */

.cta-banner-section {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  color: #fff;
  padding: 2.5rem 0;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.cta-banner p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 48ch;
}

.cta-banner .btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner .btn {
    width: 100%;
  }
}

/* ============================================
   SECTIONS
   ============================================ */

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.accent-line {
  height: 5px;
  width: 70px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--violet), var(--teal), var(--blue));
}

.section-header.centered .accent-line {
  margin-left: auto;
  margin-right: auto;
}

/* Verein-Section */
.verein-section {
  background: linear-gradient(160deg, var(--petrol) 0%, var(--petrol-dark) 100%);
  color: #eaf6fb;
  position: relative;
  overflow: hidden;
}

.verein-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.verein-section h2 {
  color: #bce6f0;
}

.verein-section .lead {
  color: rgba(234, 246, 251, 0.92);
  max-width: 76ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* ============================================
   CARDS
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 100%);
}

.card-thumb svg {
  width: 78px;
  height: 78px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.dank {
  font-size: 1.08rem;
  color: var(--ink-light);
  max-width: 78ch;
  margin: 2.5rem auto 0;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    flex-direction: row;
    align-items: stretch;
  }

  .card-thumb {
    width: 140px;
    height: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 560px) {
  .card {
    flex-direction: column;
  }

  .card-thumb {
    width: 100%;
    height: 160px;
  }
}

/* ============================================
   SPENDEN-SEITE
   ============================================ */

.pagehead {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.donate-section {
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(239, 125, 46, 0.08), transparent 55%),
    linear-gradient(180deg, #fff3e8 0%, #fbeef4 55%, #f2ecfb 100%);
}

.give {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: stretch;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.4rem;
}

.panel h3 .tag {
  font-size: 1.5rem;
  line-height: 1;
}

.panel-intro {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

/* Betrags-Vorschläge */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.amount-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.5rem;
  border: 2px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--violet-dark);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--orange);
  background: rgba(239, 125, 46, 0.06);
  color: var(--orange-dark);
}

.field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0;
  background: #fbfaff;
}

.field .lab {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.field .val {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  word-break: break-all;
  color: var(--ink);
}

.copy {
  background: var(--violet);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.copy:hover {
  background: var(--violet-dark);
}

.copy:active {
  transform: scale(0.96);
}

.copy.done {
  background: var(--teal);
}

.qrrow {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.qrrow img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 6px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.qrrow p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.paypal-note {
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

.paypal-cards {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 1.25rem;
}

.paypal-btn {
  margin-top: auto;
}

.paypal-btn button {
  width: 100%;
  justify-content: center;
  background: #ffc439;
  color: #111c3f;
  padding: 16px 24px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: filter var(--transition), transform var(--transition);
}

.paypal-btn button:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.pp {
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
}

.sub {
  color: #1a2a6b;
  font-weight: 600;
}

@media (max-width: 800px) {
  .give {
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .qrrow {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   IMPRESSUM / DOKUMENT
   ============================================ */

.doc-page {
  padding-bottom: var(--space-2xl);
}

.doc {
  max-width: 820px;
}

.doc h1 {
  color: var(--violet-dark);
  margin: 0.2em 0 0.6em;
}

.doc h2 {
  font-size: 1.15rem;
  color: var(--violet-dark);
  margin: 2em 0 0.5em;
}

.doc p {
  color: var(--ink-light);
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.backlink:hover {
  text-decoration: underline;
}

.note {
  background: #fff6ea;
  border: 1px solid #f0d9b8;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: #7a5a2a;
  margin: 0 0 1.5em;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(160deg, #4c3679 0%, var(--violet-dark) 100%);
  color: #ece5f6;
  padding: 4rem 0 2.5rem;
}

footer .accent-line {
  margin-bottom: 1.5rem;
}

footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

footer a {
  color: #f0d9c4;
}

footer a:hover {
  color: #fff;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

footer p {
  font-size: 0.95rem;
  color: #d5cbe6;
  margin: 0 0 0.5em;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #b6aacd;
}

@media (max-width: 640px) {
  .fgrid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   ANIMATIONEN
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Reduzierte Bewegung beachten */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
