/*
Theme Name: FERNBEDIENT
Theme URI: https://fernbedient.com
Author: FERNBEDIENT
Author URI: https://fernbedient.com
Description: Eigenes Theme für den Smart-Home-Kanal FERNBEDIENT. Smart home, fern bedient. Dunkles Sysadmin-Design mit Hexagon- und Liniennetz-Motiv, nur MDI-Icons, kein Card-Schnickschnack.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fernbedient
*/

:root {
  --bg: #2b2b2b;       /* base dark grey */
  --panel: #333333;    /* slightly lighter grey */
  --grey: #393939;     /* brand grey (lower third) */
  --line: #4a4a4a;     /* hairlines */
  --blue: #0063ff;     /* brand blue */
  --white: #ffffff;
  --muted: #9a9a9a;
  --font: "Gilroy", -apple-system, "Segoe UI", sans-serif; /* Hausschrift, lokal eingebettet */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* keep sticky header below the WP admin bar */
body.admin-bar header { top: 32px; }
@media (max-width: 782px) { body.admin-bar header { top: 46px; } }

/* ---- hexagon marker (MDI icon) ---- */
.hexm { color: var(--blue); line-height: 1; vertical-align: middle; }

/* ---- top bar ---- */
header {
  position: sticky; top: 0; z-index: 30;
  background: var(--grey);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: flex; align-items: center; }
.logo { height: 30px; display: block; }
.brand .logo { height: 66px; }
nav.main {
  display: flex; gap: 30px; margin-left: auto;
  font-weight: 500; font-size: 15px; letter-spacing: 0.02em;
  list-style: none;
}
nav.main a { color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; display: block; }
nav.main a:hover, nav.main .current-menu-item a { color: var(--white); border-bottom-color: var(--blue); }
.sub {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 14px;
  padding: 9px 16px; letter-spacing: 0.02em;
}
.sub:hover { background: #0052d6; }
.sub .mdi { font-size: 19px; }

/* ---- hero: blue band + connected-line mesh ---- */
.hero { position: relative; background: var(--blue); overflow: hidden; border-bottom: 1px solid #0052d6; }
.hero .mesh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero .wrap { position: relative; z-index: 2; padding-top: 104px; padding-bottom: 112px; }
.herologo { display: block; width: min(560px, 92%); height: auto; margin: 0 0 0 -4px; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); margin-bottom: 26px;
}
.kicker .hexm { color: #fff; font-size: 13px; }
.hero p.lead {
  margin-top: 24px; max-width: 560px; font-size: 21px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.92); font-weight: 400;
}
.hero .cta { display: flex; gap: 18px; margin-top: 38px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.btn.solid { background: #fff; color: var(--blue); }
.btn.solid:hover { background: #eef3ff; }
.btn.ghost { border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn .mdi { font-size: 20px; }

/* ---- section scaffold ---- */
section { padding: 78px 0; border-bottom: 1px solid var(--line); }
.shead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.shead .hexm { font-size: 16px; }
.shead h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.stitle { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: 0.01em; margin-bottom: 44px; max-width: 680px; }

/* ---- Folgen: a list, not cards ---- */
.folgen { display: flex; flex-direction: column; }
.folge { display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.folge:last-child { border-bottom: 1px solid var(--line); }
.folge:hover { background: var(--panel); }
.thumb { position: relative; aspect-ratio: 16/9; background: #1f1f1f; overflow: hidden; }
.thumb .frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #3a3a3a; font-size: 34px; }
.thumb img.thumbimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; right: 7px; bottom: 6px; background: rgba(0, 0, 0, 0.78); font-size: 12px; font-weight: 600; padding: 2px 6px; }
.thumb .corner { position: absolute; left: 6px; top: 4px; color: var(--blue); font-size: 20px; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.folge .meta { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 7px; display: flex; gap: 14px; }
.folge .meta b { color: var(--blue); font-weight: 600; }
.folge h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.folge:hover h3 { color: #cfe0ff; }
.folge .go { color: var(--muted); font-size: 30px; justify-self: end; }
.folge:hover .go { color: var(--blue); }
.emptynote { color: var(--muted); padding: 24px 0; border-top: 1px solid var(--line); }
.emptynote a { color: var(--blue); }

/* ---- Themen: hexagon nodes ---- */
.themen { position: relative; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.topic { background: var(--bg); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; min-height: 168px; }
.topic:hover { background: var(--panel); }
.topic .ic {
  width: 46px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--grey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: var(--blue); font-size: 24px;
}
.topic:hover .ic { background: var(--blue); color: #fff; }
.topic .ic .mdi { line-height: 1; }
.topic h4 { font-size: 18px; font-weight: 600; }
.topic p { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---- Über: text + node diagram ---- */
.ueber { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.ueber p { color: #d7d7d7; margin-bottom: 18px; font-size: 18px; }
.ueber p .hl { color: #fff; font-weight: 600; }
.ueber .stitle .ac { color: var(--blue); }
.nodebox { position: relative; }
.nodebox svg { width: 100%; height: auto; display: block; }
.nodebox .ni { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #2b2b2b; font-size: 19px; }
.nodebox .nlabel text { fill: var(--muted); font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; }

/* ---- generic content (single / page / archive) ---- */
.page-head { padding: 120px 0 0; }
.page-head .stitle { margin-bottom: 0; }
.entry { max-width: 760px; padding: 36px 0 10px; }
.entry p { margin-bottom: 18px; color: #d7d7d7; font-size: 18px; }
.entry h2, .entry h3 { margin: 28px 0 12px; font-weight: 600; }
.entry a { color: var(--blue); }
.entry img { margin: 18px 0; }
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 24px; }
.backlink:hover { color: var(--blue); }

/* ---- footer ---- */
footer { background: var(--grey); padding: 54px 0 40px; }
.fgrid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.fbrand { display: flex; align-items: center; }
.fbrand .logo { height: 30px; }
.fnav { display: flex; gap: 46px; flex-wrap: wrap; }
.fcol h5 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.fcol a { display: block; color: #cfcfcf; font-size: 15px; padding: 4px 0; }
.fcol a:hover { color: var(--blue); }
.joke {
  margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-style: italic; color: var(--muted); font-size: 15px;
}
.joke .right { font-style: normal; letter-spacing: 0.04em; font-size: 13px; }

@media (max-width: 860px) {
  .ueber { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .folge { grid-template-columns: 120px 1fr; gap: 18px; }
  .folge .go { display: none; }
  nav.main { display: none; }
}
