/*
Theme Name: BluePeak Digital
Theme URI: https://bluepeak-digital.de
Author: BluePeak Digital
Author URI: https://bluepeak-digital.de
Description: Ein modernes, dunkles Business-Theme für digitale Agenturen und Content-Studios. DSGVO-konform mit lokalen Fonts, Impressum- und Datenschutz-Templates.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
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: bluepeak-digital
Tags: business, one-page, dark-mode, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== LOKALE FONTS (DSGVO-konform, kein Google CDN) ===== */

/* Fraunces - Display Font */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/fraunces-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/fraunces-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/fraunces-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/fraunces-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-600.woff2') format('woff2');
}

/* Outfit - Body Font */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/outfit-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/outfit-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/outfit-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/outfit-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/outfit-700.woff2') format('woff2');
}

/* ===== CSS VARIABLES ===== */
:root {
  --bp-bg: #0a0e1a;
  --bp-bg-soft: #111729;
  --bp-surface: #1a2238;
  --bp-text: #e8ecf5;
  --bp-text-muted: #8b94ad;
  --bp-accent: #4a9eff;
  --bp-accent-2: #7c5cff;
  --bp-accent-glow: rgba(74, 158, 255, 0.4);
  --bp-border: rgba(255, 255, 255, 0.08);
  --bp-font-display: 'Fraunces', Georgia, serif;
  --bp-font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--bp-font-body);
  color: var(--bp-text);
  background: var(--bp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--bp-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--bp-accent-2); }

/* ===== HEADER ===== */
.bp-site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bp-border);
  transition: all 0.3s ease;
}

.bp-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.bp-site-logo {
  font-family: var(--bp-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bp-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.bp-site-logo em { font-style: italic; color: var(--bp-accent); }
.bp-site-logo img { max-height: 40px; width: auto; }

.bp-nav-menu {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 2rem;
}

.bp-nav-menu a {
  color: var(--bp-text);
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.bp-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--bp-accent);
  transition: width 0.3s ease;
}

.bp-nav-menu a:hover { color: var(--bp-accent); }
.bp-nav-menu a:hover::after { width: 100%; }

.bp-mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--bp-text);
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== HERO ===== */
.bp-hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(124, 92, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(74, 158, 255, 0.2), transparent 50%),
    var(--bp-bg);
}

.bp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.bp-hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  z-index: 2;
}

.bp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--bp-accent);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: bpFadeUp 0.8s ease both;
}

.bp-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--bp-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--bp-accent-glow);
  animation: bpPulse 2s ease-in-out infinite;
}

.bp-hero h1 {
  font-family: var(--bp-font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  max-width: 900px;
  color: var(--bp-text);
  animation: bpFadeUp 0.8s ease 0.1s both;
}

.bp-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--bp-accent), var(--bp-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.bp-hero p.bp-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--bp-text-muted);
  max-width: 620px;
  margin: 0 0 2.5rem;
  animation: bpFadeUp 0.8s ease 0.2s both;
}

.bp-cta-row {
  display: flex; gap: 1rem;
  flex-wrap: wrap;
  animation: bpFadeUp 0.8s ease 0.3s both;
}

.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: 100px;
  font-family: var(--bp-font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.bp-btn-primary {
  background: linear-gradient(135deg, var(--bp-accent), var(--bp-accent-2));
  color: white;
  box-shadow: 0 8px 32px var(--bp-accent-glow);
}

.bp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--bp-accent-glow);
  color: white;
}

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

.bp-btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--bp-accent);
  color: var(--bp-text);
}

.bp-btn-arrow { transition: transform 0.3s ease; }
.bp-btn:hover .bp-btn-arrow { transform: translateX(4px); }

.bp-peaks {
  position: absolute;
  right: -5%; bottom: 0;
  width: 50%; height: 70%;
  opacity: 0.4;
  pointer-events: none;
}

/* ===== STATS ===== */
.bp-stats {
  padding: 4rem 2rem;
  background: var(--bp-bg-soft);
  border-top: 1px solid var(--bp-border);
  border-bottom: 1px solid var(--bp-border);
}

.bp-stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.bp-stat-number {
  font-family: var(--bp-font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  background: linear-gradient(135deg, var(--bp-text), var(--bp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.bp-stat-label {
  color: var(--bp-text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ===== SECTIONS ===== */
.bp-services,
.bp-about,
.bp-cta-section {
  padding: 6rem 2rem;
}

.bp-services {
  max-width: 1200px;
  margin: 0 auto;
}

.bp-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.bp-section-label {
  color: var(--bp-accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bp-section-title {
  font-family: var(--bp-font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--bp-text);
}

.bp-section-title em {
  font-style: italic;
  color: var(--bp-accent);
}

.bp-section-subtitle {
  color: var(--bp-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.bp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.bp-service-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.bp-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bp-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bp-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.bp-service-card:hover::before { opacity: 1; }

.bp-service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(124, 92, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--bp-accent);
}

.bp-service-card h3 {
  font-family: var(--bp-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--bp-text);
}

.bp-service-card p {
  color: var(--bp-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ===== ABOUT ===== */
.bp-about {
  background: var(--bp-bg-soft);
  position: relative;
  overflow: hidden;
}

.bp-about::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.bp-about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.bp-about-text h2 {
  font-family: var(--bp-font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.5rem;
  color: var(--bp-text);
}

.bp-about-text h2 em {
  font-style: italic;
  color: var(--bp-accent);
}

.bp-about-text p {
  color: var(--bp-text-muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.bp-about-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.bp-about-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bp-text);
  border-top: 1px solid var(--bp-border);
}

.bp-about-features li:last-child {
  border-bottom: 1px solid var(--bp-border);
}

.bp-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bp-accent), var(--bp-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.bp-about-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2238, #0a0e1a);
  border: 1px solid var(--bp-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CTA SECTION ===== */
.bp-cta-section {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(74, 158, 255, 0.15), transparent 70%),
    var(--bp-bg);
}

.bp-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.bp-cta-section h2 {
  font-family: var(--bp-font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--bp-text);
}

.bp-cta-section h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--bp-accent), var(--bp-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bp-cta-section p {
  color: var(--bp-text-muted);
  font-size: 1.15rem;
  margin: 0 0 2.5rem;
}

/* ===== FOOTER ===== */
.bp-site-footer {
  padding: 3rem 2rem 2rem;
  background: var(--bp-bg-soft);
  border-top: 1px solid var(--bp-border);
  text-align: center;
}

.bp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.bp-footer-logo {
  font-family: var(--bp-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--bp-text);
}

.bp-footer-logo em {
  font-style: italic;
  color: var(--bp-accent);
}

.bp-site-footer p {
  color: var(--bp-text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.bp-footer-nav {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.bp-footer-nav a {
  color: var(--bp-text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.bp-footer-nav a:hover {
  color: var(--bp-accent);
}

.bp-footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bp-border);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bp-footer-legal a {
  color: var(--bp-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.bp-footer-legal a:hover {
  color: var(--bp-accent);
}

/* ===== BLOG / SINGLE / PAGE ===== */
.bp-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.bp-content-wrap h1,
.bp-content-wrap h2,
.bp-content-wrap h3 {
  font-family: var(--bp-font-display);
  color: var(--bp-text);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.bp-content-wrap h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1.5rem;
}

.bp-content-wrap h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--bp-text);
}

.bp-content-wrap h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--bp-accent);
}

.bp-content-wrap p {
  color: var(--bp-text);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.bp-content-wrap ul,
.bp-content-wrap ol {
  color: var(--bp-text);
  padding-left: 1.5rem;
}

.bp-content-wrap li { margin-bottom: 0.5rem; }

.bp-content-wrap a {
  color: var(--bp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-content-wrap strong {
  color: var(--bp-text);
  font-weight: 600;
}

.bp-post-meta {
  color: var(--bp-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bp-border);
}

.bp-post-list {
  display: grid;
  gap: 2rem;
}

.bp-post-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.bp-post-card:hover {
  border-color: rgba(74, 158, 255, 0.3);
  transform: translateY(-2px);
}

.bp-post-card h2 a {
  color: var(--bp-text);
  text-decoration: none;
}

.bp-post-card h2 a:hover { color: var(--bp-accent); }

/* ===== LEGAL PAGES (Impressum/Datenschutz) ===== */
.bp-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bp-surface);
  border-radius: 12px;
  overflow: hidden;
}

.bp-legal-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--bp-border);
  color: var(--bp-text);
  font-size: 0.95rem;
}

.bp-legal-table td:first-child {
  font-weight: 600;
  color: var(--bp-text-muted);
  width: 35%;
  vertical-align: top;
}

.bp-legal-table tr:last-child td { border-bottom: none; }

/* ===== ANIMATIONS ===== */
@keyframes bpFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .bp-about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .bp-site-header { padding: 1rem 1.5rem; }
  .bp-mobile-toggle { display: block; }
  .bp-nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bp-bg);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--bp-border);
    gap: 1rem;
  }
  .bp-nav-menu.is-open { display: flex; }
  .bp-hero { padding: 6rem 1.5rem 3rem; min-height: auto; }
  .bp-services, .bp-about, .bp-cta-section { padding: 4rem 1.5rem; }
  .bp-stats { padding: 3rem 1.5rem; }
  .bp-content-wrap { padding: 6rem 1.5rem 3rem; }
  .bp-legal-table td:first-child { width: 100%; display: block; padding-bottom: 0.25rem; }
  .bp-legal-table td:last-child { display: block; padding-top: 0; }
  .bp-legal-table tr { display: block; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--bp-border); }
  .bp-legal-table td { padding: 0; border: none; }
}

/* ===== WORDPRESS REQUIRED CLASSES ===== */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--bp-text-muted); font-size: 0.9rem; }
.sticky { display: block; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }
