/*
Theme Name: Leon Onepage Compact
Theme URI: https://example.invalid/leon-onepage-compact
Author: ChatGPT
Author URI: https://openai.com/
Description: Ein minimalistisches One-Screen-WordPress-Theme für eine persönliche Startseite mit Kurzprofil, Kontakt und kleinem Newsblock. Rechtliche Unterseiten und Beiträge werden sauber als eigene Seiten dargestellt.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leon-onepage-compact
Tags: one-page, portfolio, minimal, customizer, accessibility-ready
*/

:root {
  --green: #005437;
  --green-2: #0c6b49;
  --green-soft: #e9f3ed;
  --green-pale: #f5faf7;
  --sun: #ffe15b;
  --ink: #101815;
  --muted: #5d6b66;
  --line: rgba(0, 84, 55, 0.16);
  --surface: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(0, 50, 32, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --page-pad: clamp(18px, 3.2vw, 42px);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0 !important;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 225, 91, 0.28), transparent 24vw),
    radial-gradient(circle at 88% 18%, rgba(0, 84, 55, 0.10), transparent 26vw),
    linear-gradient(135deg, #fbfdfb 0%, #f2f8f4 52%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: normal;
  font-kerning: normal;
}

body.leon-compact-home {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 225, 91, 0.95);
  outline-offset: 4px;
  border-radius: 10px;
}

.screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.onepage-wrap {
  min-height: 100svh;
  padding: var(--page-pad);
  display: grid;
  place-items: center;
}

.onepage-card {
  width: min(1160px, 100%);
  height: min(760px, calc(100svh - (var(--page-pad) * 2)));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(18px, 2.3vw, 30px);
  padding: clamp(18px, 2.8vw, 32px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.profile-pane {
  position: relative;
  min-height: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  padding: clamp(22px, 3vw, 34px);
  color: #fff;
  background:
    linear-gradient(155deg, rgba(0, 84, 55, 0.98), rgba(0, 61, 41, 0.94)),
    var(--green);
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 22px;
}

.profile-pane::before {
  content: "";
  position: absolute;
  right: -68px;
  top: -72px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 225, 91, 0.95);
}

.profile-pane::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: calc(100% - 56px);
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.profile-content,
.profile-bottom {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 5px rgba(255, 225, 91, 0.18);
}

.portrait {
  width: clamp(106px, 16vw, 152px);
  aspect-ratio: 1 / 1;
  margin: 0 0 clamp(20px, 3vh, 34px);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

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

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 760;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.92);
}

.site-title {
  margin: 0;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.97;
  font-weight: 790;
  letter-spacing: -0.015em;
}

.site-subtitle {
  margin: clamp(16px, 2vh, 24px) 0 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.55;
  letter-spacing: 0;
}

.profile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.profile-bottom strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 2px;
}

.sunmark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 10px rgba(255, 225, 91, 0.12);
}

.content-pane {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(14px, 2.2vh, 22px);
}

.main-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: clamp(14px, 2.1vh, 22px);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.about-panel {
  padding: clamp(20px, 2.4vw, 30px);
}

.label {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 13px;
  font-weight: 740;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.about-text {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.55;
  letter-spacing: normal;
  max-width: 38ch;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(15px, 1.6vw, 20px) clamp(18px, 2.2vw, 24px);
  background: var(--green-pale);
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: normal;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 84, 55, 0.18);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.pill-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 84, 55, 0.32);
  background: #fbfffc;
}

.news-panel {
  min-height: 0;
  padding: clamp(16px, 1.9vw, 22px);
  overflow: hidden;
}

.news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.news-title {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.news-note {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.news-list {
  display: grid;
  gap: 9px;
  max-height: 100%;
  overflow: hidden;
}

.news-item {
  display: grid;
  grid-template-columns: minmax(74px, 84px) 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 84, 55, 0.11);
}

.news-date {
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.news-item h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.28;
  font-weight: 760;
  letter-spacing: normal;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  letter-spacing: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-news {
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 15px;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green);
  text-decoration: underline;
}

@media (max-width: 920px) {
  body.leon-compact-home {
    overflow: auto;
  }

  .onepage-wrap {
    align-items: start;
  }

  .onepage-card {
    height: auto;
    min-height: calc(100svh - (var(--page-pad) * 2));
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .profile-pane {
    min-height: 360px;
  }

  .site-title {
    max-width: none;
  }

  .content-pane {
    height: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .onepage-wrap {
    padding: 12px;
  }

  .onepage-card {
    padding: 12px;
    border-radius: 22px;
  }

  .profile-pane {
    padding: 22px;
    border-radius: 18px;
  }

  .profile-bottom,
  .contact-strip,
  .footer-line,
  .news-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-strip {
    display: flex;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .news-note {
    white-space: normal;
  }
}

@media (max-height: 680px) and (min-width: 921px) {
  .onepage-card {
    min-height: 520px;
  }

  .portrait {
    width: 104px;
    margin-bottom: 18px;
  }

  .site-title {
    font-size: clamp(38px, 5.4vw, 64px);
  }

  .site-subtitle,
  .about-text {
    font-size: 17px;
  }

  .about-panel {
    padding: 20px;
  }

  .news-item p {
    -webkit-line-clamp: 1;
  }
}


/* Inner pages: legal pages and single news posts */
body.leon-compact-inner {
  overflow: auto;
}

.inner-wrap {
  min-height: 100svh;
  padding: clamp(18px, 4vw, 58px);
  display: grid;
  justify-items: center;
}

.inner-shell {
  width: min(900px, 100%);
}

.inner-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.inner-brand,
.inner-home-link {
  color: var(--green);
  font-weight: 760;
  text-decoration: none;
}

.inner-home-link:hover,
.inner-brand:hover {
  text-decoration: underline;
}

.inner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.inner-hero {
  padding: clamp(28px, 5vw, 54px) clamp(24px, 5vw, 58px) clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 225, 91, 0.55), transparent 170px),
    linear-gradient(135deg, rgba(0, 84, 55, 0.08), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(0, 84, 55, 0.10);
}

.inner-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.inner-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 790;
  letter-spacing: -0.012em;
}

.inner-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.inner-content {
  padding: clamp(24px, 5vw, 58px);
  color: var(--ink);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.72;
  letter-spacing: normal;
}

.inner-content h1,
.inner-content h2,
.inner-content h3 {
  color: var(--green);
  line-height: 1.18;
  letter-spacing: -0.005em;
}

.inner-content h2 {
  margin-top: 2em;
  font-size: clamp(24px, 3vw, 34px);
}

.inner-content h3 {
  margin-top: 1.6em;
}

.inner-content p,
.inner-content ul,
.inner-content ol {
  max-width: 72ch;
}

.inner-content a {
  color: var(--green);
  font-weight: 650;
}

.inner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.inner-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inner-footer a {
  color: var(--muted);
  text-decoration: none;
}

.inner-footer a:hover {
  color: var(--green);
  text-decoration: underline;
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--green);
  text-decoration: underline;
}

@media (max-width: 620px) {
  .inner-topbar,
  .inner-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
