/* ===================================================
   340 Jahre Ursulinen in Graz – Stylesheet
   =================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:      #4a7d8c;
  --purple-dark: #1a3540;
  --purple-light:#6898a8;
  --gold:        #6898a8;
  --gold-light:  #edf2f4;
  --warm:        #dce6ea;
  --white:       #edf2f4;
  --text:        #1e2e36;
  --text-muted:  #3a5060;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(26,46,62,.14);
  --transition:  .3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: sans-serif;
  color: var(--text);
  background: #d0dde2;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- TOP NAV ---------- */
.top-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
}

.nav-logo {
  color: var(--white);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: .05em;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Logo in der Nav */
.nav-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.4));
}
@media (max-width: 480px) {
  .nav-logo-img { height: 34px; max-width: 160px; }
}

.nav-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-menu-btn span {
  display: block;
  width: 26px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- NAV DRAWER ---------- */
.nav-drawer {
  position: fixed;
  top: 0; right: -280px;
  width: 260px; height: 100%;
  background: #1a3540;
  z-index: 100;
  padding: 2rem 1.5rem;
  transition: right var(--transition);
  box-shadow: -4px 0 20px rgba(0,0,0,.3);
}
.nav-drawer.open { right: 0; }
.nav-drawer ul { margin-top: 2.5rem; }
.nav-drawer ul li { margin-bottom: 1.4rem; }
.nav-drawer ul li a {
  color: var(--white);
  font-size: 1.1rem;
  opacity: .9;
  transition: opacity var(--transition);
}
.nav-drawer ul li a:hover { opacity: 1; color: #e8ddd0; }

.drawer-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--white); font-size: 1.4rem;
  cursor: pointer; opacity: .8;
}
.drawer-close:hover { opacity: 1; }

.nav-drawer-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99;
}
.nav-drawer-backdrop.open { display: block; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a3540;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(232,221,208,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(245,245,245,.06) 0%, transparent 50%);
  pointer-events: none;
}

/* decorative cross pattern */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 50px solid rgba(232,221,208,.12);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero-subtitle {
  color: #f0e0cc;
  font-size: .9rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  color: #faf4ec;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  color: rgba(250,244,236,.9);
  font-size: clamp(.95rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 2.2rem;
}

.hero-title-image {
  margin: 1.5rem auto;
  max-width: 400px;
  text-align: center;
}
.hero-title-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  border: 3px solid rgba(255,255,255,.15);
}
.hero-btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  background: #1a3540;
  color: #edf2f4;
  font-size: 1rem;
  font-weight: bold;
  font-family: inherit;
  border-radius: 50px;
  letter-spacing: .04em;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(26,53,64,.3);
}
.hero-btn:hover, .hero-btn:focus {
  background: #2a4550;
  transform: translateY(-2px);
}
.install-btn {
  display: inline-block;
  margin-top: .8rem;
  padding: .65rem 1.8rem;
  background: transparent;
  color: #edf2f4;
  font-size: .95rem;
  font-weight: bold;
  font-family: inherit;
  border: 2px solid rgba(237,242,244,.5);
  border-radius: 50px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.install-btn:hover { background: rgba(237,242,244,.15); border-color: #edf2f4; }
.ios-hint {
  margin-top: .8rem;
  font-size: .8rem;
  color: rgba(237,242,244,.85);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(237,242,244,.25);
  border-radius: 10px;
  padding: .6rem 1rem;
  max-width: 280px;
  line-height: 1.5;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  z-index: 2;
  color: rgba(242,237,230,.5);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section-light  { background: var(--white); }
.section-dark   { background: #1a3540; }
.section-warm   { background: #f0e0cc; }
.section-purple { background: linear-gradient(135deg, #1a3540, #1a3540); }

.section-badge {
  display: inline-block;
  background: #4a7d8c;
  color: #edf2f4;
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.badge-light { background: rgba(255,255,255,.15); color: #edf2f4; }
.badge-dark  { background: rgba(26,53,64,.12); color: #1a3540; }
.badge-gold  { background: #4a7d8c; color: #edf2f4; }

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #1a2e3e;
}
.title-light { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
}
.title-image {
  margin-bottom: 2.5rem;
  text-align: center;
}
.title-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.text-light { color: rgba(232,248,248,.88); }
.text-justify { 
  text-align: justify; 
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

/* ---------- CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-4px); }

.card-accent {
  border-top: 4px solid #4a7d8c;
}

.card-station {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.card-station-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  padding: 1.5rem;
  user-select: none;
}
.accordion-arrow {
  margin-left: auto;
  font-size: 1rem;
  color: #4a7d8c;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.card-station.open .accordion-arrow {
  transform: rotate(180deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card-station.open .accordion-body {
  max-height: 600px;
  padding: 0 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.accordion-body p:not(.station-alt) {
  margin-bottom: 1.2rem;
  align-self: stretch;
  text-align: left;
}
.accordion-body p.text-justify {
  text-align: justify !important;
}
.station-image {
  text-align: center;
  margin-bottom: 1rem;
}
.station-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.station-preview-image {
  margin-top: .5rem;
  text-align: center;
}
.station-preview-image img {
  max-width: 80px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: transform var(--transition), box-shadow var(--transition);
}
.station-preview-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.podcast-icon {
  font-size: 2rem;
  display: block;
  text-align: center;
  margin-bottom: .4rem;
}
.qr-result {
  font-size: .75rem;
  text-align: center;
  align-self: center;
  margin-top: .5rem;
  word-break: break-all;
}
.qr-result a {
  color: #4a7d8c;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.qr-result a:hover {
  text-decoration: underline;
}
.station-audio {
  width: 100%;
  margin-top: .6rem;
  align-self: stretch;
  display: none;
}
.station-audio.visible {
  display: block;
}
.station-alt {
  margin-top: .6rem;
  font-size: .45rem;
  color: var(--text-muted);
  text-align: center;
  align-self: center;
}
.station-alt a {
  color: #4a7d8c;
  text-decoration: none;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition), opacity var(--transition);
}
.station-alt a:hover {
  color: #2e5c6a;
  opacity: .8;
  text-decoration: underline;
}
.qr-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1.5px solid #4a7d8c;
  color: #4a7d8c;
  border-radius: 8px;
  padding: .4rem .9rem;
  font-size: .85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  margin: 0 auto;
}
.qr-btn:hover { background: #4a7d8c; color: #edf2f4; }
.station-number {
  font-weight: 900;
  line-height: 1;
  color: #4a7d8c;
  flex-shrink: 0;
  font-size: calc(1.15rem * 1.4 * 2);
  display: flex;
  align-items: center;
}
.station-text h3 {
  font-size: 1.15rem;
  color: #1e2e36;
  line-height: 1.4;
  font-weight: 700;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  color: #1a2e3e;
  margin-bottom: .6rem;
}

.card p { font-size: .95rem; line-height: 1.7; color: var(--text-muted); }

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: .6rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #6898a8, rgba(104,152,168,.3));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.42rem;
  top: .35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #6898a8;
  border: 2px solid #1a3540;
  flex-shrink: 0;
}

.timeline-year {
  min-width: 60px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #edf2f4;
  padding-top: .1rem;
}

.timeline-content h4 { color: #faf4ec; margin-bottom: .3rem; font-size: 1rem; }
.timeline-content p  { color: rgba(250,244,236,.82); font-size: .9rem; line-height: 1.6; }
.timeline-content.highlight h4 { color: #edf2f4; }

/* ---------- INFO SPLIT ---------- */
.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}
@media (max-width: 680px) {
  .info-split { grid-template-columns: 1fr; gap: 2rem; }
}

.info-text p { font-size: 1rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.2rem; }

.feature-list li {
  font-size: .95rem;
  color: var(--text-muted);
  padding: .35rem 0;
  border-bottom: 1px solid #eee;
}
.feature-list li:last-child { border-bottom: none; }

.info-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-box {
  background: #4a7d8c;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  box-shadow: var(--shadow);
}
.stat-number { font-size: 1.8rem; font-weight: bold; color: #edf2f4; }
.stat-label  { font-size: .85rem; opacity: .8; text-align: right; }

/* ---------- QUOTE ---------- */
.quote-block {
  background: var(--white);
  border-left: 5px solid #4a7d8c;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2rem 2rem 2.5rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.quote-block blockquote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  color: #1a2e3e;
  margin-bottom: .8rem;
}
.quote-block cite { font-size: .85rem; color: var(--text-muted); }

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

.event-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.event-card:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }

.event-date {
  display: inline-block;
  background: #4a7d8c;
  color: #edf2f4;
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .1em;
  padding: .2rem .7rem;
  border-radius: 4px;
  margin-bottom: .8rem;
}
.event-card h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.event-card p  { font-size: .9rem; opacity: .8; line-height: 1.6; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--warm);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform var(--transition);
}
.contact-card:hover { transform: translateY(-3px); }

.contact-icon { font-size: 2rem; margin-bottom: .8rem; color: #4a7d8c; }
.contact-card h4 { color: #1a2e3e; margin-bottom: .4rem; }
.contact-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- FOOTER ---------- */
.footer {
  background: #1a3540;
  color: #edf2f4;
  text-align: center;
  padding: 3rem 1.5rem;
}
.footer-title { color: #faf4ec; font-size: 1.2rem; margin-bottom: .4rem; font-weight: 700; }
.footer-sub   { font-size: .9rem; color: #edf2f4; margin-bottom: 1rem; }
.footer-copy  { font-size: .8rem; color: #7a9aaa; }

/* ---------- RESPONSIVE – TABLET ---------- */
@media (max-width: 900px) {
  .section { padding: 4rem 0; }
}

/* ---------- RESPONSIVE – MOBILE ---------- */
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .timeline  { padding-left: 1.5rem; }
  .timeline-item { flex-direction: column; gap: .5rem; }
  .timeline-year { min-width: auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .event-cards  { grid-template-columns: 1fr; }
}

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

/* ---------- SAFE-AREA (iPhone notch) ---------- */
.hero { padding-top: env(safe-area-inset-top); }
.footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }

/* ---------- APP INFO ---------- */
.app-info {
  margin: 1.5rem 0;
  border: 1px solid rgba(237,242,244,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.app-info summary {
  padding: .8rem 1rem;
  font-size: .85rem;
  color: var(--text-light);
  cursor: pointer;
  outline: none;
  user-select: none;
}
.app-info summary:hover {
  background: rgba(255,255,255,.08);
}
.info-content {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(237,242,244,.1);
}
.info-content h4 {
  margin: 1rem 0 .5rem;
  font-size: .9rem;
  color: var(--text-light);
}
.info-content p {
  margin: .4rem 0;
  font-size: .8rem;
  color: var(--text-muted);
}
