/*
Theme Name: Kolberg Data Solutions
Theme URI: https://kolbergdatasolutions.de/
Author: Pawel Kolberg
Author URI: https://kolbergdatasolutions.de/
Description: Schlankes Ein-Zweck-Theme fuer Kolberg Data Solutions – Geoinformatik, Netzplanung und Geodaten. Selbst gehostete Schriften, kein Tracking, keine externen Aufrufe.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: kolbergdatasolutions
*/

/* ===== Fonts – lokal gehostet (keine Aufrufe an Google-Server) ===== */
@font-face { font-family: 'Oswald'; font-weight: 200 700; font-style: normal; font-display: swap; src: url('assets/fonts/oswald.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif Pro'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/source-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif Pro'; font-weight: 400; font-style: italic; font-display: swap; src: url('assets/fonts/source-serif-400i.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif Pro'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/source-serif-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('assets/fonts/plex-mono-500.woff2') format('woff2'); }

/* ===== Tokens ===== */
:root {
  --brand-blue: #29abe2;
  --brand-blue-deep: #146f98;
  --ink: #0c1114;
  --paper: #f6f7f8;
  --paper-2: #eceef0;
  --paper-3: #dde1e3;
  --bg: var(--paper);
  --bg-raised: #ffffff;
  --bg-sunken: var(--paper-2);
  --line: rgba(12, 17, 20, 0.13);
  --line-strong: rgba(12, 17, 20, 0.26);
  --text: #12181b;
  --text-dim: #4c565b;
  --text-faint: #798388;
  --accent: var(--brand-blue-deep);
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink); --bg-raised: #161d21; --bg-sunken: #080b0d;
    --line: rgba(246, 247, 248, 0.14); --line-strong: rgba(246, 247, 248, 0.28);
    --text: #f2f4f5; --text-dim: #aab2b5; --text-faint: #737d81; --accent: var(--brand-blue);
  }
}
:root[data-theme="dark"] {
  --bg: var(--ink); --bg-raised: #161d21; --bg-sunken: #080b0d;
  --line: rgba(246, 247, 248, 0.14); --line-strong: rgba(246, 247, 248, 0.28);
  --text: #f2f4f5; --text-dim: #aab2b5; --text-faint: #737d81; --accent: var(--brand-blue);
}
:root[data-theme="light"] {
  --bg: var(--paper); --bg-raised: #ffffff; --bg-sunken: var(--paper-2);
  --line: rgba(12, 17, 20, 0.13); --line-strong: rgba(12, 17, 20, 0.26);
  --text: #12181b; --text-dim: #4c565b; --text-faint: #798388; --accent: var(--brand-blue-deep);
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--brand-blue); color: #06121a; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 0.6em; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.tabular { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--brand-blue-deep); color: #fff; padding: 8px 14px; z-index: 100; font-family: var(--font-mono); font-size: 13px; }

/* ===== Header (fixed light letterhead in both themes) ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 247, 248, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(12, 17, 20, 0.13); }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.headbar { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(20px, 5vw, 56px); max-width: 1160px; margin: 0 auto; }
.mark { display: flex; align-items: center; text-decoration: none; }
.mark img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; }
.main-nav a { text-decoration: none; color: #4c565b; padding: 6px 0; }
.main-nav a:hover, .main-nav a:focus-visible { color: #12181b; }
.main-nav a.cta { color: #fff; background: var(--brand-blue-deep); padding: 9px 16px; border: 1px solid var(--brand-blue-deep); }
.main-nav a.cta:hover { background: var(--brand-blue); border-color: var(--brand-blue); }
.navtoggle { display: none; }

/* ===== Hero (network plan as full-bleed background, fixed light panel) ===== */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(460px, 68vh, 660px); padding: clamp(40px, 6vw, 72px) 0; background-color: #eef2f4; border-bottom: 1px solid rgba(12, 17, 20, 0.13); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(238,242,244,0.97) 0%, rgba(238,242,244,0.86) 40%, rgba(238,242,244,0.42) 70%, rgba(238,242,244,0.12) 100%); }
.hero > .wrap { position: relative; z-index: 1; width: 100%; }
.hero-inner { max-width: 620px; }
.hero .eyebrow { color: #146f98; }
.hero .eyebrow::before { background: #146f98; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.03; margin-top: 16px; color: #12181b; }
.hero h1 em { font-style: normal; color: #146f98; }
.hero-lede { font-size: clamp(17px, 1.5vw, 19.5px); color: #3a464c; max-width: 52ch; margin-top: 20px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn { color: #12181b; border-color: rgba(12,17,20,0.26); }
.hero .btn.ghost:hover { border-color: #146f98; color: #146f98; }
.hero .btn.primary { background: #146f98; border-color: #146f98; color: #fff; }
.hero .btn.primary:hover { opacity: 0.9; }
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-veil { background: linear-gradient(180deg, rgba(238,242,244,0.92) 0%, rgba(238,242,244,0.86) 60%, rgba(238,242,244,0.78) 100%); }
}

/* ===== Buttons ===== */
.btn { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.02em; text-decoration: none; padding: 13px 22px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; gap: 10px; color: var(--text); transition: border-color .15s ease, color .15s ease, background .15s ease, opacity .15s ease; }
.btn.primary { background: var(--brand-blue-deep); border-color: var(--brand-blue-deep); color: #fff; }
.btn.primary:hover { opacity: 0.88; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-color-scheme: dark) { .btn.primary { background: var(--brand-blue); border-color: var(--brand-blue); color: #06121a; } }
:root[data-theme="dark"] .btn.primary { background: var(--brand-blue); border-color: var(--brand-blue); color: #06121a; }
:root[data-theme="light"] .btn.primary { background: var(--brand-blue-deep); border-color: var(--brand-blue-deep); color: #fff; }

/* ===== Stat strip ===== */
.stats { border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px clamp(18px, 3vw, 34px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; color: var(--text); }
.stat span { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.01em; }

/* ===== Section shell ===== */
section.block { padding: clamp(52px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; margin-bottom: clamp(36px, 5.5vw, 60px); align-items: end; }
.block-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 12px; line-height: 1.08; }
.block-head p { color: var(--text-dim); font-size: 16px; max-width: 46ch; }

/* ===== Services / phases ===== */
.phaseline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 22px; }
.phaseline::before { content: ''; position: absolute; top: 21px; left: 3%; right: 3%; height: 1px; background: var(--line-strong); z-index: 0; }
.phase { position: relative; padding: 0 20px 0 0; z-index: 1; }
.phase:last-child { padding-right: 0; }
.phase-num { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent); background: var(--bg); padding-right: 10px; margin-bottom: 16px; display: inline-block; }
.phase-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.phase h3 { font-size: 18px; line-height: 1.18; margin-bottom: 9px; text-transform: none; }
.phase p { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; margin: 0; }
.cross { margin-top: 6px; border: 1px solid var(--line-strong); padding: clamp(22px, 3vw, 30px); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cross h3 { font-size: 18.5px; text-transform: none; margin-bottom: 7px; }
.cross p { color: var(--text-dim); font-size: 14.5px; margin: 0; max-width: 64ch; }
.cross .btn { white-space: nowrap; }

/* ===== References ===== */
.reflist { border-top: 1px solid var(--line-strong); max-width: 74ch; }
.refrow { padding: 22px 0; border-bottom: 1px solid var(--line); }
.refrow h4 { font-size: 16.5px; text-transform: none; font-weight: 600; margin-bottom: 6px; }
.refrow p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.reflogo { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); padding: 9px 14px; margin-bottom: 11px; }
.reflogo img { height: 21px; width: auto; display: block; }

/* ===== About ===== */
.aboutgrid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 60px); }
.avatar { aspect-ratio: 4/5; border: 1px solid var(--line-strong); background: var(--bg-sunken); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-copy p { color: var(--text-dim); font-size: 16.5px; max-width: 58ch; margin: 0 0 18px; }
.about-copy p:first-of-type { font-size: 19px; color: var(--text); }
.quallist { margin-top: 30px; border-top: 1px solid var(--line-strong); }
.quallist .contact-line { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; }
.quallist .contact-line dd { text-align: left; font-family: var(--font-body); font-size: 15.5px; color: var(--text-dim); }
.role { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); letter-spacing: 0.02em; margin-top: 8px; }
@media (max-width: 480px) { .quallist .contact-line { grid-template-columns: 1fr; gap: 4px; } }

/* ===== Contact ===== */
.contact-block { padding: clamp(52px, 8vw, 96px) 0; }
.contactgrid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-block h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.05; margin-top: 12px; max-width: 15ch; }
.contact-block .lede { color: var(--text-dim); font-size: 16.5px; max-width: 44ch; margin-top: 16px; }
.cardbox { border: 1px solid var(--line-strong); padding: clamp(24px, 3vw, 30px); }
.contact-line { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-line:last-of-type { border-bottom: none; }
.contact-line dt { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-line dd { margin: 0; text-align: right; font-family: var(--font-mono); font-size: 14.5px; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { color: var(--accent); }
.cardbox .btn { width: 100%; justify-content: center; margin-top: 20px; }
dl { margin: 0; }

/* ===== Footer ===== */
.site-footer { padding: 24px 0; border-top: 1px solid var(--line); }
.footbar { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); flex-wrap: wrap; gap: 10px; }
.footlinks a { color: var(--text-dim); text-decoration: none; }
.footlinks a:hover { color: var(--accent); }

/* ===== Legal / generic pages (page.php) ===== */
.legal { padding: clamp(52px, 8vw, 96px) 0; }
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 22px; line-height: 1.06; }
.legal h2 { font-size: 16px; text-transform: none; font-weight: 600; margin: 28px 0 6px; }
.legal h3 { font-size: 15px; text-transform: none; font-weight: 600; margin: 22px 0 6px; }
.legal p { color: var(--text-dim); font-size: 15px; max-width: 80ch; margin: 0 0 12px; }
.legal ul { color: var(--text-dim); font-size: 15px; max-width: 80ch; margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--accent); }
.legal .addr { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .block-head, .aboutgrid, .contactgrid { grid-template-columns: 1fr; }
  .phaseline { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .phaseline::before { display: none; }
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .main-nav { position: fixed; inset: 61px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 26px clamp(20px,5vw,56px); gap: 20px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav[data-open="true"] { transform: translateX(0); }
  .navtoggle { display: flex; background: none; border: 1px solid rgba(12,17,20,0.26); color: #12181b; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; font-family: var(--font-mono); font-size: 12px; }
  .cross { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .phaseline { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0.01ms !important; } }
