/*
Theme Name: GetDeeper
Theme URI: https://getdeeper.net
Author: GetDeeper.net
Author URI: https://getdeeper.net
Description: Das offizielle Theme für GetDeeper.net — intelligente Medienmarke für kritisches Denken, Philosophie und Gesellschaft.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: getdeeper
Tags: blog, dark, minimal, editorial, magazine
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --dark:        #0c0c0e;
  --dark2:       #131317;
  --dark3:       #1a1a20;
  --surface:     #1e1e26;
  --border:      #2a2a35;
  --blue:        #2a6fc9;
  --blue-light:  #4a8fe0;
  --text:        #e8e8ec;
  --muted:       #7a7a8c;
  --accent:      #c9a84a;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-light); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(12, 12, 14, 0.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo img {
  height: 40px;
  width: auto;
}

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

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--text);
}

.header-cta {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--blue);
  color: var(--blue-light);
  border-radius: 3px;
  transition: all 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--blue);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  font-size: 1.2rem;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(42, 111, 201, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.08;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--blue-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}
.btn--primary:hover { background: var(--blue-light); border-color: var(--blue-light); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--text); border-color: var(--muted); }

/* =============================================
   TICKER
   ============================================= */
.ticker-bar {
  background: var(--dark3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 3rem;
}

.ticker-item::before {
  content: '◆';
  margin-right: 1.5rem;
  color: var(--blue-light);
  font-size: 0.55rem;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   SECTIONS — SHARED
   ============================================= */
.section { padding: 6rem 0; }

.section__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  font-weight: 300;
}

.section__divider {
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin: 1.5rem 0;
}

/* =============================================
   PILLARS / TOPICS
   ============================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3.5rem;
}

.pillar {
  background: var(--dark);
  padding: 2.5rem;
  transition: background 0.3s;
}

.pillar:hover { background: var(--dark3); }

.pillar__icon {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  opacity: 0.75;
}

.pillar__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.pillar__text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
}

/* =============================================
   MANIFESTO
   ============================================= */
.manifesto {
  background: var(--dark3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.manifesto__inner {
  max-width: 720px;
  margin: 0 auto;
}

.manifesto__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.55;
  margin: 2rem 0 1.5rem;
  color: var(--text);
  border: none;
  padding: 0;
}

.manifesto__quote::before {
  content: '\201C';
  display: block;
  font-size: 4rem;
  color: var(--blue-light);
  opacity: 0.4;
  line-height: 0.6;
  margin-bottom: 1.25rem;
}

.manifesto__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

/* =============================================
   ARTICLES / BLOG LOOP
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.post-card {
  border: 1px solid var(--border);
  background: var(--dark2);
  padding: 2rem;
  border-radius: 2px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--blue);
  background: var(--dark3);
  transform: translateY(-3px);
}

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: -2rem -2rem 1.5rem;
  border-radius: 2px 2px 0 0;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.post-card__title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--blue-light); }

.post-card__excerpt {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.post-card__meta {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* =============================================
   SINGLE POST
   ============================================= */
.post-header {
  padding: 9rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.post-header__tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.post-header__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.post-header__meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-content {
  padding: 4rem 0 6rem;
}

.post-content .container--narrow {
  font-size: 1.05rem;
  line-height: 1.85;
}

.post-content h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
  background: var(--dark3);
}

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter { text-align: center; }

.newsletter__box {
  background: var(--dark3);
  border: 1px solid var(--border);
  padding: 3.5rem;
  max-width: 600px;
  margin: 3rem auto 0;
  border-radius: 2px;
}

.newsletter__title {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.newsletter__desc {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus { border-color: var(--blue); }
.newsletter-form input::placeholder { color: var(--muted); }

.newsletter-form button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--blue-light); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand__logo img { height: 36px; margin-bottom: 1rem; }

.footer-brand__desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.footer-brand__tagline {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.7;
}

.footer-col__title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom__copy {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-langs {
  display: flex;
  gap: 0.75rem;
}

.footer-langs a {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.2s;
}

.footer-langs a:hover,
.footer-langs a.active {
  color: var(--text);
  border-color: var(--muted);
}

/* =============================================
   WIDGETS / SIDEBAR
   ============================================= */
.widget { margin-bottom: 2.5rem; }
.widget-title {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* =============================================
   UTILITIES
   ============================================= */
.text-muted  { color: var(--muted); }
.text-blue   { color: var(--blue-light); }
.text-accent { color: var(--accent); }
.sr-only     { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .main-navigation { display: none; }
  .main-navigation.open { display: block; position: fixed; top: 70px; left: 0; right: 0; background: var(--dark2); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; }
  .main-navigation.open ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter__box { padding: 2rem; }
  .pillars { grid-template-columns: 1fr; }
}

/* =============================================
   ELEMENTOR COMPATIBILITY FIXES
   ============================================= */

/* Force dark background always */
html, body, #page, #content { background-color: var(--dark) !important; }

/* Hide any Elementor-injected duplicate headers */
.elementor-location-header { display: none !important; }

/* Remove default WP site-title/tagline block that shows above our hero */
.wp-site-blocks > header,
body > header:not(.site-header),
.wp-block-template-part[data-slug="header"] { display: none !important; }

/* Hide old theme header remnants */
#masthead:not(.site-header),
.site-branding:not(.site-header .site-branding) { display: none !important; }

/* Elementor inner sections on dark bg */
.elementor-section-wrap,
.e-con-inner { background: transparent !important; }

/* WordPress admin bar compensation */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

/* Custom Logo sizing in header */
.site-logo .custom-logo-link img,
.site-logo img { height: 70px; width: auto; }

/* Custom Logo in footer */
.footer-brand .custom-logo-link img { height: 36px; width: auto; margin-bottom: 1rem; }

/* Logo tagline */
.site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.site-logo__tagline {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1;
  padding-left: 2px;
  white-space: nowrap;
}
