/*
Theme Name: GadgetLumo
Theme URI: https://gadgetlumo.com
Author: Marcel
Description: Schnelles, schlankes Theme für GadgetLumo.com – Gadgets, Tests & Deals. Mobile-first, DSGVO-konform, System-Fonts, keine externen Abhängigkeiten.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gadgetlumo
Tags: blog, news, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================
   1. Tokens
   ========================================================== */
:root {
  --bg: #f7f8fa;
  --paper: #ffffff;
  --ink: #1b2430;
  --muted: #5b6675;
  --line: #e5e9f0;
  --night: #0b1220;
  --night-2: #131c2e;
  --cyan: #00c2d7;
  --violet: #7c3aed;
  --amazon: #ff9900;
  --amazon-dark: #e68a00;
  --grad: linear-gradient(90deg, var(--cyan), var(--violet));
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --content: 760px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--night); color: #fff; padding: 10px 16px; z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important;
  word-wrap: normal !important;
}

/* ==========================================================
   3. Header + Signatur "Lumo-Bar"
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--night);
  color: #fff;
}
.lumo-bar { height: 3px; background: var(--grad); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
}
.brand:hover { color: #fff; }
.brand-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-text {
  font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.brand-lumo {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.nav-open .site-nav {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--night-2);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 40px rgba(11, 18, 32, .45);
}
.nav-list { list-style: none; margin: 0; padding: 8px 0; }
.nav-list li { position: relative; }
.nav-list a {
  display: block; padding: 12px 18px;
  color: #e8ecf3; text-decoration: none; font-weight: 600; font-size: 16px;
}
.nav-list a:hover { color: var(--cyan); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--cyan); }
.nav-list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 16px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; }
  .nav-list { display: flex; align-items: center; gap: 4px; padding: 0; }
  .nav-list a { padding: 10px 13px; border-radius: var(--radius-sm); font-size: 15.5px; }
  .nav-list a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .nav-list .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--night-2); border-radius: var(--radius-sm); padding: 6px;
    box-shadow: 0 16px 40px rgba(11, 18, 32, .45);
  }
  .nav-list li:hover > .sub-menu,
  .nav-list li:focus-within > .sub-menu { display: block; }
}

/* ==========================================================
   4. Hero (Startseite)
   ========================================================== */
.hero {
  background: var(--night);
  color: #fff;
  padding: 44px 0 52px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--grad); opacity: .8;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
}
.hero-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px var(--cyan);
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
}
.hero p { margin: 0; max-width: 640px; color: #aeb8c8; font-size: clamp(16px, 2.4vw, 18.5px); }

/* ==========================================================
   5. Karten-Grid (Archiv / Blog)
   ========================================================== */
.section { padding: 34px 0 54px; }
.section-title {
  font-size: clamp(21px, 3.4vw, 26px); font-weight: 800; letter-spacing: -.02em;
  margin: 0 0 20px;
}
.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-eyebrow, .entry-eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--violet); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.card-eyebrow::before, .entry-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad);
}
.card-eyebrow a, .entry-eyebrow a { color: inherit; text-decoration: none; }
.card-title { margin: 0; font-size: 18.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--violet); }
.card-excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-meta { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ==========================================================
   6. Einzelansicht / Seiten
   ========================================================== */
.content-narrow { max-width: var(--content); margin: 0 auto; }

.breadcrumbs {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  margin: 22px 0 6px; overflow-x: auto; white-space: nowrap;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--violet); }
.breadcrumbs .sep { margin: 0 7px; color: var(--line); }

.entry-header { margin: 10px 0 22px; }
.entry-title {
  margin: 8px 0 10px;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.15;
}
.entry-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.entry-meta .updated-label { color: var(--violet); }

.entry-thumb { margin: 0 0 26px; }
.entry-thumb img { border-radius: var(--radius); width: 100%; display: block; }

.entry-content { font-size: 17.5px; }
.entry-content > * { margin-top: 0; }
.entry-content h2 {
  font-size: clamp(21px, 3.6vw, 27px); font-weight: 800; letter-spacing: -.02em;
  margin: 38px 0 14px; line-height: 1.25;
  padding-left: 14px; border-left: 4px solid;
  border-image: linear-gradient(180deg, var(--cyan), var(--violet)) 1;
}
.entry-content h3 { font-size: clamp(18px, 3vw, 21px); font-weight: 700; margin: 30px 0 10px; }
.entry-content h4 { font-size: 17.5px; font-weight: 700; margin: 24px 0 8px; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 18px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
  margin: 24px 0; padding: 14px 20px;
  background: var(--paper); border-left: 4px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted);
}
.entry-content code {
  font-family: var(--mono); font-size: .9em;
  background: #edf0f5; padding: 2px 6px; border-radius: 5px;
}
.entry-content pre {
  background: var(--night); color: #dce4f0; padding: 16px 18px;
  border-radius: var(--radius-sm); overflow-x: auto; font-size: 14.5px;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }

/* Tabellen (Vergleichstabellen) */
.table-wrap { overflow-x: auto; margin: 0 0 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; margin: 0; }
.entry-content th {
  background: var(--night); color: #fff; text-align: left;
  padding: 11px 14px; font-size: 13.5px; letter-spacing: .03em;
}
.entry-content td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.entry-content tbody tr:nth-child(even) { background: #fafbfd; }

/* Buttons */
.btn, .entry-content .btn {
  display: inline-block; padding: 13px 24px;
  background: var(--violet); color: #fff !important;
  border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; text-align: center; border: 0; cursor: pointer;
  transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-amazon, .entry-content .btn-amazon { background: var(--amazon); color: var(--night) !important; }
.btn-amazon:hover { background: var(--amazon-dark); filter: none; }

/* Produkt-/Affiliate-Boxen (AmzBox-kompatibel) */
.produktbox, .amzbox {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 26px 0; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.produktbox::before, .amzbox::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
}
.produktbox .stars, .amzbox .stars { color: var(--amazon); letter-spacing: 2px; }
.produktbox .preis, .amzbox .preis { font-size: 21px; font-weight: 800; }
.produktbox .preis small, .amzbox .preis small { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Vorteile / Nachteile */
.pros-cons { display: grid; gap: 16px; margin: 26px 0; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros, .cons { border-radius: var(--radius); padding: 16px 18px; margin: 0; }
.pros { background: #eefcf4; border: 1px solid #bfe8cf; }
.cons { background: #fdf0f0; border: 1px solid #f0c9c9; }
.pros h3, .cons h3, .pros h4, .cons h4 { margin: 0 0 10px; font-size: 16px; }
.pros ul, .cons ul { margin: 0; padding: 0; list-style: none; }
.pros li, .cons li { padding-left: 26px; position: relative; margin-bottom: 7px; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: #189a52; font-weight: 800; }
.cons li::before { content: "✗"; position: absolute; left: 0; color: #c8433f; font-weight: 800; }

/* Hinweis-Box */
.hinweis {
  background: #f2edfd; border: 1px solid #ddd0f7; border-radius: var(--radius);
  padding: 14px 18px; margin: 22px 0; font-size: 15.5px;
}

/* Tags + Beitragsnavigation */
.entry-tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a {
  font-family: var(--mono); font-size: 12px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
  padding: 5px 12px; border-radius: 999px;
}
.entry-tags a:hover { border-color: var(--violet); color: var(--violet); }

.post-nav { display: grid; gap: 14px; margin: 34px 0 0; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 16px; text-decoration: none; color: var(--ink);
  font-size: 14.5px; line-height: 1.4;
}
.post-nav a:hover { border-color: var(--violet); }
.post-nav .dir { font-family: var(--mono); font-size: 11px; color: var(--muted); display: block; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .1em; }
.post-nav .next { text-align: right; }

/* Ähnliche Beiträge */
.related { margin: 46px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }

/* ==========================================================
   7. Pagination, Suche, 404, Kommentare
   ========================================================== */
.pagination, .navigation.pagination { margin: 34px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
}
.pagination .page-numbers.current { background: var(--night); color: #fff; border-color: var(--night); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--violet); color: var(--violet); }

.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form input[type="search"] {
  flex: 1; padding: 12px 16px; font-size: 16px; font-family: var(--font);
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
  min-width: 0;
}
.search-form input[type="search"]:focus { border-color: var(--violet); outline: none; }

.page-404 { text-align: center; padding: 40px 0; }
.page-404 .code {
  font-size: clamp(70px, 18vw, 130px); font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; margin: 0;
}
.page-404 .search-form { margin: 26px auto; }

.comments-area { margin: 46px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0 0 26px; padding: 0; }
.comment-list .comment { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.comment-list .children { list-style: none; margin: 12px 0 0; padding-left: 18px; }
.comment-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 13px; font-size: 15.5px; font-family: var(--font);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
  margin-bottom: 14px;
}
.comment-form input[type="submit"] {
  padding: 12px 24px; background: var(--violet); color: #fff; border: 0;
  border-radius: 999px; font-weight: 700; font-size: 15.5px; cursor: pointer;
}

/* ==========================================================
   8. Footer (footer + footer_2 werden beide gerendert!)
   ========================================================== */
.site-footer { background: var(--night); color: #aeb8c8; margin-top: 60px; }
.site-footer .lumo-bar { opacity: .9; }
.footer-grid {
  display: grid; gap: 30px; padding: 42px 0 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.footer-col h4 {
  margin: 0 0 12px; color: #fff; font-size: 13px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .13em;
}
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { color: #aeb8c8; text-decoration: none; font-size: 14.5px; }
.footer-menu a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 18px 0 26px; font-size: 13px; line-height: 1.6;
}
.footer-bottom p { margin: 0 0 4px; }

/* ==========================================================
   9. WordPress-Kern
   ========================================================== */
.alignleft { float: left; margin: 5px 22px 12px 0; }
.alignright { float: right; margin: 5px 0 12px 22px; }
.aligncenter { display: block; margin: 5px auto; }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: calc(100% + 80px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 860px) { .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; } }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 6px; }
.sticky { border-color: var(--violet); }
.bypostauthor { display: block; }
