/*
Theme Name: Fullscreen Hero
Theme URI: https://example.com
Author: Grok
Description: Startseite mit vollständig sichtbarem Bild und Teasertext, Navigation darunter. Blog-Übersicht und Beiträge mit unbeschnittenem Bild. Typografie: Swiss Knife + Poppins.
Version: 2.2
Requires at least: 5.0
Tested up to: 6.6
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fullscreen-hero
Updated: 2026-10-19 18:05 CEST
*/

/* ==========================================================================
   Poppins (SIL Open Font License 1.1) – latin subset, inkl. ä ö ü ß € „ “
   Version 1.6 | 2026-10-19 17:27 CEST
   ========================================================================== */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-latin-300-normal.woff2') format('woff2'),
       url('fonts/poppins-latin-300-normal.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-latin-300-italic.woff2') format('woff2'),
       url('fonts/poppins-latin-300-italic.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-latin-400-normal.woff2') format('woff2'),
       url('fonts/poppins-latin-400-normal.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-latin-400-italic.woff2') format('woff2'),
       url('fonts/poppins-latin-400-italic.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-latin-500-normal.woff2') format('woff2'),
       url('fonts/poppins-latin-500-normal.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-latin-500-italic.woff2') format('woff2'),
       url('fonts/poppins-latin-500-italic.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-latin-600-normal.woff2') format('woff2'),
       url('fonts/poppins-latin-600-normal.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-latin-600-italic.woff2') format('woff2'),
       url('fonts/poppins-latin-600-italic.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-latin-700-normal.woff2') format('woff2'),
       url('fonts/poppins-latin-700-normal.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-latin-700-italic.woff2') format('woff2'),
       url('fonts/poppins-latin-700-italic.woff') format('woff');
}

/* ==========================================================================
   CSS Variables – Swiss Knife tokens
   ========================================================================== */
:root {
  --sk-font: "Poppins", "Avenir Next", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --sk-font-code: "Courier New", Courier, ui-monospace, monospace;
  --sk-color-text: #000000;
  --sk-color-muted: #666666;
  --sk-color-light-grey: #d6d6d6;
  --sk-color-mark: #fefdd5;
  --sk-color-link: #468bdf;
  --sk-color-border: #eee;
  --sk-color-bg: #ffffff;
  --sk-color-footer-bg: #f8f8f8;

  /* ~12pt body / 24pt line → web scale */
  --sk-body-size: 1.0625rem;   /* ~17px */
  --sk-body-lh: 2;
  --sk-content-max: 42rem;     /* ~ book measure */
  --sk-page-pad-x: 1.75rem;
  --sk-page-pad-y: 2rem;
}

/* ==========================================================================
   Reset & Basics
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sk-font);
  font-size: var(--sk-body-size);
  font-weight: 500;
  line-height: var(--sk-body-lh);
  color: var(--sk-color-text);
  background: var(--sk-color-bg);
  hyphens: auto;
  -webkit-hyphens: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sk-color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--sk-color-border);
  padding: 1rem 2rem;
  position: relative;
  z-index: 10;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-navigation a {
  font-weight: 500;
  color: #222;
  padding: 0.5rem 0;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  color: #fff;
  background: #1a1a1a;
}

.hero-fullscreen img.hero-bg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  z-index: 1;
}

.hero-fullscreen .hero-bg:not(img) {
  min-height: 40vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  z-index: 3;
  max-width: min(800px, 92%);
  padding: 2rem;
  line-height: 1.25;
  font-family: var(--sk-font);
}

.hero-position-center .hero-content {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 92%);
  text-align: center;
}

.hero-position-top-left .hero-content {
  top: 2rem;
  left: 2rem;
  text-align: left;
}

.hero-position-bottom-right .hero-content {
  right: 2rem;
  bottom: 2rem;
  text-align: right;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  hyphens: none;
}

.hero-content .teaser {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 1.5rem;
  line-height: 1.45;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Layout: content measure (Swiss Knife page inset spirit)
   ========================================================================== */
.site-content {
  max-width: var(--sk-content-max);
  margin: 0 auto;
  padding: var(--sk-page-pad-y) var(--sk-page-pad-x);
}

.site-content-wide {
  max-width: 980px;
}

.site-content:has(.entry-layout.portrait) {
  max-width: 900px;
}

/* ==========================================================================
   Entry header / meta
   ========================================================================== */
.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title,
.entry-header h1 {
  font-family: var(--sk-font);
  font-size: clamp(1.75rem, 4vw, 2.25rem); /* ~ H2 scale of SK */
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  margin: 0 0 0.75rem;
  hyphens: none;
}

.entry-meta {
  color: var(--sk-color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ==========================================================================
   Swiss Knife – Typography for content
   ========================================================================== */
.entry-content {
  margin-top: 1.5rem;
  font-family: var(--sk-font);
  font-size: var(--sk-body-size);
  line-height: var(--sk-body-lh);
  color: var(--sk-color-text);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Headings (map SK hierarchy) */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--sk-font);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  hyphens: none;
  text-wrap: balance;
  color: var(--sk-color-text);
}

.entry-content h1 {
  font-size: 2rem;      /* ~32pt scale */
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  font-size: 1.5rem;    /* ~24pt */
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.entry-content h3 {
  font-size: 1.25rem;   /* ~18pt */
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content h4 {
  font-size: 1.1rem;    /* ~15pt */
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.entry-content h5 {
  font-size: 1rem;      /* ~12pt bold */
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.entry-content h6 {
  font-size: 1rem;
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs – first-line indent except first (SK rule) */
.entry-content > p {
  margin-bottom: 0;
  margin-top: 0;
}

.entry-content > p + p {
  text-indent: 3em;
}

.entry-content p + h1,
.entry-content p + h2,
.entry-content p + h3,
.entry-content p + h4,
.entry-content p + h5,
.entry-content p + h6,
.entry-content ul + h1,
.entry-content ol + h1,
.entry-content blockquote + h1,
.entry-content ul + h2,
.entry-content ol + h2,
.entry-content blockquote + h2 {
  /* keep heading spacing */
}

/* After headings / lists / quotes: no indent on following p */
.entry-content h1 + p,
.entry-content h2 + p,
.entry-content h3 + p,
.entry-content h4 + p,
.entry-content h5 + p,
.entry-content h6 + p,
.entry-content ul + p,
.entry-content ol + p,
.entry-content blockquote + p,
.entry-content pre + p,
.entry-content figure + p,
.entry-content .wp-block-image + p {
  text-indent: 0;
  margin-top: 0.75rem;
}

.entry-content p {
  margin-bottom: 0;
}

/* spacing between block groups */
.entry-content > * + * {
  margin-top: 0.75rem;
}

.entry-content > h1 + *,
.entry-content > h2 + *,
.entry-content > h3 + * {
  margin-top: 0;
}

/* Strong / Em */
.entry-content strong,
.entry-content b {
  font-weight: 600;
  /* Poppins provides real 600 weight */
}

.entry-content em,
.entry-content i {
  font-style: italic;
}

/* Links (cool-blue from SK) */
.entry-content a {
  color: var(--sk-color-link);
  text-decoration: underline;
  text-decoration-color: var(--sk-color-link);
  text-underline-offset: 0.12em;
}

.entry-content a:hover {
  opacity: 0.85;
}

/* Mark / highlight */
.entry-content mark {
  background-color: var(--sk-color-mark);
  color: inherit;
  padding: 0 0.15em;
}

/* Blockquote */
.entry-content blockquote {
  font-style: italic;
  margin: 1rem 0 1rem 3em;
  padding: 0;
  border: none;
  color: #222;
}

.entry-content blockquote p {
  text-indent: 0 !important;
  text-align: left;
}

/* Code – Courier New like SK */
.entry-content code,
.entry-content kbd,
.entry-content samp {
  font-family: var(--sk-font-code);
  font-size: 0.92em;
  font-weight: normal;
  font-style: normal;
}

.entry-content pre,
.entry-content .wp-block-code {
  font-family: var(--sk-font-code);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #000;
  background: #f6f6f6;
  border: 1px solid var(--sk-color-light-grey);
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  text-align: left;
  hyphens: none;
  tab-size: 4;
}

.entry-content pre code {
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin: 0.75rem 0 0.75rem 3em;
  padding: 0;
  text-align: left;
}

.entry-content li {
  margin-bottom: 0.25rem;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul > li {
  position: relative;
  padding-left: 0.25em;
}

.entry-content ul > li::before {
  content: "–";
  position: absolute;
  left: -1.25em;
  color: #333;
}

.entry-content ol {
  list-style: decimal;
  padding-left: 0.25em;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
}

/* Tables (SK borders) */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5pt solid #000;
  border-bottom: 1.5pt solid #000;
  margin: 1.25rem 0;
  font-size: 0.95em;
  line-height: 1.35;
  text-align: left;
}

.entry-content th,
.entry-content td {
  padding: 0.5rem 0.6rem;
  vertical-align: top;
}

.entry-content thead th,
.entry-content tr:first-child th {
  font-weight: 600;
  border-bottom: 1px solid #929292;
}

/* Figures / captions */
.entry-content figure,
.entry-content .wp-block-image {
  margin: 1.25rem 0 0.75rem;
  text-align: center;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
  font-style: italic;
  font-size: 0.9em;
  color: var(--sk-color-muted);
  margin-top: 0.4rem;
  text-align: center;
  text-indent: 0 !important;
}

/* HR */
.entry-content hr {
  border: none;
  border-top: 1px solid var(--sk-color-light-grey);
  margin: 2rem 0;
}

/* ==========================================================================
   Featured image layouts
   ========================================================================== */
.post-featured-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.entry-layout.landscape .post-featured-image {
  max-width: 100%;
  width: 100%;
  margin: 1.75rem auto 0;
}

.entry-layout.portrait {
  display: flow-root;
  margin-top: 1.5rem;
}

.entry-layout.portrait .entry-content {
  margin-top: 0;
}

.entry-layout.portrait .post-featured-image {
  float: right;
  width: 30%;
  max-width: 30%;
  height: auto;
  margin: 0 0 1rem 1.75rem;
}

.entry-layout + .entry-layout,
.entry-layout + .entry-content {
  margin-top: 2.5rem;
}

/* ==========================================================================
   Blog / archive
   ========================================================================== */
.archive-header {
  margin-bottom: 2rem;
}

.archive-header h1 {
  font-family: var(--sk-font);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.blog-card:not(:has(.blog-card-media)) {
  grid-template-columns: 1fr;
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f3f3f3;
}

.blog-card h2 {
  font-family: var(--sk-font);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.blog-card h2 a {
  color: inherit;
}

.blog-card .entry-meta {
  color: var(--sk-color-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--sk-color-link);
}

.posts-nav {
  margin-top: 2.5rem;
}

.posts-nav .nav-links {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 2rem;
  background: var(--sk-color-footer-bg);
  border-top: 1px solid var(--sk-color-border);
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--sk-color-muted);
  font-family: var(--sk-font);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --sk-body-size: 1rem;
    --sk-body-lh: 1.75;
  }

  .entry-content {
    text-align: left; /* justified often looks worse on narrow screens */
  }

  .entry-content > p + p {
    text-indent: 1.5em;
  }

  .entry-content blockquote {
    margin-left: 1.25em;
  }

  .entry-content ul,
  .entry-content ol {
    margin-left: 1.5em;
  }

  .entry-layout.portrait .post-featured-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
  }

  .entry-layout.landscape .post-featured-image,
  .post-featured-image {
    max-width: 100%;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero-position-center .hero-content {
    padding: 1.25rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Print: closer to book */
@media print {
  body {
    font-size: 11pt;
    line-height: 1.8;
    color: #000;
  }

  .site-header,
  .site-footer,
  .main-navigation {
    display: none;
  }

  .site-content {
    max-width: none;
    padding: 0;
  }

  .entry-content {
    text-align: justify;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
