/*
Theme Name: Programmier Werkstatt
Theme URI: https://programmier-werkstatt.ch/
Author: Mandre / ChatGPT
Author URI: https://programmier-werkstatt.ch/
Description: Modernes WordPress-Theme für programmier-werkstatt.ch mit Technik-Werkstatt-Farbgebung, responsivem Layout, Navigation, Blog, Seitenvorlagen und rechtlichen Menüs. Ohne Demo-Fülltexte.
Version: 0.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: programmier-werkstatt
Tags: custom-logo, custom-menu, blog, education, grid-layout, wide-blocks
*/

:root {
  --pw-dark: #10283f;
  --pw-dark-2: #071421;
  --pw-blue: #0b5cff;
  --pw-cyan: #00a7ff;
  --pw-red: #e31b23;
  --pw-light: #f6f8fb;
  --pw-card: #ffffff;
  --pw-text: #172033;
  --pw-muted: #64748b;
  --pw-border: #dce6f2;
  --pw-radius: 26px;
  --pw-shadow: 0 22px 60px rgba(7,20,33,.13);
  --pw-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pw-text);
  background: radial-gradient(circle at 12% 8%, rgba(0,167,255,.13), transparent 24rem), var(--pw-light);
  line-height: 1.65;
}
a { color: var(--pw-blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--pw-red); }
img { max-width: 100%; height: auto; }

.pw-skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.pw-skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; z-index: 1000; background: #fff; padding: .8rem 1rem; border-radius: .8rem; }

.pw-site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,230,242,.82);
}
.pw-header-inner, .pw-container { max-width: var(--pw-max); margin: 0 auto; padding-left: 1.2rem; padding-right: 1.2rem; }
.pw-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 1.5rem; }
.pw-brand { display: flex; align-items: center; gap: .9rem; min-width: 220px; text-decoration: none; }
.pw-brand img, .pw-brand svg { max-height: 58px; width: auto; display: block; }
.pw-brand-text { display: none; font-weight: 900; color: var(--pw-dark); letter-spacing: -.04em; }

.pw-menu-toggle { display: none; border: 0; background: var(--pw-dark); color: #fff; border-radius: 999px; padding: .75rem 1rem; font-weight: 800; }
.pw-primary-menu { display: flex; gap: .2rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.pw-primary-menu li { list-style: none; }
.pw-primary-menu a {
  display: block; text-decoration: none; color: var(--pw-dark); font-weight: 760; padding: .7rem .9rem; border-radius: 999px;
}
.pw-primary-menu a:hover, .pw-primary-menu .current-menu-item > a { background: rgba(11,92,255,.10); color: var(--pw-blue); }

.pw-hero {
  position: relative; overflow: hidden; padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 52%, #eaf6ff 100%);
  border-bottom: 1px solid var(--pw-border);
}
.pw-hero::after {
  content: ""; position: absolute; right: -8rem; top: -9rem; width: 36rem; height: 36rem; border-radius: 999px;
  background: radial-gradient(circle, rgba(11,92,255,.20), transparent 68%);
}
.pw-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.pw-kicker { display: inline-flex; gap: .5rem; align-items: center; color: var(--pw-red); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .86rem; }
.pw-kicker::before { content: "+"; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; background: var(--pw-red); color: #fff; border-radius: .42rem; line-height: 1; }
.pw-hero h1 { font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.07em; margin: 1.2rem 0; color: var(--pw-dark-2); }
.pw-hero h1 span { display: block; color: var(--pw-blue); }
.pw-hero p { max-width: 62ch; font-size: 1.18rem; color: #334155; }
.pw-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.pw-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .9rem 1.25rem; font-weight: 900; text-decoration: none; border: 2px solid transparent; }
.pw-button-primary { background: linear-gradient(135deg, var(--pw-blue), var(--pw-cyan)); color: #fff; box-shadow: 0 18px 40px rgba(11,92,255,.22); }
.pw-button-primary:hover { color: #fff; transform: translateY(-1px); }
.pw-button-secondary { color: var(--pw-dark); background: #fff; border-color: var(--pw-border); }
.pw-button-secondary:hover { background: var(--pw-dark); color: #fff; }
.pw-hero-panel { background: rgba(255,255,255,.76); border: 1px solid var(--pw-border); border-radius: 36px; padding: 1.2rem; box-shadow: var(--pw-shadow); }
.pw-code-card { background: #071421; color: #dbeafe; border-radius: 26px; overflow: hidden; }
.pw-code-top { display: flex; gap: .45rem; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.10); }
.pw-dot { width: .8rem; height: .8rem; border-radius: 999px; background: var(--pw-red); }
.pw-dot:nth-child(2){ background: #f59e0b; } .pw-dot:nth-child(3){ background: #22c55e; }
.pw-code-card pre { margin: 0; padding: 1.4rem; overflow: auto; font-size: .96rem; }
.pw-token { color: #38bdf8; } .pw-token2 { color: #fca5a5; } .pw-token3 { color: #86efac; }

.pw-section { padding: 4.5rem 0; }
.pw-section-header { max-width: 760px; margin-bottom: 2rem; }
.pw-section-header h2, .pw-entry-title { color: var(--pw-dark-2); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -.055em; margin: 0 0 .8rem; }
.pw-section-header p { margin: 0; color: var(--pw-muted); font-size: 1.07rem; }
.pw-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.pw-card { background: var(--pw-card); border: 1px solid var(--pw-border); border-radius: var(--pw-radius); padding: 1.35rem; box-shadow: 0 16px 36px rgba(7,20,33,.06); }
.pw-card h3 { margin-top: 0; color: var(--pw-dark); font-size: 1.24rem; }
.pw-card-icon { width: 3rem; height: 3rem; border-radius: 1rem; display: grid; place-items: center; background: linear-gradient(135deg, rgba(11,92,255,.12), rgba(0,167,255,.18)); color: var(--pw-blue); font-weight: 1000; margin-bottom: 1rem; }
.pw-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.pw-panel-dark { color: #eaf2ff; background: linear-gradient(135deg, var(--pw-dark-2), var(--pw-dark)); border-radius: 34px; padding: 2rem; box-shadow: var(--pw-shadow); }
.pw-panel-dark h2, .pw-panel-dark h3 { color: #fff; }
.pw-check-list { padding-left: 0; list-style: none; display: grid; gap: .8rem; }
.pw-check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.pw-check-list li::before { content: "✓"; flex: 0 0 auto; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--pw-blue); font-weight: 900; }

.pw-main { padding: 4rem 0; }
.pw-content-card { background: #fff; border: 1px solid var(--pw-border); border-radius: 32px; padding: clamp(1.2rem, 3vw, 2.4rem); box-shadow: 0 16px 40px rgba(7,20,33,.06); }
.pw-entry-meta { color: var(--pw-muted); margin-bottom: 1rem; }
.pw-post-list { display: grid; gap: 1.1rem; }
.pw-post-item { background: #fff; border: 1px solid var(--pw-border); border-radius: var(--pw-radius); padding: 1.25rem; box-shadow: 0 12px 26px rgba(7,20,33,.05); }
.pw-post-item h2 { margin: 0 0 .4rem; }
.pw-post-item h2 a { color: var(--pw-dark); text-decoration: none; }
.pw-post-item h2 a:hover { color: var(--pw-blue); }

.pw-site-footer { margin-top: 4rem; color: #dbeafe; background: linear-gradient(135deg, var(--pw-dark-2), var(--pw-dark)); }
.pw-footer-inner { max-width: var(--pw-max); margin: 0 auto; padding: 3rem 1.2rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.pw-footer-inner a { color: #eaf2ff; }
.pw-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.pw-footer-menu a { text-decoration: none; opacity: .9; }
.pw-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 1.2rem; text-align: center; color: #bdd2e8; }

.wp-block-button__link { border-radius: 999px; }
.alignwide { max-width: var(--pw-max); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

@media (max-width: 900px) {
  .pw-menu-toggle { display: inline-flex; }
  .pw-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 78px; background: #fff; border: 1px solid var(--pw-border); border-radius: 24px; box-shadow: var(--pw-shadow); padding: .8rem; }
  .pw-nav.is-open { display: block; }
  .pw-primary-menu { display: grid; gap: .2rem; }
  .pw-hero-grid, .pw-split, .pw-footer-inner { grid-template-columns: 1fr; }
  .pw-card-grid { grid-template-columns: 1fr; }
  .pw-hero { padding-top: 3.5rem; }
}
