@font-face {
  font-family: 'Baarargh';
  src: url('/fonts/BAARARG_.TTF') format('truetype');
  font-display: swap;
}

:root {
  --bg: #FFFBFA;
  --dark: #191716;
  --blue: #3E82CB;
  --footer-blue: #275A91;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: 'Saira', sans-serif;
  overflow-x: hidden;
}

::selection { background: #3E82CB40; }

h1, h2, h3, .display {
  font-family: 'Baarargh', 'Cormorant Garamond', serif;
  font-weight: 400;
}

a { text-decoration: none; }

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

.wrap { max-width: 1240px; margin: 0 auto; }

/* Header (blue angled, used on Person & Kontakt) */
.header-blue {
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
  padding: 0 0 26px;
}

.header-blue .header-bar,
.hero header .header-bar {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}

.logo {
  height: 40px;
  object-fit: contain;
  cursor: pointer;
}

.hero header .logo {
  height: 44px;
  filter: brightness(0) invert(1);
}

nav.pillnav { display: flex; gap: 8px; }

nav.pillnav a {
  background: transparent;
  color: #FFFBFA;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-family: 'Saira';
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

nav.pillnav a.active,
nav.pillnav a:hover { background: #FFFFFF33; }

/* Hero (Startseite) */
.hero { position: relative; }

.hero-media {
  position: relative;
  height: 92vh;
  min-height: 640px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #19171666 0%, #19171600 30%, #19171600 65%, #191716aa 100%);
  pointer-events: none;
}

.hero-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 2%);
  z-index: 15;
  box-shadow: 0 10px 30px #19171633;
}

.hero header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
}

.hero-text {
  position: absolute;
  left: 40px;
  bottom: 9%;
  z-index: 10;
  max-width: 640px;
}

.hero-text h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #FFFBFA;
  text-shadow: 0 4px 24px #19171655;
}

.hero-text p {
  font-size: 19px;
  line-height: 1.6;
  color: #FFFBFAeb;
  margin: 0;
  max-width: 480px;
}

.sprechstunden-card {
  position: absolute;
  right: 60px;
  bottom: 6%;
  z-index: 10;
  background: var(--bg);
  border-radius: 4px 30px 4px 30px;
  padding: 30px 34px 26px;
  box-shadow: 0 24px 50px #19171650;
  transform: rotate(-4deg) skewX(-3deg);
}

.sprechstunden-card .skew { transform: skewX(3deg); }

.sprechstunden-card .title {
  font-family: 'Baarargh', 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--blue);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.sprechstunden-card .body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
}

.sprechstunden-card .rule {
  width: 40px; height: 1px;
  background: #3E82CB55;
  margin: 14px 0;
}

.sprechstunden-card .link {
  font-size: 15px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
}

/* Was ist Seelsorge section */
.intro-section {
  max-width: 960px;
  margin: 70px auto 0;
  padding: 60px 32px 110px;
  position: relative;
}

.blob-a {
  position: absolute;
  right: -140px;
  bottom: 20px;
  width: 380px;
  height: 380px;
  background: #3E82CB22;
  border-radius: 40% 60% 65% 35% / 55% 35% 65% 45%;
  z-index: 0;
}

.blob-b {
  position: absolute;
  left: -90px;
  top: 180px;
  width: 200px;
  height: 200px;
  background: #19171614;
  border-radius: 55% 45% 35% 65% / 45% 60% 40% 55%;
  z-index: 0;
}

.intro-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 36px;
}

.intro-heading h2 {
  font-size: 42px;
  color: var(--blue);
  margin: 0;
}

.intro-heading svg { opacity: 0.6; }

.intro-lead {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 0 44px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--dark);
}

.card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 44px;
}

.card-grid .card {
  background: var(--bg);
  border-radius: 26px 6px 26px 6px;
  padding: 28px 26px;
  box-shadow: 0 10px 30px #19171614;
}

.card-grid .card:nth-child(2) {
  border-radius: 6px 26px 6px 26px;
  margin-top: 24px;
}

.card-grid .card .icon {
  width: 38px; height: 38px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: #3E82CB22;
  margin-bottom: 16px;
}

.card-grid .card:nth-child(2) .icon {
  border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%;
}

.card-grid .card:nth-child(3) .icon {
  border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%;
}

.card-grid .card h3 {
  font-size: 21px;
  color: var(--blue);
  margin: 0 0 10px;
}

.card-grid .card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #191716cc;
}

.pull-quote {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid #3E82CB33;
  padding-top: 32px;
}

.pull-quote p {
  margin: 0;
  font-family: 'Baarargh', 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 23px;
  line-height: 1.5;
  color: var(--dark);
}

/* Person page */
.person-intro {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 70px 32px 40px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: start;
}

.person-blob {
  position: absolute;
  left: -100px;
  top: 60px;
  width: 220px;
  height: 220px;
  background: #3E82CB18;
  border-radius: 58% 42% 35% 65% / 55% 40% 60% 45%;
  z-index: 0;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  border-radius: 55% 45% 40% 60% / 50% 45% 55% 50%;
  overflow: hidden;
  height: 360px;
  box-shadow: 0 20px 50px #19171633;
}

.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.person-text { position: relative; z-index: 1; }

.person-text h1 { font-size: 44px; color: var(--blue); margin: 0 0 10px; }

.person-text .role {
  font-size: 17px;
  color: #191716aa;
  margin: 0 0 24px;
}

.person-text .rule {
  width: 60px; height: 2px;
  background: #3E82CB55;
  margin-bottom: 24px;
}

.person-text .quote {
  font-family: 'Baarargh', 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--dark);
  margin: 0 0 22px;
  max-width: 420px;
}

.person-text .lead {
  font-size: 16px;
  line-height: 1.75;
  color: #191716cc;
  margin: 0;
  max-width: 440px;
}

.werdegang {
  max-width: 1080px;
  margin: 20px auto 0;
  padding: 20px 32px 60px;
  position: relative;
}

.werdegang-blob {
  position: absolute;
  right: -120px;
  bottom: 60px;
  width: 280px;
  height: 280px;
  background: #19171610;
  border-radius: 40% 60% 65% 35% / 50% 55% 45% 50%;
  z-index: 0;
}

.werdegang h2 {
  position: relative;
  z-index: 1;
  font-size: 26px;
  color: var(--blue);
  margin: 0 0 32px;
}

.timeline {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 24px;
}

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 6px;
}

.timeline-line {
  width: 1px; flex: 1;
  background: #3E82CB33;
}

.timeline p {
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.75;
  color: #191716cc;
}

.timeline > div:last-of-type p,
.timeline p:last-child { margin-bottom: 0; }

/* Kontakt page */
.kontakt-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 32px 40px;
}

.kontakt-wrap h1 {
  font-size: 40px;
  color: var(--blue);
  margin: 0 0 40px;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

form.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kontakt-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 12px 16px;
  border: 1px solid #19171733;
  border-radius: 14px 4px 14px 4px;
  font-size: 15px;
  font-family: 'Saira';
  background: var(--bg);
  color: var(--dark);
  width: 100%;
}

.kontakt-form textarea { resize: vertical; }

.kontakt-form button {
  align-self: flex-start;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 32px 10px 32px 10px;
  padding: 14px 36px;
  font-size: 17px;
  font-family: 'Saira';
  cursor: pointer;
}

.kontakt-form button:disabled { opacity: 0.6; cursor: default; }

.form-status {
  font-size: 14px;
  min-height: 20px;
}

.form-status.ok { color: #1f7a3d; }
.form-status.err { color: #b8322c; }

.gesprächszeiten-card {
  background: #3E82CB14;
  border-radius: 16px 44px 16px 44px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.gesprächszeiten-card .title {
  font-family: 'Baarargh', 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 6px;
}

.gesprächszeiten-card .body {
  font-size: 16px;
  line-height: 1.55;
}

.direct-contact {
  font-size: 16px;
  line-height: 1.8;
}

.direct-contact p:first-child { margin-top: 0; }

.direct-contact a { color: var(--blue); }

/* Footer */
footer {
  margin-top: 40px;
  background: var(--footer-blue);
  color: #FFFBFA;
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
  padding: 64px 32px 32px;
}

footer .inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

footer .name {
  font-family: 'Baarargh', 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 6px;
}

footer .address {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
}

footer .links {
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 18px;
}

footer .links a { color: inherit; text-decoration: none; }

/* Responsive */
@media (max-width: 900px) {
  .person-intro { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid .card:nth-child(2) { margin-top: 0; }
}

@media (max-width: 640px) {
  .hero-media { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); }
  .hero header .header-bar,
  .header-blue .header-bar { padding: 20px 20px; flex-direction: column; gap: 14px; }
  nav.pillnav { flex-wrap: wrap; justify-content: center; }
  .hero-text { left: 20px; right: 20px; bottom: 30%; max-width: none; }
  .sprechstunden-card { position: static; margin: 0 20px; transform: none; }
  .hero-media { height: 78vh; }
  .kontakt-form .row { grid-template-columns: 1fr; }
  .person-blob, .werdegang-blob, .blob-a, .blob-b { display: none; }
}
