/*
Theme Name: krobath.cc
Theme URI: https://krobath.cc
Author: Alexander Krobath
Description: Individuelles One-Pager-Theme mit Blog im Design „Bold" – Analysieren. Automatisieren. Optimieren.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: krobathcc
*/

/* ---------- Fonts (lokal gebündelt, DSGVO-konform, SIL OFL) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 400;
  src: url("fonts/BricolageGrotesque-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  src: url("fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  font-weight: 400;
  src: url("fonts/WorkSans-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  font-weight: 700;
  src: url("fonts/WorkSans-Bold.ttf") format("truetype");
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #ffffff;
  --ink: #101418;
  --gray: #5f6870;
  --line: #e8eaec;
  --accent: #2242ff;
  --lime: #d8ff3d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: "Work Sans", sans-serif; line-height: 1.65; }
h1, h2, h3, .sg { font-family: "Bricolage Grotesque", sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.site-nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 2px solid var(--ink); flex-wrap: wrap; gap: 12px; }
.logo { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.site-nav .links { display: flex; flex-wrap: wrap; }
.site-nav .links a { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; margin-left: 26px; }
.site-nav .links a:hover { color: var(--accent); }
.site-nav ul { list-style: none; display: flex; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 80px; }
.hero .pill { display: inline-block; font-size: 13px; font-weight: 500; border: 1.5px solid var(--ink); border-radius: 99px; padding: 6px 16px; margin-bottom: 30px; }
.hero .pill b { color: var(--accent); }
.hero h1 { font-size: clamp(42px, 7.5vw, 84px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.hero h1 mark { background: var(--lime); padding: 0 10px; }
.hero p { margin-top: 30px; max-width: 52ch; color: var(--gray); font-size: 19px; }
.cta-row { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.cta { font-family: "Bricolage Grotesque", sans-serif; font-size: 16px; font-weight: 500; text-decoration: none; padding: 15px 30px; border-radius: 8px; }
.cta.primary { background: var(--accent); color: #fff; }
.cta.primary:hover { background: var(--ink); color: #fff; }
.cta.ghost { border: 2px solid var(--ink); color: var(--ink); }
.cta.ghost:hover { background: var(--lime); }

/* ---------- Sektionen ---------- */
section { padding: 80px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 44px; border-top: 2px solid var(--ink); padding-top: 20px; }
.sec-head h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.sec-head .idx { font-family: "Bricolage Grotesque", sans-serif; color: var(--accent); font-weight: 700; font-size: 18px; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.tile { border: 2px solid var(--ink); border-radius: 14px; padding: 32px 28px; position: relative; transition: transform .15s; }
.tile:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--lime); }
.tile h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.tile p { color: var(--gray); font-size: 15.5px; }
.tile .chip { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }

/* ---------- Blogliste ---------- */
.bpost { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 26px 6px; border-bottom: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.bpost:first-of-type { border-top: 1.5px solid var(--line); }
.bpost:hover { background: #fafbfc; }
.bpost .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 15px; color: var(--accent); }
.bpost h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.bpost small { display: block; color: var(--gray); margin-top: 4px; font-size: 14px; }
.bpost .arr { font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; }
.bpost:hover .arr { color: var(--accent); }
.pagination { margin-top: 34px; font-weight: 500; }
.pagination a, .pagination span { margin-right: 12px; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about p { color: var(--gray); font-size: 16.5px; margin-bottom: 14px; }
.about p b { color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.badge { font-family: "Bricolage Grotesque", sans-serif; font-size: 13.5px; font-weight: 500; border: 1.5px solid var(--ink); border-radius: 99px; padding: 8px 16px; }
.badge.hi { background: var(--ink); color: var(--lime); }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }

/* ---------- Artikel (single) & Seiten ---------- */
.article-head { padding: 70px 0 30px; border-bottom: 2px solid var(--ink); }
.article-head .meta { font-size: 14px; color: var(--gray); font-weight: 500; margin-bottom: 16px; }
.article-head .meta b { color: var(--accent); }
.article-head h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; max-width: 22ch; }
.prose { max-width: 720px; margin: 0 auto; padding: 60px 24px 80px; font-size: 18px; }
.prose p { margin-bottom: 22px; }
.prose h2 { font-size: 28px; margin: 44px 0 16px; }
.prose h3 { font-size: 22px; margin: 36px 0 14px; }
.prose ul, .prose ol { margin: 0 0 22px 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 4px solid var(--lime); padding: 6px 0 6px 22px; font-family: "Bricolage Grotesque", sans-serif; font-size: 21px; margin-bottom: 22px; }
.prose mark { background: var(--lime); padding: 0 4px; }
.backlink { display: inline-block; margin-top: 10px; font-weight: 500; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 80px 0 40px; }
.site-footer h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.site-footer h2 span { color: var(--lime); }
.site-footer .contact { margin-top: 26px; font-size: 17px; }
.site-footer .contact a { color: var(--lime); text-decoration: none; font-weight: 500; }
.site-footer .fine { margin-top: 60px; font-size: 12.5px; color: #7a838c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer .fine a { color: #7a838c; }

/* ---------- WordPress-Standards ---------- */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin: 0 auto 22px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray); margin-top: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sticky, .bypostauthor { display: inherit; }

/* ---------- v1.1: 4er-Raster & verlinkte Kachel (Startseite) ---------- */
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tile-link { display: block; text-decoration: none; color: var(--ink); }
.tile-link .tile-more { display: inline-block; margin-top: 14px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 14.5px; color: var(--accent); }
.tile ul { list-style: none; margin-top: 14px; }
.tile ul li { color: var(--gray); font-size: 15px; padding: 5px 0 5px 22px; position: relative; }
.tile ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: "Bricolage Grotesque", sans-serif; }

/* ---------- v1.1: Praxis-IT-Seite ---------- */
.pit-pain { border: 2px solid var(--ink); border-radius: 14px; padding: 26px 24px; background: #fafbfc; }
.pit-pain b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 17px; margin-bottom: 8px; }
.pit-pain p { color: var(--gray); font-size: 15px; }
.pit-steps { display: grid; gap: 0; }
.pit-step { display: flex; gap: 26px; padding: 26px 6px; border-bottom: 1.5px solid var(--line); align-items: flex-start; }
.pit-step:first-of-type { border-top: 1.5px solid var(--line); }
.pit-step .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 20px; color: var(--accent); min-width: 44px; padding-top: 2px; }
.pit-step h3 { font-size: 20px; margin-bottom: 4px; }
.pit-step p { color: var(--gray); font-size: 15.5px; }
.pit-faq details { border-bottom: 1.5px solid var(--line); padding: 20px 4px; }
.pit-faq details:first-of-type { border-top: 1.5px solid var(--line); }
.pit-faq summary { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 17.5px; cursor: pointer; }
.pit-faq summary:hover { color: var(--accent); }
.pit-faq p { color: var(--gray); margin-top: 12px; max-width: 75ch; }
.pit-cta p { color: var(--gray); max-width: 52ch; font-size: 17px; }
