/*
Theme Name: TypoKiel
Theme URI: https://typokiel.de
Author: Max Schlechtinger
Author URI: https://typokiel.de
Description: Schlankes, eigenständiges WordPress-Theme für TypoKiel – Beratung, Schulung und Vorträge rund um KI und digitale Souveränität. Nüchtern, ruhig, ohne externe Schriftarten-Ladung.
Version: 1.0
Requires at least: 6.0
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: typokiel
*/

/* ---------- Tokens ---------- */
:root {
  --tk-bg: #faf9f6;
  --tk-bg-alt: #f0efe9;
  --tk-text: #22262e;
  --tk-text-muted: #565c66;
  --tk-accent: #2f5d62;
  --tk-accent-dark: #24474b;
  --tk-border: #dcdad2;
  --tk-max-width: 780px;
  --tk-max-width-wide: 1080px;
  --tk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tk-radius: 6px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tk-bg);
  color: var(--tk-text);
  font-family: var(--tk-font);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tk-accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--tk-accent-dark); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
  color: var(--tk-text);
}
h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }

/* ---------- Layout ---------- */
.tk-container {
  max-width: var(--tk-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.tk-container-wide {
  max-width: var(--tk-max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.tk-header {
  border-bottom: 1px solid var(--tk-border);
  background: var(--tk-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.tk-header-inner {
  max-width: var(--tk-max-width-wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tk-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tk-text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.tk-brand:hover { color: var(--tk-accent); }
.tk-brand img { max-height: 36px; display: block; }

.tk-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  padding: 8px 12px;
  font-size: 0.95rem;
  cursor: pointer;
}

.tk-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.tk-nav a {
  color: var(--tk-text);
  text-decoration: none;
  font-size: 0.98rem;
}
.tk-nav a:hover { color: var(--tk-accent); }

@media (max-width: 720px) {
  .tk-nav-toggle { display: inline-block; }
  .tk-nav {
    display: none;
    width: 100%;
  }
  .tk-nav.is-open { display: block; }
  .tk-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 4px;
  }
  .tk-nav a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--tk-border);
  }
  .tk-header-inner { flex-wrap: wrap; }
}

/* ---------- Hero (Startseite) ---------- */
.tk-hero {
  background: var(--tk-bg-alt);
  border-bottom: 1px solid var(--tk-border);
  padding: 64px 24px 56px;
}
.tk-hero .entry-content {
  max-width: var(--tk-max-width);
  margin: 0 auto;
}
.tk-hero .entry-content > h1:first-child,
.tk-hero .entry-content > h2:first-child {
  font-size: 2.4rem;
  max-width: 14ch;
}
@media (max-width: 600px) {
  .tk-hero .entry-content > h1:first-child,
  .tk-hero .entry-content > h2:first-child { font-size: 1.7rem; }
}

/* ---------- Main content ---------- */
main { padding: 48px 0 72px; }
.entry-header { margin-bottom: 0.4em; }
.entry-header h1 { margin-bottom: 0.2em; }

/* ---------- Gutenberg core blocks ---------- */
.wp-block-button__link {
  background: var(--tk-accent);
  color: #fff !important;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--tk-radius);
  font-weight: 600;
  display: inline-block;
}
.wp-block-button__link:hover { background: var(--tk-accent-dark); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--tk-accent) !important;
  border: 1px solid var(--tk-accent);
}

.wp-block-columns {
  gap: 32px;
  margin: 2em 0;
}
.wp-block-column {
  background: #fff;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  padding: 22px 24px;
}
.wp-block-column h3 { margin-top: 0; }

.wp-block-quote {
  border-left: 3px solid var(--tk-accent);
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 20px;
  color: var(--tk-text-muted);
  font-style: italic;
}
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--tk-border);
  margin: 2.5em 0;
}

/* ---------- Footer ---------- */
.tk-footer {
  border-top: 1px solid var(--tk-border);
  background: var(--tk-bg-alt);
  padding: 28px 0;
  font-size: 0.92rem;
  color: var(--tk-text-muted);
}
.tk-footer-inner {
  max-width: var(--tk-max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}
.tk-footer-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.tk-footer-nav a { color: var(--tk-text-muted); text-decoration: none; }
.tk-footer-nav a:hover { color: var(--tk-accent); }
