/* ============================================================
   MiWi Consulting WP Theme – Executive Atlas Design System
   Navy · Gold · Vapor-Cream · Fraunces + Manrope
   ============================================================ */

:root {
  --navy-900: #0A1A33;
  --navy-800: #0F2647;
  --navy-700: #1A3563;
  --navy-100: #E5E9F0;

  --gold-600: #A8854A;
  --gold-500: #B8945A;
  --gold-400: #D4B47A;

  --cream:    #F5F2EC;
  --vapor:    #E8EBEF;
  --paper:    #FAFAF7;
  --ink:      #161618;
  --ink-soft: #4A4A52;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem;
  --s-4: 2rem;    --s-5: 3rem;   --s-6: 4.5rem; --s-7: 7rem;

  --max-w: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --shadow-soft: 0 1px 2px rgba(10,26,51,.04), 0 8px 24px rgba(10,26,51,.06);
  --shadow-card: 0 2px 8px rgba(10,26,51,.06), 0 16px 40px rgba(10,26,51,.08);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-800); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 var(--s-2);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--s-2); color: var(--ink-soft); }

blockquote {
  border-left: 3px solid var(--gold-500);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy-800);
  font-weight: 300;
}

code {
  background: var(--vapor);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.92em;
}
pre {
  background: var(--navy-900);
  color: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88em;
  line-height: 1.55;
}
pre code { background: transparent; padding: 0; color: inherit; }

hr {
  border: 0;
  border-top: 1px solid rgba(10,26,51,.1);
  margin: var(--s-4) 0;
}

/* Layout primitives */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold-500);
}

/* Skip link (Accessibility) */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; width: auto; height: auto;
  padding: .5rem 1rem; background: var(--navy-900); color: var(--cream);
  z-index: 9999;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(10,26,51,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.brand {
  display: flex; align-items: baseline; gap: 0.55rem;
  font-family: var(--font-display); font-size: 1.35rem;
  color: var(--navy-900); font-weight: 400; letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-block; width: 11px; height: 11px;
  background: var(--gold-500); transform: rotate(45deg);
}
.brand strong { font-weight: 600; }
.brand span { color: var(--ink-soft); font-style: italic; font-size: 0.95em; }

.nav-links { display: flex; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--navy-800);
  position: relative; padding: 0.25rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold-500);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links li.current-menu-item a::after,
.nav-links li.current_page_item a::after { width: 100%; }
.nav-links li.cta-item a, .nav-links a.cta {
  background: var(--navy-900); color: var(--cream);
  padding: 0.55rem 1.1rem; border-radius: 2px;
}
.nav-links li.cta-item a:hover, .nav-links a.cta:hover { background: var(--gold-600); color: var(--paper); }
.nav-links li.cta-item a::after, .nav-links a.cta::after { display: none; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--navy-900);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  cursor: pointer; color: var(--navy-900);
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: var(--s-2);
    background: var(--paper);
    border-bottom: 1px solid rgba(10,26,51,.08);
    padding: var(--s-3) var(--gutter);
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero (Front-Page) ---------- */
.hero {
  position: relative;
  padding: var(--s-7) 0 var(--s-6);
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,26,51,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,26,51,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--s-6); align-items: center; position: relative;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-4); } }
.hero h1 .italic { font-style: italic; color: var(--gold-600); font-weight: 400; }
.hero-meta { margin-top: var(--s-4); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-meta a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; font-weight: 500; font-size: 0.95rem;
  border-radius: 2px; transition: all .25s ease;
}
.btn-primary { background: var(--navy-900); color: var(--cream); }
.btn-primary:hover { background: var(--gold-600); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--navy-900); color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: var(--cream); }

.hero-card {
  background: var(--navy-900); color: var(--cream);
  padding: var(--s-4); border-radius: 4px; position: relative;
  box-shadow: var(--shadow-card);
}
.hero-card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--gold-500); border-left: 2px solid var(--gold-500);
}
.hero-card::after {
  content: ""; position: absolute; bottom: -1px; right: -1px;
  width: 28px; height: 28px;
  border-bottom: 2px solid var(--gold-500); border-right: 2px solid var(--gold-500);
}
.hero-card h3 { color: var(--paper); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: var(--s-2); }
.hero-card .stat-row {
  display: flex; justify-content: space-between;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.05em;
}
.hero-card .stat-row:last-child { border-bottom: none; }
.hero-card .stat-row span:last-child { color: var(--gold-400); }

/* ---------- Sections ---------- */
section.miwi-section { padding: var(--s-6) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: var(--s-4); margin-bottom: var(--s-5); align-items: end;
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: var(--s-2); } }
.section-head h2 { margin: 0; }
.section-head p { font-size: 1.05rem; max-width: 56ch; }

/* Domains grid */
.domains {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: rgba(10,26,51,.08); border: 1px solid rgba(10,26,51,.08);
}
.domain { background: var(--paper); padding: var(--s-4); position: relative; transition: background .25s ease; }
.domain:hover { background: var(--cream); }
.domain-num {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--gold-600); letter-spacing: 0.15em;
  margin-bottom: var(--s-2);
}
.domain h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.domain p { font-size: 0.96rem; margin-bottom: 0; }

/* About strip */
.about { background: var(--navy-900); color: var(--cream); padding: var(--s-7) 0; position: relative; }
.about h2 { color: var(--paper); }
.about p { color: rgba(245,242,236,.8); font-size: 1.08rem; }
.about .eyebrow { color: var(--gold-400); }
.about .eyebrow::before { background: var(--gold-400); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.stat { border-top: 1px solid rgba(212,180,122,.3); padding-top: var(--s-2); }
.stat-number { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-400); line-height: 1; font-weight: 300; }
.stat-label {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,242,236,.6); margin-top: 0.4rem;
}

/* Tools teaser */
.tools-teaser { background: var(--cream); padding: var(--s-6) 0; }
.tools-teaser-card {
  background: var(--paper); padding: var(--s-5);
  border: 1px solid rgba(10,26,51,.08);
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-4); align-items: center;
}
@media (max-width: 700px) { .tools-teaser-card { grid-template-columns: 1fr; } }
.tools-teaser-card h2 { margin-bottom: 0.5rem; }
.tools-teaser-card p { margin-bottom: 0; }
.lock-icon {
  width: 14px; height: 14px; display: inline-block;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1a5 5 0 015 5v4h2a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V12a2 2 0 012-2h2V6a5 5 0 015-5zm0 2a3 3 0 00-3 3v4h6V6a3 3 0 00-3-3z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1a5 5 0 015 5v4h2a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V12a2 2 0 012-2h2V6a5 5 0 015-5zm0 2a3 3 0 00-3 3v4h6V6a3 3 0 00-3-3z'/></svg>") center/contain no-repeat;
  vertical-align: -2px; margin-right: 0.4rem;
}

/* ---------- Insights / Blog ---------- */
.insights-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-3);
}
.insight-card {
  background: var(--paper); border: 1px solid rgba(10,26,51,.08);
  padding: var(--s-3); display: flex; flex-direction: column; gap: 0.8rem;
  transition: all .25s ease;
}
.insight-card:hover { border-color: var(--gold-500); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.insight-card .meta {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600);
}
.insight-card h3 { font-size: 1.25rem; margin: 0; }
.insight-card h3 a { color: var(--navy-900); }
.insight-card h3 a:hover { color: var(--gold-600); }
.insight-card .excerpt { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }
.insight-card .read-more {
  margin-top: auto; font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--navy-800); border-top: 1px solid rgba(10,26,51,.06); padding-top: 0.8rem;
}

/* ---------- Single Post / Page ---------- */
.page-hero {
  padding: var(--s-6) 0 var(--s-3); position: relative;
  background: linear-gradient(180deg, var(--paper), var(--cream));
}
.page-hero h1 { margin-bottom: var(--s-2); }
.page-hero .meta {
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--ink-soft); letter-spacing: 0.06em;
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.page-hero .meta a { color: var(--gold-600); }

.prose, .entry-content {
  max-width: 70ch; margin: 0 auto; padding: var(--s-4) 0 var(--s-6);
}
.prose .lead, .entry-content > .lead {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 300;
  font-style: italic; color: var(--navy-800); line-height: 1.4;
  margin-bottom: var(--s-4);
}
.prose p, .entry-content p { font-size: 1.02rem; }
.prose h2, .entry-content h2 { margin-top: var(--s-4); }
.prose h3, .entry-content h3 { margin-top: var(--s-3); }
.prose ul, .entry-content ul { padding-left: 1.2rem; }
.prose ul li, .entry-content ul li { margin-bottom: 0.4rem; }
.prose img, .entry-content img { border-radius: 4px; margin: 1.5rem 0; }
.prose figure, .entry-content figure { margin: 1.5rem 0; }
.prose figcaption, .entry-content figcaption {
  font-size: 0.88rem; color: var(--ink-soft);
  font-style: italic; margin-top: 0.5rem;
}

/* Wider blocks (Gutenberg align-wide) */
.alignwide { width: calc(100% + 8rem); margin-left: -4rem; max-width: none; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
@media (max-width: 900px) { .alignwide { width: 100%; margin-left: 0; } }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  padding: var(--s-3) 0; margin-top: var(--s-3);
  border-top: 1px solid rgba(10,26,51,.08);
}
.pagination a, .pagination span {
  padding: 0.5rem 0.9rem; font-family: var(--font-mono); font-size: 0.85rem;
  border: 1px solid rgba(10,26,51,.1); border-radius: 2px;
  color: var(--navy-800);
}
.pagination a:hover { border-color: var(--gold-500); color: var(--gold-600); }
.pagination .current { background: var(--navy-900); color: var(--cream); border-color: var(--navy-900); }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 0.5rem; max-width: 480px; }
.search-form input[type="search"] {
  flex: 1; padding: 0.7rem 1rem; font-size: 1rem; font-family: var(--font-body);
  border: 1px solid rgba(10,26,51,.15); border-radius: 2px; background: var(--paper);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.search-form button {
  padding: 0.7rem 1.2rem; background: var(--navy-900); color: var(--cream);
  border: none; cursor: pointer; font-family: var(--font-body); font-size: 0.95rem;
  border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: rgba(245,242,236,.7);
  padding: var(--s-5) 0 var(--s-3); font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  color: var(--gold-400); font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 500; margin: 0 0 var(--s-2);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(245,242,236,.75); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .brand { color: var(--paper); }
.site-footer .brand strong { color: var(--paper); }
.site-footer .brand span { color: rgba(245,242,236,.6); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: var(--s-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2);
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.05em; color: rgba(245,242,236,.5);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- WP-Specific ---------- */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin-top: 0.5rem; }
.sticky { /* WP sticky post – kein Custom-Style nötig */ }
.bypostauthor { /* nicht verwendet (Kommentare aus) */ }
.gallery-caption {}
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important; word-wrap: normal !important;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero-card, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
