﻿/*
Theme Name: ePredigt
Theme URI: https://epredigt.de/
Author: ePredigt
Description: Helles Landingpage-Theme fuer die ePredigt Newsletter-Anmeldung.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: epredigt
*/

:root {
  --ink: #142437;
  --muted: #425066;
  --teal: #318b88;
  --teal-dark: #247a78;
  --gold: #d6a73d;
  --line: #d8d4cc;
  --paper: #ffffff;
  --soft: #f7faf9;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 124px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(20, 36, 55, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 16px rgba(19, 43, 62, 0.05);
  position: relative;
  z-index: 2;
}

.header-inner {
  width: min(1480px, calc(100% - 112px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.brand { display: flex; align-items: center; min-width: 300px; }
.brand-logo { width: 320px; height: auto; display: block; }

.nav,
.primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
  font-size: 1.05rem;
  color: #0f1d30;
  white-space: nowrap;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  margin: 0;
  padding: 0;
}

.nav a,
.primary-menu a {
  position: relative;
  padding: 12px 0;
  display: inline-block;
}

.nav a::after,
.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav a:hover::after,
.primary-menu a:hover::after { transform: scaleX(1); }

.primary-menu li:last-child a {
  color: #fff;
  background: var(--teal-dark);
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(36,118,111,.22);
}

.primary-menu li:last-child a::after { display: none; }

.hero {
  min-height: calc(100vh - 124px);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.56) 31%, rgba(255,255,255,.08) 53%, rgba(255,255,255,.08) 64%, rgba(255,255,255,.62) 82%, rgba(255,255,255,.84) 100%),
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.14) 70%, rgba(255,255,255,.92) 100%),
    url("assets/hero-lighthouse.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1480px, calc(100% - 112px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(430px, .95fr) minmax(260px, .7fr) 420px;
  gap: 36px;
  align-items: center;
  padding: 70px 0 96px;
}

.hero-copy { grid-column: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--teal-dark);
  font-size: .9rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold); }

.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 8.4vw, 8.6rem);
  line-height: .88;
  font-weight: 500;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: #243d4d;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.28;
  font-weight: 520;
}

.intro {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.signup {
  grid-column: 3;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  box-shadow: 0 26px 76px rgba(20, 36, 55, .18);
  padding: 30px;
  backdrop-filter: blur(18px);
}

.signup-logo {
  width: 74px;
  height: auto;
  display: block;
  margin: 0 0 18px;
}

.signup h2 { margin: 0; font-size: 1.5rem; line-height: 1.22; }
.signup p { margin: 10px 0 22px; color: var(--muted); line-height: 1.55; }
.signup label { display: block; margin: 14px 0 7px; color: #344d59; font-size: .92rem; font-weight: 720; }
.signup input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #bdd4d1;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.signup button, .signup input[type="submit"] {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(36,118,111,.24);
}
.privacy { margin-top: 14px; color: #6f8589; font-size: .84rem; line-height: 1.5; }

.features {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(20, 36, 55, 0.08);
}

.features-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0 34px;
}

.feature {
  text-align: center;
  padding: 0 58px;
  position: relative;
}

.feature + .feature {
  border-left: 1px solid var(--line);
}

.round-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: white;
  background: linear-gradient(135deg, #4ba49f, #2f8987);
  border: 0;
  box-shadow: 0 5px 12px rgba(49, 139, 136, 0.2);
}

.feature h3 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.feature p {
  margin: 0;
  color: #31394a;
  font-size: .96rem;
  line-height: 1.55;
}

.feature .small-rule {
  width: 46px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}

.quote {
  min-height: 114px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(247,250,249,.98), rgba(255,255,255,.92));
  border-top: 1px solid rgba(20, 36, 55, 0.08);
}

.quote blockquote {
  margin: 0;
  padding: 22px 20px;
  font-size: 1.1rem;
  font-style: italic;
  color: #17253a;
}

.quote .mark {
  color: var(--gold);
  font-size: 2rem;
  line-height: 0;
  vertical-align: middle;
  padding: 0 22px;
  font-weight: 700;
}

.quote cite {
  display: block;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: .98rem;
  font-style: normal;
  font-weight: 700;
}

.epredigt-current {
  width: min(980px, calc(100% - 44px));
  margin: 58px auto 72px;
}

.epredigt-current-header {
  text-align: center;
  margin-bottom: 28px;
}

.epredigt-current-kicker {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: .9rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.epredigt-current h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 500;
}

.epredigt-current-date {
  margin: 12px 0 0;
  color: var(--muted);
}

.epredigt-current-frame {
  width: 100%;
  min-height: 860px;
  border: 1px solid rgba(20, 36, 55, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(20, 36, 55, .11);
}

.epredigt-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-weight: 700;
}

.epredigt-back-link::before {
  content: "<";
  margin-right: 8px;
  color: var(--gold);
}

.epredigt-archive {
  width: min(1100px, calc(100% - 44px));
  margin: 58px auto 76px;
}

.epredigt-archive-header {
  text-align: center;
  margin-bottom: 44px;
}

.epredigt-archive-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 500;
}

.epredigt-archive-header p:last-child {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.epredigt-archive-month {
  margin-top: 38px;
}

.epredigt-archive-month h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 1.15rem;
  letter-spacing: .02em;
}

.epredigt-archive-month h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.epredigt-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.epredigt-archive-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 20px 22px;
  border: 1px solid rgba(20, 36, 55, .09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,249,.98));
  box-shadow: 0 12px 32px rgba(20, 36, 55, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.epredigt-archive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 139, 136, .28);
  box-shadow: 0 18px 44px rgba(20, 36, 55, .1);
}

.epredigt-archive-date {
  color: var(--gold);
  font-size: .9rem;
  font-weight: 760;
}

.epredigt-archive-title {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.38;
}

.epredigt-modal {
  width: min(1080px, calc(100% - 36px));
  max-width: none;
  height: min(88vh, 940px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.epredigt-modal::backdrop {
  background: rgba(20, 36, 55, .46);
  backdrop-filter: blur(4px);
}

.epredigt-modal-panel {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 110px rgba(20, 36, 55, .34);
}

.epredigt-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.epredigt-modal-header {
  padding: 34px 74px 24px 34px;
  border-bottom: 1px solid rgba(20, 36, 55, .09);
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(247,250,249,.98));
}

.epredigt-modal-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
}

.epredigt-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-inner, .hero-inner { width: min(100% - 44px, 1180px); }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy, .signup { grid-column: 1; }
  .signup { max-width: 520px; }
}

@media (max-width: 680px) {
  .site-header { height: 96px; }
  .brand-logo { width: 230px; }
  .hero { min-height: auto; background-position: 45% center; }
  .hero-inner { padding: 56px 0 72px; }
  .signup { padding: 24px; }
  .features-inner { grid-template-columns: 1fr; gap: 28px; padding: 30px 0 44px; }
  .feature { padding: 0; }
  .feature + .feature { border-left: 0; }
  .epredigt-archive-grid { grid-template-columns: 1fr; }
}
