/*
Theme Name:        Bubo Bubo
Theme URI:         https://bubo-bubo.de/
Description:       Theme für die Bubo-Bubo-Website. Die Startseite zeigt die Übungs-App (Plugin „Bubo Bubo – Üben mit Noten“), alle anderen Seiten wie Impressum und Datenschutz erscheinen im Design der App.
Version:           1.0.0
Requires at least: 6.0
Requires PHP:      7.4
Author:            Bubo Bubo
License:           GPL-2.0-or-later
Text Domain:       bubo-bubo
*/

:root {
  --case: #16323a;
  --case-2: #1f4650;
  --brass: #f2c14e;
  --page: #e9eef0;
  --paper: #ffffff;
  --ink: #1d262b;
  --muted: #5d6b72;
  --font: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}
a { color: var(--case-2); }
a:hover { color: var(--case); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* ---------- Kopf ---------- */
.site-head {
  background: var(--case);
  color: #e8f1f1;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
}
.site-head .inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: .02em; }
.brand:hover { color: #fff; }
.brand img { height: 32px; width: auto; display: block; }
.btn-app {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: 10px; background: var(--brass); color: #2a2208; font-weight: 700; text-decoration: none;
}
.btn-app:hover { color: #2a2208; filter: brightness(1.05); }

/* ---------- Inhalt ---------- */
.site-main { flex: 1; padding: 32px max(14px, env(safe-area-inset-right)) 48px max(14px, env(safe-area-inset-left)); }
.paper {
  max-width: 820px; margin: 0 auto; padding: 32px clamp(20px, 5vw, 56px) 40px;
  background: var(--paper); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(20, 40, 50, .12), 0 8px 24px rgba(20, 40, 50, .08);
  overflow-wrap: break-word;
}
.paper + .paper { margin-top: 24px; }
.entry-title { margin: 0 0 18px; font-size: clamp(28px, 4vw, 36px); line-height: 1.2; color: var(--case); }
.entry-title a { color: inherit; text-decoration: none; }
.entry-content h2 { margin-top: 1.8em; font-size: 24px; color: var(--case); }
.entry-content h3 { margin-top: 1.5em; font-size: 20px; }
.entry-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid #d5dee2; padding: 6px 10px; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 18px; border-left: 4px solid var(--brass); color: var(--muted); }
.entry-meta { color: var(--muted); font-size: 15px; margin-top: -10px; }
.pagination { max-width: 820px; margin: 24px auto 0; display: flex; justify-content: space-between; }

/* Hinweis- und Fehlerseiten */
.center { text-align: center; }
.center .logo { width: 150px; margin: 0 auto 8px; display: block; }
.center .lead { font-size: 20px; color: var(--muted); }

/* ---------- Fuß ---------- */
.site-foot { padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 6px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: contents; }

/* WordPress-Klassen */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: static !important; width: auto; height: auto; clip: auto; display: block; padding: 8px 14px; background: var(--brass); color: #2a2208; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand span { display: none; }
}
