/*
Theme Name: Andreas Portal
Theme URI: https://wp.communing.org/
Author: Andreas & OpenClaw
Description: Leichtes Block-Theme für das persönliche, datensparsame Andreas-Portal.
Version: 0.1.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: andreas-portal
*/

:root {
  --ap-sky: #cfeaf6;
  --ap-sky-light: #eaf7fc;
  --ap-green: #48a966;
  --ap-green-dark: #17613a;
  --ap-ink: #123227;
  --ap-line: rgba(18, 50, 39, 0.2);
}

html { scroll-behavior: smooth; }
body { min-height: 100vh; }

.ap-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.ap-header {
  border-bottom: 1px solid var(--ap-line);
}

.ap-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ap-brand a { text-decoration: none; }

.ap-hero {
  min-height: min(720px, 78vh);
  display: grid;
  align-content: center;
  padding-block: clamp(72px, 12vw, 150px);
  border-bottom: 1px solid var(--ap-line);
}

.ap-kicker {
  color: var(--ap-green-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ap-hero h1 {
  max-width: 900px;
  margin: 14px 0 24px;
  font-size: clamp(3.6rem, 10vw, 8.5rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.ap-hero h1 strong {
  color: var(--ap-green);
  font-weight: inherit;
}

.ap-lead {
  max-width: 690px;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1.55;
}

.ap-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--ap-line);
  color: var(--ap-green-dark);
  font-weight: 650;
}

.ap-status::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ap-green);
  content: "";
}

.ap-section {
  padding-block: clamp(64px, 9vw, 110px);
  border-bottom: 1px solid var(--ap-line);
}

.ap-section__head {
  display: grid;
  grid-template-columns: minmax(130px, .45fr) minmax(0, 1.55fr);
  gap: 32px;
  margin-bottom: 48px;
}

.ap-section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.ap-list {
  border-top: 1px solid var(--ap-line);
}

.ap-list > * {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--ap-line);
}

.ap-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.ap-footer {
  padding-block: 38px;
  border-top: 1px solid var(--ap-line);
}

.ap-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .ap-shell { width: min(100% - 28px, 1160px); }
  .ap-header__inner { min-height: 64px; }
  .ap-section__head { grid-template-columns: 1fr; gap: 14px; }
  .ap-hero { min-height: 70vh; }
  .ap-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .ap-actions .wp-block-button,
  .ap-actions .wp-block-button__link {
    box-sizing: border-box;
    width: 100%;
  }
  .ap-actions .wp-block-button__link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
