:root {
  color-scheme: light;
  --ink: #15342f;
  --ink-soft: #52655e;
  --forest: #102e2b;
  --forest-light: #1e4c42;
  --cream: #f6f4ed;
  --paper: #fffef9;
  --line: #e5e8df;
  --mint: #bfe6c7;
  --gold: #dcb87a;
  --shadow: 0 18px 50px rgba(29, 50, 37, 0.08);
  font-family: "Avenir Next", Avenir, "Gill Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #99c9a9; outline-offset: 3px; }

.site-shell { max-width: 1460px; min-height: 100vh; margin: 0 auto; padding: 0 34px; }
.site-header { display: flex; align-items: center; gap: 30px; min-height: 112px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #e7cd94; background: var(--forest); }
.brand-mark svg { width: 31px; height: 31px; }
.brand-type { display: flex; flex-direction: column; gap: 2px; line-height: 1; letter-spacing: 0.17em; }
.brand-type strong { font-size: 15px; font-weight: 800; }
.brand-type small { color: #7a8c80; font-size: 9px; font-weight: 800; letter-spacing: 0.24em; }
.header-location { display: flex; align-items: center; gap: 11px; margin: 0 auto; color: #52665b; font-size: 13px; font-weight: 600; white-space: nowrap; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; background: #739e79; box-shadow: 0 0 0 4px #d9e9d9; }
.header-divider { padding: 0 6px; color: #a7b3a8; }
.berlin-clock { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.berlin-clock span { color: #77877c; font-size: 12px; }
.berlin-clock strong { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.65fr); align-items: center; gap: 64px; min-height: 438px; padding: 64px 7.1%; overflow: hidden; border-radius: 32px; color: #fffdf2; background: radial-gradient(circle at 75% 5%, rgba(95, 162, 115, 0.20), transparent 34%), linear-gradient(128deg, #102c2b 5%, #163f37 70%, #1a4b3e); box-shadow: var(--shadow); }
.hero::before { position: absolute; inset: 0; pointer-events: none; content: ""; opacity: 0.22; background-image: radial-gradient(rgba(247, 241, 218, 0.35) 0.6px, transparent 0.7px); background-size: 17px 17px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero::after { position: absolute; right: -144px; bottom: -300px; width: 650px; height: 650px; border: 1px solid rgba(222, 234, 204, 0.14); border-radius: 50%; content: ""; pointer-events: none; box-shadow: 0 0 0 70px rgba(208, 235, 208, 0.03), 0 0 0 145px rgba(208, 235, 208, 0.025); }
.hero-ornament { position: absolute; top: 48px; right: 49px; display: flex; gap: 14px; opacity: 0.56; }
.hero-ornament span { width: 4px; height: 4px; transform: rotate(45deg); background: #e8d8ad; }
.hero-ornament span:nth-child(2) { width: 7px; height: 7px; margin-top: 14px; }
.hero-ornament span:nth-child(3) { margin-top: 6px; }
.hero-copy, .next-prayer { position: relative; z-index: 1; }
.eyebrow, .section-kicker, .next-label { font-size: 10px; font-weight: 800; letter-spacing: 0.23em; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: #d6d3ad; }
.eyebrow-line { width: 20px; height: 1px; background: #d6d3ad; }
.hero h1 { margin: 27px 0 19px; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: clamp(48px, 5vw, 77px); line-height: 1.05; font-weight: 400; letter-spacing: -0.055em; }
.hero h1 em { color: #e4c48e; font-weight: 400; }
.hero-copy p { max-width: 430px; margin: 0; color: #d4e2d8; font-size: 15px; line-height: 1.7; }
.hero-date { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; color: #edf1df; font-size: 13px; font-weight: 600; }
.date-symbol { color: #e4c48e; font-size: 19px; }
.next-prayer { align-self: center; min-height: 270px; padding: 29px 30px 24px; border: 1px solid rgba(227, 237, 218, 0.23); border-radius: 23px; background: linear-gradient(155deg, rgba(251, 252, 230, 0.13), rgba(249, 244, 220, 0.035)); box-shadow: 0 25px 55px rgba(5, 24, 22, 0.18); backdrop-filter: blur(12px); }
.next-prayer-top, .next-prayer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.next-label { color: #cfe6d1; }
.next-pulse { width: 8px; height: 8px; border-radius: 50%; background: #c6dc9f; box-shadow: 0 0 0 5px rgba(198, 220, 159, 0.12); }
.next-name { margin-top: 27px; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: 38px; line-height: 1.1; }
.next-time { margin-top: 7px; font-size: clamp(46px, 4.2vw, 63px); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.065em; }
.next-prayer-bottom { margin-top: 21px; padding-top: 16px; border-top: 1px solid rgba(228, 240, 222, 0.2); color: #d7e5d9; font-size: 11px; }

.lookup { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 35px; margin: 29px 0 57px; padding: 29px 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.section-kicker { color: #9b824c; }
.lookup h2, .timetable h2 { margin: 10px 0 0; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: clamp(26px, 2.4vw, 33px); font-weight: 400; letter-spacing: -0.035em; }
.date-form { display: flex; align-items: end; gap: 10px; }
.date-field { display: flex; flex-direction: column; gap: 6px; min-width: 190px; font-size: 10px; font-weight: 800; letter-spacing: 0.09em; color: #65766b; text-transform: uppercase; }
.date-field input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #d7e1d6; border-radius: 10px; outline: none; background: #fbfcf8; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.date-field input:focus { border-color: #55836a; box-shadow: 0 0 0 3px rgba(85, 131, 106, 0.15); }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 10px; color: white; background: #2a604d; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background 150ms, transform 150ms; }
.primary-button:hover { background: #194533; transform: translateY(-1px); }
.primary-button span { font-size: 17px; font-weight: 400; }
.lookup-hint { grid-column: 1 / -1; margin: -4px 0 0; color: #7a897d; font-size: 11px; line-height: 1.5; }

.timetable { padding-bottom: 68px; }
.timetable-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.selected-date { margin: 11px 0 0; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.day-nav { display: flex; align-items: center; gap: 7px; }
.day-nav button { display: grid; min-width: 37px; height: 37px; place-items: center; border: 1px solid #dce3d8; border-radius: 10px; color: var(--ink); background: var(--paper); font-size: 16px; transition: border-color 150ms, background 150ms; }
.day-nav button:hover { border-color: #a5bfa9; background: #ecf3ea; }
.day-nav .today-button { padding: 0 13px; font-size: 12px; font-weight: 700; }
.schedule-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 30px 0 22px; }
.mode-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #e1e5da; border-radius: 12px; background: #ecefe7; }
.mode-switch button { display: flex; align-items: baseline; gap: 7px; min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; color: #63766a; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mode-switch button.active { color: var(--ink); background: #fffefa; box-shadow: 0 2px 8px rgba(20, 50, 37, 0.08); }
.mode-switch small { color: #829087; font-size: 10px; font-weight: 500; }
.schedule-timezone { color: #8d9b8e; font-size: 12px; }
.prayer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.prayer-card { position: relative; display: flex; flex-direction: column; min-height: 177px; padding: 23px 24px 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 8px 22px rgba(33, 57, 39, 0.035); overflow: hidden; }
.prayer-card.is-next { border-color: #9fc7ac; background: linear-gradient(145deg, #fafff7, #eef7eb); }
.prayer-card.is-next::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: #5f9472; content: ""; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-order { color: #a2b0a1; font-size: 11px; font-weight: 800; letter-spacing: 0.09em; }
.card-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #477462; background: #eaf1e8; font-size: 17px; line-height: 1; }
.prayer-card.is-next .card-icon { background: #dcebdc; }
.prayer-card h3 { margin: 16px 0 0; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: 24px; line-height: 1; font-weight: 500; }
.card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: auto; padding-top: 9px; }
.card-time { font-size: 29px; line-height: 1; font-weight: 650; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.card-caption { color: #87968b; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.prayer-card.is-next .card-caption { color: #4d8562; font-weight: 700; }
.timetable-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 21px; color: #7e8f81; font-size: 11px; }
.timetable-footer a { color: #27654b; font-weight: 700; text-decoration: none; }
.timetable-footer a:hover { text-decoration: underline; }
.footer-star { margin-right: 5px; color: #af9661; }
.data-message { margin-top: 18px; padding: 16px; border-radius: 12px; color: #713d2c; background: #fff0e8; font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0 35px; border-top: 1px solid #dce2d8; color: #87968a; font-size: 10px; letter-spacing: 0.08em; }
.footer-separator { margin: 0 5px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: 28px; padding: 50px 5%; }
  .lookup { grid-template-columns: 1fr; }
  .lookup-hint { margin-top: 0; }
  .date-form { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .site-shell { padding: 0 18px; }
  .site-header { min-height: 86px; }
  .header-location { display: none; }
  .berlin-clock { margin-left: auto; flex-direction: column; align-items: end; gap: 2px; }
  .berlin-clock span { font-size: 10px; }
  .berlin-clock strong { font-size: 16px; }
  .hero { grid-template-columns: 1fr; min-height: unset; padding: 40px 28px 27px; border-radius: 25px; }
  .hero h1 { margin: 20px 0 12px; font-size: clamp(45px, 10vw, 65px); }
  .hero-copy p { font-size: 14px; }
  .hero-date { margin-top: 20px; }
  .next-prayer { min-height: 0; padding: 22px; }
  .next-name { margin-top: 17px; font-size: 32px; }
  .next-time { font-size: 51px; }
  .next-prayer-bottom { margin-top: 12px; }
  .lookup { margin: 18px 0 48px; padding: 25px; }
  .prayer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand-type strong { font-size: 12px; }
  .brand-type small { font-size: 8px; }
  .hero { padding: 36px 22px 22px; }
  .date-form { flex-direction: column; align-items: stretch; }
  .date-field { width: 100%; }
  .primary-button { width: 100%; }
  .timetable-header { align-items: start; }
  .day-nav { align-self: end; }
  .day-nav button { min-width: 30px; height: 33px; }
  .day-nav .today-button { padding: 0 7px; }
  .schedule-toolbar { align-items: start; flex-direction: column; gap: 9px; }
  .mode-switch { width: 100%; }
  .mode-switch button { flex: 1; justify-content: center; padding: 0 7px; font-size: 11px; }
  .mode-switch small { display: none; }
  .prayer-grid { gap: 10px; }
  .prayer-card { min-height: 150px; padding: 17px 14px 16px; }
  .prayer-card h3 { margin-top: 13px; font-size: 21px; }
  .card-time { font-size: 25px; }
  .card-caption { font-size: 9px; }
  .timetable-footer { flex-direction: column; gap: 8px; }
  .site-footer { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
