/*
Theme Name: Logos Gradualis Modern
Theme URI: https://peopleintune.org/
Author: Logos Gradualis
Description: Ruhiges, responsives und Elementor-kompatibles Theme für Logos Gradualis.
Version: 1.0.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: logos-gradualis
*/

:root {
  --lg-ink: #26352f;
  --lg-muted: #65726b;
  --lg-forest: #345b49;
  --lg-forest-dark: #203f34;
  --lg-sage: #a8bca8;
  --lg-gold: #c79a4a;
  --lg-cream: #f5f0e5;
  --lg-paper: #fffdf7;
  --lg-line: rgba(38, 53, 47, .14);
  --lg-shadow: 0 20px 60px rgba(31, 55, 45, .12);
  --lg-radius: 1.5rem;
  --lg-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--lg-ink);
  background: var(--lg-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, rgba(199,154,74,.11), transparent 28rem),
    radial-gradient(circle at 92% 68%, rgba(126,158,138,.11), transparent 30rem),
    var(--lg-paper);
}

img { max-width: 100%; height: auto; }
a { color: var(--lg-forest); text-underline-offset: .18em; }
a:hover { color: var(--lg-gold); }
p { margin: 0 0 1.25rem; }
h1, h2, h3, h4 {
  margin: 0 0 .7em;
  color: var(--lg-forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: .7rem 1rem;
  background: #fff;
  z-index: 9999;
}

.lg-shell { width: min(calc(100% - 2rem), var(--lg-width)); margin-inline: auto; }
.lg-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,253,247,.92);
  border-bottom: 1px solid var(--lg-line);
  backdrop-filter: blur(16px);
}
.admin-bar .lg-site-header { top: 32px; }
.lg-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.lg-brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.lg-brand img {
  width: min(320px, 52vw);
  display: block;
  filter: contrast(1.65) brightness(.58) saturate(.8);
}
.lg-nav { display: flex; align-items: center; gap: 1rem; }
.lg-nav a {
  position: relative;
  color: var(--lg-ink);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.lg-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.45rem;
  height: 2px;
  background: var(--lg-gold);
  transition: right .22s ease;
}
.lg-nav a:hover::after, .lg-nav a[aria-current="page"]::after { right: 0; }
.lg-language {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .25rem;
  border: 1px solid var(--lg-line);
  border-radius: 999px;
}
.lg-language a {
  min-width: 2.3rem;
  padding: .35rem .55rem;
  color: var(--lg-muted);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.lg-language a.is-active { color: #fff; background: var(--lg-forest); }
.lg-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lg-line);
  border-radius: 50%;
  color: var(--lg-forest-dark);
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.lg-main { min-height: 70vh; }
.lg-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--lg-forest-dark);
}
.lg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--lg-hero-image) center 42% / cover no-repeat;
  transform: scale(1.02);
}
.lg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18,42,32,.83) 0%, rgba(20,43,34,.5) 52%, rgba(20,43,34,.12) 100%), linear-gradient(0deg, rgba(20,43,34,.48), transparent 55%);
}
.lg-hero-inner { padding-block: clamp(5rem, 12vw, 9rem); color: #fff; }
.lg-kicker, .lg-eyebrow {
  margin-bottom: 1rem;
  color: var(--lg-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lg-hero h1 { max-width: 830px; color: #fff; text-wrap: balance; }
.lg-hero-copy { max-width: 620px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.9); }
.lg-scroll-cue { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.lg-scroll-cue::before { content: "↓"; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }

.lg-section { padding-block: clamp(4rem, 9vw, 8rem); }
.lg-section--cream { background: var(--lg-cream); }
.lg-section--forest { color: #fff; background: var(--lg-forest-dark); }
.lg-section--forest h2, .lg-section--forest h3 { color: #fff; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .68fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.lg-prose { max-width: 760px; }
.lg-prose > *:last-child { margin-bottom: 0; }
.lg-prose p { text-wrap: pretty; }
.lg-intro { font-size: clamp(1.1rem, 2vw, 1.32rem); }
.lg-side-note {
  position: sticky;
  top: 130px;
  padding: 2rem;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: rgba(255,255,255,.68);
  box-shadow: var(--lg-shadow);
}
.lg-side-note p:last-child { margin-bottom: 0; }
.lg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .75rem 1.2rem;
  color: #fff;
  border-radius: 999px;
  background: var(--lg-forest);
  font-weight: 800;
  text-decoration: none;
}
.lg-button:hover { color: #fff; background: var(--lg-gold); }

.lg-media-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; }
.lg-media-grid img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: var(--lg-radius); }
.lg-media-stack { display: grid; gap: 1rem; }
.lg-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--lg-radius);
  background: #10251d;
  box-shadow: var(--lg-shadow);
}
.lg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lg-page-hero { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(2.5rem, 6vw, 5rem); background: linear-gradient(135deg, var(--lg-cream), #eef1e8); border-bottom: 1px solid var(--lg-line); }
.lg-page-hero h1 { max-width: 950px; font-size: clamp(2.7rem, 6vw, 5rem); }
.lg-page-content { padding-block: clamp(3.5rem, 8vw, 7rem); }
.lg-page-content > .lg-shell > :not(.lg-faculty-grid):not(.lg-card-grid):not(.lg-contact-card) { max-width: 850px; }
.lg-page-content table { width: 100%; border-collapse: collapse; }
.lg-page-content td { padding: 1rem; vertical-align: top; border-bottom: 1px solid var(--lg-line); }
.lg-page-content h2, .lg-page-content h3 { margin-top: 1.7em; }
.lg-page-content h2:first-child, .lg-page-content h3:first-child { margin-top: 0; }
.lg-feature-image { margin: 2.5rem 0 3rem; }
.lg-feature-image img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--lg-radius); box-shadow: var(--lg-shadow); }

.lg-card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lg-card {
  min-height: 260px;
  padding: clamp(1.7rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: linear-gradient(150deg, #fff, var(--lg-cream));
  box-shadow: var(--lg-shadow);
}
.lg-card h2 { margin-top: 0; }
.lg-arrow-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 800; text-decoration: none; }
.lg-arrow-link::after { content: "↗"; }
.lg-info-panel, .lg-contact-card {
  margin: 2.5rem 0;
  padding: clamp(1.7rem, 4vw, 3rem);
  border-left: 4px solid var(--lg-gold);
  border-radius: 0 var(--lg-radius) var(--lg-radius) 0;
  background: var(--lg-cream);
}
.lg-contact-card { max-width: 720px; box-shadow: var(--lg-shadow); }
.lg-faculty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.lg-person { overflow: hidden; border: 1px solid var(--lg-line); border-radius: var(--lg-radius); background: #fff; box-shadow: var(--lg-shadow); }
.lg-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
.lg-person > div { padding: 1.6rem 1.8rem 1.9rem; }
.lg-person h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.lg-role { margin: .4rem 0 0; color: var(--lg-gold); font-size: .8rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.lg-site-footer { padding-block: 4rem 2rem; color: rgba(255,255,255,.78); background: #172d25; }
.lg-footer-grid { display: flex; justify-content: flex-end; }
.lg-footer-brand img { width: 220px; filter: brightness(0) invert(1); opacity: .93; }
.lg-footer-brand p { max-width: 460px; margin-top: 1.2rem; }
.lg-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: 1.4rem; }
.lg-footer-links a { color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; }
.lg-footer-bottom { margin-top: 2rem; padding-top: 1.4rem; display: flex; gap: 1rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; }

@media (max-width: 1120px) {
  .admin-bar .lg-site-header { top: 46px; }
  .lg-menu-toggle { display: grid; place-items: center; }
  .lg-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    padding: 1rem max(1rem, calc((100vw - var(--lg-width)) / 2));
    flex-direction: column;
    gap: 0;
    background: var(--lg-paper);
    border-bottom: 1px solid var(--lg-line);
    box-shadow: 0 20px 40px rgba(31,55,45,.12);
  }
  .lg-nav.is-open { display: flex; }
  .lg-nav a { padding: .8rem 0; }
  .lg-language { margin-left: auto; }
  .lg-grid { grid-template-columns: 1fr; }
  .lg-side-note { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .lg-header-inner { min-height: 74px; gap: .7rem; }
  .lg-brand img { width: 225px; }
  .lg-media-grid, .lg-faculty-grid { grid-template-columns: 1fr; }
  .lg-footer-grid { justify-content: flex-start; }
  .lg-media-stack { grid-template-columns: 1fr 1fr; }
  .lg-media-grid img { min-height: 190px; }
  .lg-footer-links { justify-content: flex-start; }
  .lg-footer-bottom { flex-direction: column; }
  .lg-page-content table, .lg-page-content tbody, .lg-page-content tr, .lg-page-content td { display: block; width: 100%; }
  .lg-page-content td:empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
