/* ===== PBC Buchhaltungsservice — Blue/White Trust Design ===== */
/* Fonts loaded async via HTML head – no @import to avoid render-blocking */

:root {
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E3A5F;
  --blue-900: #0F2440;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --gold-400: #D4A853;
  --gold-500: #B8922E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: #334155; background: #fff; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6,.font-heading { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
.font-serif { font-family: 'Playfair Display', serif; font-style: italic; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--slate-50); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--blue-600), var(--blue-800)); border-radius: 6px; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: all 0.35s ease;
}
.site-header.scrolled { box-shadow: 0 1px 20px rgba(30,58,95,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img { height: 80px; width: auto; }
.header-logo span { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--blue-800); }
.header-logo .subtitle { font-weight: 400; font-size: 0.8rem; color: var(--blue-500); display: block; }

.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-desktop a { font-weight: 500; font-size: 0.875rem; color: var(--slate-600); transition: color 0.2s; position: relative; }
.nav-desktop a:hover { color: var(--blue-600); }
.nav-desktop a::after { content:''; position:absolute; bottom:-4px; left:50%; width:0; height:2px; background:var(--blue-600); border-radius:2px; transition:all .3s; transform:translateX(-50%); }
.nav-desktop a:hover::after { width: 100%; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff; padding: 10px 24px; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(37,99,235,0.35); transform: translateY(-1px); }
#header-cta { display: none; }
#header-cta.visible { display: inline-flex; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blue-700);
  padding: 10px 24px; border-radius: 10px; border: 2px solid var(--blue-200);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.875rem;
  transition: all 0.2s; cursor: pointer;
}
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-400); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue-800);
  padding: 12px 28px; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-white:hover { background: var(--blue-50); }

/* Burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger svg { width: 24px; height: 24px; color: var(--blue-800); }

/* Mobile Menu */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 55; display: none; }
.mobile-menu {
  position: fixed; top: 0; right: 0; width: 300px; height: 100%; background: #fff;
  z-index: 60; transform: translateX(100%); transition: transform 0.35s ease;
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--slate-100); }
.mobile-menu nav { padding: 1.5rem; }
.mobile-menu nav a { display: block; padding: 12px 16px; border-radius: 10px; color: var(--slate-600); font-weight: 500; transition: all 0.2s; }
.mobile-menu nav a:hover { background: var(--blue-50); color: var(--blue-700); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-img-1 { opacity: 1; animation: fade1 18s infinite; }
.hero-img-2 { animation: fade2 18s infinite; }
.hero-img-3 { animation: fade3 18s infinite; }
@keyframes fade1 { 0%,28%{opacity:1} 33%,95%{opacity:0} 100%{opacity:1} }
@keyframes fade2 { 0%,28%{opacity:0} 33%,61%{opacity:1} 66%,100%{opacity:0} }
@keyframes fade3 { 0%,61%{opacity:0} 66%,95%{opacity:1} 100%{opacity:0} }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(15,36,64,0.88) 0%, rgba(30,58,95,0.78) 45%, rgba(29,78,216,0.55) 100%);
}
.hero .container { position: relative; z-index: 10; }
.hero-content { padding: 8rem 0 4rem; }
.hero h1 { color: #fff; font-weight: 800; font-size: 2.8rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 .highlight {
  display: block; margin-top: 8px;
  background: linear-gradient(90deg, var(--blue-300), #93C5FD, #BFDBFE);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; line-height: 1.7; margin-bottom: 1rem; font-weight: 500; }
.hero-bullets { list-style: none; margin-bottom: 2.5rem; }
.hero-bullets li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8); font-size: 1.05rem; padding: 4px 0; }
.hero-bullets li .dot { width: 8px; height: 8px; background: var(--blue-400); border-radius: 50%; flex-shrink: 0; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10;
  display: none; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  animation: bounce 2s infinite;
}
@media (min-width: 768px) { .scroll-indicator { display: flex; } }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* Hero Split Layout */
.hero-split { display: grid; grid-template-columns: 1fr 400px; gap: 3rem; align-items: center; }
.hero-contact-row { display: flex; align-items: center; gap: 12px; margin-top: 0.5rem; }
.hero-form-wrap { position: relative; z-index: 10; }
.hero-form {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  border-radius: 1rem; padding: 2rem; box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-form h3 { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--blue-900); margin-bottom: 0.25rem; }
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-form-wrap { max-width: 480px; }
}
@media (max-width: 640px) {
  .hero-form { padding: 1.5rem; }
}

/* ── SECTION SYSTEM ── */
.section { padding: 5rem 0; }
.section-label { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 3rem; padding-left: 1.5rem; border-left: 4px solid var(--blue-500); }
.section-label .tag { font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-500); }
.section-label h2 { font-size: 2rem; font-weight: 700; color: var(--blue-900); line-height: 1.2; }
.section-label p { color: var(--slate-500); line-height: 1.7; max-width: 580px; margin-top: 4px; }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; pointer-events: none; z-index: 0; }

/* ── EDITORIAL GRID ── */
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ed-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ed-cell-full { grid-column: 1 / -1; }
.ed-cell {
  padding: 2rem; border: 1px solid var(--slate-200); border-radius: 12px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  transition: all 0.3s; cursor: default;
}
.ed-cell:hover { background: var(--blue-50); }
.ed-num { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--blue-100); margin-bottom: 0.5rem; user-select: none; transition: color 0.3s; }
.ed-cell:hover .ed-num { color: var(--blue-300); }
.ed-cell h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-900); margin-bottom: 0.5rem; }
.ed-cell p { font-size: 0.85rem; color: var(--slate-500); line-height: 1.6; }
.ed-icon { width: 72px; height: 72px; margin-bottom: 1rem; flex-shrink: 0; border-radius: 12px; }

/* ── DARK BANNER ── */
.dark-banner {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, #1a4a7a 100%);
  padding: 3rem 0; position: relative; overflow: hidden;
}
.dark-banner::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.1) 0%, transparent 60%); }
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; position: relative; z-index: 1; }
.banner-grid .left .tag { color: var(--blue-300); font-family:'Outfit',sans-serif; font-size:0.7rem; font-weight:600; letter-spacing:0.15em; text-transform:uppercase; display:flex; align-items:center; gap:8px; margin-bottom:0.75rem; }
.banner-grid .left .tag .pulse { width:8px; height:8px; background:var(--blue-300); border-radius:50%; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.banner-grid .left h2 { color:#fff; font-size:1.75rem; font-weight:700; line-height:1.3; }
.banner-grid .left h2 span { color: var(--blue-300); }
.banner-grid .left p { color: rgba(255,255,255,0.6); font-size:0.875rem; margin-top:0.5rem; }
.banner-grid .right { display:flex; justify-content:flex-end; align-items:center; gap:1.5rem; }

/* ── ABOUT (2-col) ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { position: relative; border-radius: 1.5rem; overflow: visible; height: 480px; margin-bottom: 3rem; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; border-radius: 1.5rem; }
.about-img:hover img { transform: scale(1.03); }
.about-img .quote-overlay {
  position: absolute; bottom: -2rem; left: 1rem; right: 1rem;
  background: rgba(15,36,64,0.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1.25rem 1.5rem; border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(15,36,64,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-img:hover .quote-overlay { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(15,36,64,0.35); }
.about-img .quote-overlay p { font-family:'Playfair Display',serif; font-style:italic; color:#fff; font-size:1rem; line-height:1.5; }
.about-content .feature-list { border-top: 1px solid var(--slate-200); }
.about-content .feature-item { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--slate-100); }
.feature-icon {
  width: 72px; height: 72px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.feature-icon.light { background: var(--slate-50); color: var(--blue-700); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-item h3 { font-size: 0.95rem; font-weight: 600; color: var(--blue-900); margin-bottom: 2px; }
.feature-item p { font-size: 0.85rem; color: var(--slate-500); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item .icon {
  width: 72px; height: 72px; border-radius: 12px; background: transparent;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: 0.85rem; font-weight: 600; color: var(--blue-900); }
.contact-item p { font-size: 0.85rem; color: var(--slate-500); }
.contact-item a { color: var(--blue-600); font-weight: 500; }

.contact-form {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 1rem; padding: 2rem;
}
.contact-form h3 { font-size: 1.25rem; font-weight: 700; color: var(--blue-900); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--slate-600); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--slate-200); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--slate-700);
  transition: border-color 0.2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-top: 1rem; max-width: 320px; }
.footer-links h4 { color: #fff; font-family:'Outfit',sans-serif; font-weight:600; font-size:0.85rem; margin-bottom:1rem; }
.footer-links a { display: block; font-size: 0.85rem; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--blue-300); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.fade-in { opacity: 0; animation: fadeInUp 0.8s ease forwards; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.35s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .burger { display: block; }
  .ed-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr; text-align: center; }
  .banner-grid .right { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Hero mobile: content fills viewport, form below fold */
  .hero { min-height: auto; }
  .hero-content { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 7rem 0 3rem; }
  .hero-form-wrap { padding-bottom: 3rem; }
  /* Legal pages */
  .legal-page { padding: 7rem 0 3rem; }
  .legal-card { padding: 2rem; }
}
@media (max-width: 640px) {
  .ed-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-content { padding: 6rem 0 2rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a, .hero-ctas button { width: 100%; justify-content: center; }
  .hero-bullets { margin-bottom: 1.5rem; }
  .hero-bullets li { font-size: 0.95rem; }
  .hero p { font-size: 1rem; }
  .section-label h2 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  /* About quote mobile */
  .about-img { height: 300px; margin-bottom: 2.5rem; }
  .about-img .quote-overlay { left: 0.75rem; right: 0.75rem; bottom: -1.5rem; padding: 1rem 1.25rem; }
  .about-img .quote-overlay p { font-size: 0.9rem; }
  /* Legal pages mobile */
  .legal-page { padding: 5.5rem 0 2rem; }
  .legal-page h1 { font-size: 1.6rem; margin-bottom: 1.25rem; }
  .legal-page h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
  .legal-page h3 { font-size: 0.95rem; }
  .legal-card { padding: 1.25rem; border-radius: 0.75rem; }
  /* Header mobile fix */
  .header-inner { height: 72px; }
  .header-logo img { height: 48px; }
  .header-logo span { font-size: 0.95rem; }
  .header-logo .subtitle { font-size: 0.7rem; }
}
