/*
Theme Name: APP beyond
Description: Schlankes eigenes Theme für appbeyond.net – Schrift lokal, ohne jQuery, ohne Tracking.
Author: Olaf Onnen
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: appbeyond
*/

/* Poppins, SIL Open Font License (assets/fonts/OFL.txt), served from this site. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ececec;
  --panel: #f7f7f7;
  --text: #111111;
  --muted: #6e6e6e;
  --line: rgb(0 0 0 / 10%);
  /* The orange red of the logo. */
  --orange: #d9480f;
  --orange-dark: #b33a0b;
  --wide: 1080px;
  --narrow: 740px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.75 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

img { max-width: 100%; height: auto; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--text); }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(30px, 6vw, 56px); margin: 0 0 20px; }
h2 { font-size: clamp(22px, 3vw, 28px); margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }

.wrap { width: min(var(--wide), 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(var(--narrow), 100% - 40px); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 14px; background: #fff; border-radius: 8px; }

/* Small orange spaced capitals above headlines. */
.kicker {
  display: block;
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

/* Buttons: filled orange and outlined dark, both pills. */
.button, .content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 30px;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.button:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.button.outline { border-color: var(--text); background: transparent; color: var(--text); }
.button.outline:hover { background: var(--text); color: #fff; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; height: 30px; }

.nav { margin-left: auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px 38px; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-page-ancestor > a { color: var(--text); }

/* Front page hero */
.hero { display: flex; flex-direction: column; justify-content: center; min-height: min(64vh, 560px); padding: 20px 0 60px; }
.hero h1 { font-size: clamp(44px, 9vw, 92px); line-height: 1.02; margin: 0; }
.hero .lead { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.hero .lead p { margin: 0; }

/* App cards */
.apps-section { padding: 20px 0 96px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.app-card {
  display: flex;
  gap: 20px;
  padding: 26px;
  border-radius: 24px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.app-card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 18px 40px rgb(0 0 0 / 8%); }
.app-card img { flex: none; width: 68px; height: 68px; border-radius: 18px; object-fit: cover; }
.app-card h2 { margin: 0 0 6px; font-size: 22px; }
.app-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.app-card .more { display: inline-block; margin-top: 12px; color: var(--orange); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }

/* Content pages */
.page-head { padding: clamp(32px, 6vw, 64px) 0 12px; }
.page-head .app-icon { display: block; width: 96px; height: 96px; margin-bottom: 24px; border-radius: 24px; box-shadow: 0 18px 40px rgb(0 0 0 / 10%); }
.content { padding-bottom: 96px; }
.content > :first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.2em; }
.content li + li { margin-top: 6px; }
.content li::marker { color: var(--orange); }
.content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.content th, .content td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content blockquote { margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--orange); color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.site-footer a:hover { color: var(--orange); }

@media (max-width: 760px) {
  .hero { min-height: 0; padding: 48px 0 56px; }
}

@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px 16px; min-height: 0; padding: 18px 0 8px; }
  .nav { margin-left: 0; width: 100%; }
  .nav ul { gap: 6px 26px; }
  .brand img { height: 26px; }
  .buttons .button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) { .app-card, .button { transition: none; } }
