/* =========================================================
   Datei: style.css
   Theme Name: Theme Niklas (Blocksy Child)
   Theme URI: https://niklas-pauli.de/
   Author: Niklas Pauli
   Author URI: https://niklas-pauli.de/
   Description: Child-Theme für Blocksy – graue Claim-Leiste (56px),
                weißes Menü, orangener Balken, klarer reduzierter Stil.
                Zusätze: Positionen-Layout, Zitat-Stil (oranger Strich),
                Kalender (alternierende Einträge), Kontaktformular (Theme-Style).
   Template: blocksy
   Text Domain: theme-niklas
   Version: 251228.1234
========================================================= */

/* =========================================================
   GRUNDLAGEN
========================================================= */
html{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
               "Noto Sans", Helvetica, Arial, sans-serif;
  background:#ffffff;
}

body{
  margin:0;
  color:#111;
  background:#ffffff;
  line-height:1.6;
}

/* Adminbar-Offset (nur Hintergrund, nicht Layout zerstören) */
html.wp-toolbar{
  background:#f3f3f3;
}

/* Links */
a{
  color:#0b1f3a;
  text-decoration:underline;
  text-underline-offset:2px;
}
a:hover{
  color:#f18a00;
}

/* Bilder/Medien */
img{
  max-width:100%;
  height:auto;
}
figcaption,
.wp-element-caption{
  font-size:13px;
  color:#444;
  margin-top:8px;
  text-align:center;
}

/* =========================================================
   BLOCKSY – FULL WIDTH FIXES
========================================================= */
body,
#page,
.site,
.ct-page-wrapper,
.ct-container,
.ct-main-content,
.ct-content,
.ct-panel,
.ct-drawer,
.ct-header,
.site-header,
#header,
#masthead{
  overflow:visible !important;
}

/* =========================================================
   BASIS-LAYOUT / CONTENT BREITE
========================================================= */
.niklas-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  box-sizing:border-box;
}

/* WordPress Content (Block-Editor) */
.entry-content,
.wp-site-blocks,
.wp-block-group__inner-container{
  box-sizing:border-box;
}

.entry-content{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

/* Überschriften */
h1,h2,h3{
  line-height:1.15;
  letter-spacing:-0.2px;
  color:#0b1f3a;
}
h1{ font-size:44px; font-weight:900; margin:0 0 14px 0; }
h2{ font-size:34px; font-weight:900; margin:26px 0 12px 0; }
h3{ font-size:26px; font-weight:900; margin:18px 0 10px 0; }

p{ margin:0 0 14px 0; }
strong{ font-weight:800; }

/* Trennlinie */
hr{
  border:0;
  border-top:1px solid #e6e6e6;
  margin:26px 0;
}

/* =========================================================
   BLOCKSY HEADER DEAKTIVIEREN (weil eigener Header)
========================================================= */
.ct-header,
.site-header,
#header,
header#header,
#masthead,
#main-header{
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}

/* =========================================================
   CLAIM-LEISTE (56px, grau, Text)
========================================================= */
#niklas-claim{
  width:100%;
  height:56px;
  background:#f3f3f3;
  border-bottom:2px solid rgba(247,148,29,.95);
  display:flex;
  align-items:center;
}

.niklas-claim-text{
  width:100%;
  text-align:center;
  font-size:26px;
  font-weight:700;
  color:#222;
  letter-spacing:.6px;
}

/* =========================================================
   TOPBAR – GRID (LOGO | MENÜ | FREIRAUM)
========================================================= */
#niklas-topbar{
  background:#ffffff;
}

#niklas-topbar .niklas-inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  padding:18px 16px 20px 16px;
}

/* Logo */
.niklas-brand{
  justify-self:start;
  text-decoration:none;
}
.niklas-brand-img{
  height:48px;
  width:auto;
  display:block;
}

/* =========================================================
   MENÜ – EXAKT MITTIG
========================================================= */
#niklas-topbar nav{
  justify-self:center;
}

#niklas-topbar nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:22px;
  align-items:center;
}

#niklas-topbar nav li{
  margin:0;
  padding:0;
}

#niklas-topbar nav a{
  text-decoration:none;
  color:#111;
  font-weight:700;
  font-size:15px;
  white-space:nowrap;
}

#niklas-topbar nav a:hover{
  color:#f18a00;
}

/* =========================================================
   ORANGER BALKEN – MIT 2px ABSTAND NACH OBEN
========================================================= */
#niklas-topbar-bar{
  width:100%;
  height:26px;
  background:#f18a00;
  margin-top:2px;
}

/* =========================================================
   BUTTONS (WP Buttons) – Einheitlicher Stil
========================================================= */
.wp-block-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 10px 0;
}

.wp-block-button__link{
  display:inline-block;
  background:#ffffff;
  color:#111 !important;
  border:2px solid rgba(247,148,29,.95);
  border-radius:8px;
  padding:10px 16px;
  font-weight:800;
  text-decoration:none !important;
  box-shadow:none;
}

.wp-block-button__link:hover{
  background:#f18a00;
  border-color:#f18a00;
  color:#111 !important;
  filter:none;
}

/* Fokus */
.wp-block-button__link:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(247,148,29,.18);
}

/* =========================================================
   ZITATE – ORANGER STRICH DAVOR (global)
========================================================= */
blockquote,
.wp-block-quote{
  margin:18px 0;
  padding:10px 0 10px 16px;
  border-left:3px solid rgba(247,148,29,.95);
  background:transparent;
}

blockquote p,
.wp-block-quote p{
  margin:0 0 6px 0;
  font-style:italic;
  color:#111;
}

blockquote cite,
.wp-block-quote cite{
  display:block;
  font-style:normal;
  font-weight:700;
  color:#444;
}

/* Optional: eigene Quote-Klasse */
.np-quote{
  margin:18px 0;
  padding:10px 0 10px 16px;
  border-left:3px solid rgba(247,148,29,.95);
}
.np-quote .np-quote-text{
  margin:0 0 6px 0;
  font-style:italic;
}
.np-quote .np-quote-author{
  margin:0;
  font-weight:800;
  color:#444;
}

/* =========================================================
   POSITIONEN (np-positionen)
========================================================= */
.np-positionen{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  box-sizing:border-box;
}

/* Hero: einspaltig, Bild mittig, groß */
.np-positionen .np-hero{
  display:block;
  background:#f3f3f3;
  border-radius:14px;
  padding:22px 22px 18px 22px;
}

.np-positionen .np-hero h1{
  margin:0 0 10px 0;
}

.np-positionen .np-hero > div{
  max-width:900px;
}

.np-positionen .np-hero .wp-block-buttons{
  margin-top:14px;
}

/* Zitat direkt unter Buttons */
.np-positionen .np-hero blockquote,
.np-positionen .np-hero .np-quote{
  margin-top:10px;
  margin-bottom:16px;
}

/* Hero-Foto: mittig & größer */
.np-positionen .np-hero figure{
  margin:18px 0 0 0;
  text-align:center;
}

.np-positionen .np-hero figure img{
  width:min(820px, 100%);
  border-radius:14px;
  display:inline-block;
}

/* Kacheln */
.np-positionen .np-cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin:18px 0;
}

.np-positionen .np-card{
  background:#ffffff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  padding:14px 14px 12px 14px;
}

.np-positionen .np-card h3{
  margin:0 0 8px 0;
  font-size:18px;
  color:#0b1f3a;
}

.np-positionen .np-card .wp-block-button{
  margin-top:10px;
}

.np-positionen section[id]{
  scroll-margin-top:110px;
}

/* =========================================================
   KALENDER (Shortcode: [niklas_kalender])
========================================================= */
.nkcal-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  box-sizing:border-box;
}
.nkcal-list{
  margin-top:8px;
}
.nkcal-item{
  padding:18px 18px 14px 18px;
  border-radius:14px;
  border:1px solid #e6e6e6;
  margin:0 0 14px 0;
  background:#ffffff;
}
.nkcal-list .nkcal-item:nth-child(even){
  background:#f3f3f3;
}
.nkcal-item{
  border-left:3px solid rgba(247,148,29,.95);
}
.nkcal-title{
  margin:0 0 10px 0;
  font-size:34px;
  font-weight:900;
  color:#0b1f3a;
}
.nkcal-meta{
  margin:0;
  font-size:16px;
  color:#111;
}
.nkcal-subline{
  display:inline-block;
  margin-top:6px;
  color:#444;
}
.nkcal-empty{
  margin:0;
  padding:14px 16px;
  background:#f3f3f3;
  border-left:3px solid rgba(247,148,29,.95);
  border-radius:14px;
  border:1px solid #e6e6e6;
}

/* =========================================================
   KONTAKTFORMULAR (Shortcode: [niklas_contact]) – Theme-Style
========================================================= */
.nk-contact{
  max-width:900px;
  margin:0 auto;
  padding:0 16px;
  box-sizing:border-box;
}
.nk-contact *{
  font-family:inherit;
}
.nk-contact label{
  display:block;
  margin:14px 0 6px 0;
  font-weight:800;
  color:#111;
}
.nk-contact input[type="text"],
.nk-contact input[type="email"],
.nk-contact select,
.nk-contact textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid #d0d0d0;
  border-radius:10px;
  box-sizing:border-box;
  background:#fff;
  color:#111;
  outline:none;
}
.nk-contact input[type="text"]:focus,
.nk-contact input[type="email"]:focus,
.nk-contact select:focus,
.nk-contact textarea:focus{
  border-color: rgba(247,148,29,.95);
  box-shadow: 0 0 0 3px rgba(247,148,29,.18);
}
.nk-contact textarea{
  min-height:220px;
  resize:vertical;
}
.nk-contact .nk-hint{
  font-size:13px;
  color:#444;
  margin-top:10px;
}
.nk-contact .nk-hint a{
  color:#0b1f3a;
  text-decoration:underline;
}
.nk-contact .nk-hint a:hover{
  color:#f18a00;
}
.nk-contact .actions{
  margin-top:16px;
}
.nk-contact .nk-btn{
  background:#f18a00;
  color:#111;
  border:0;
  border-radius:12px;
  padding:12px 18px;
  font-weight:900;
  cursor:pointer;
}
.nk-contact .nk-btn:hover{
  filter:brightness(.95);
}
.nk-contact .nk-msg{
  margin:0 0 16px 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #e7e7e7;
}
.nk-contact .nk-ok{
  background:#f3f3f3;
  border-left:3px solid rgba(247,148,29,.95);
}
.nk-contact .nk-err{
  background:#fff3f3;
  border-left:3px solid #c40000;
}
.nk-contact .hp-wrap{
  position:absolute;
  left:-5000px;
  top:auto;
  height:0;
  overflow:hidden;
}
.nk-contact .nk-captcha{
  margin-top:14px;
}

/* =========================================================
   FOOTER
========================================================= */
.theme-niklas-legalbar{
  background:#111;
  color:#ffffff;
}

.theme-niklas-legalbar .wrap{
  padding:14px 16px;
  text-align:center;
  font-size:14px;
}

.theme-niklas-legalbar a:hover,
.theme-niklas-legalbar a:focus{
  color:#f89132 !important;
  text-decoration:underline;
  outline:none;
}

/* Tastatur-Fokus zusätzlich sichtbar */
.theme-niklas-legalbar a:focus-visible{
  box-shadow:0 0 0 3px rgba(248,145,50,.35);
  border-radius:6px;
}
/* Footer Links-Zeile */
.niklas-legal-links{
  margin-bottom:8px;
  font-size:14px;
}
.niklas-legal-links a{
  color:#ffffff !important;
  text-decoration:underline;
  text-underline-offset:2px;
}
.niklas-legal-links a:hover,
.niklas-legal-links a:focus{
  color:#f89132 !important;
}
.niklas-legal-links span{
  margin:0 6px;
  color:#ffffff;
}

/* =========================================================
   RESPONSIVE – TABLET
========================================================= */
@media (max-width:1024px){
  #niklas-claim{ height:44px; }
  .niklas-claim-text{ font-size:20px; }

  #niklas-topbar .niklas-inner{
    grid-template-columns:1fr;
    justify-items:center;
    gap:14px;
    padding:16px;
  }

  h1{ font-size:38px; }
  h2{ font-size:30px; }

  .np-positionen .np-cards{
    grid-template-columns:repeat(2, 1fr);
  }

  .nkcal-title{
    font-size:30px;
  }
}

/* =========================================================
   RESPONSIVE – MOBILE
========================================================= */
@media (max-width:640px){
  .niklas-brand-img{ height:40px; }

  #niklas-topbar nav ul{
    flex-direction:column;
    gap:10px;
  }

  #niklas-topbar-bar{ height:20px; }

  h1{ font-size:32px; }
  h2{ font-size:26px; }
  h3{ font-size:22px; }

  .wp-block-buttons{
    gap:8px;
  }

  .wp-block-button__link{
    width:100%;
    text-align:center;
  }

  .np-positionen .np-cards{
    grid-template-columns:1fr;
  }

  .nkcal-item{
    padding:16px 14px 12px 14px;
  }

  .nkcal-title{
    font-size:26px;
  }
}

/* =========================================================
   FIX: Footer-Links klickbar trotz Blocksy-Overlays
========================================================= */
.theme-niklas-legalbar{
  position:relative;
  z-index:999999;
}

.theme-niklas-legalbar nav,
.theme-niklas-legalbar ul,
.theme-niklas-legalbar li,
.theme-niklas-legalbar a{
  position:relative;
  z-index:1000000;
  pointer-events:auto;
}
