/* ============================================================
   Coffeebreak PC – Custom Theme (Bootstrap 5.3 Override)
   Datei: assets/css/styles.css
   
   TYPO3-Hinweis:
   - Dieses Stylesheet wird im TYPO3 Page-Setup eingebunden
   - Farbvariablen hier zentral pflegen
   - Sections können als Fluid Content-Elements wiederverwendet werden
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Primärfarben */
  --cb-petrol:         hsl(195, 55%, 22%);
  --cb-petrol-light:   hsl(195, 40%, 35%);
  --cb-petrol-dark:    hsl(200, 60%, 14%);
  --cb-anthracite:     hsl(210, 15%, 25%);
  --cb-anthracite-dark:hsl(210, 20%, 15%);

  /* Akzentfarbe Kupfer / Coffee */
  --cb-copper:         hsl(28, 45%, 55%);
  --cb-copper-light:   hsl(30, 40%, 70%);
  --cb-copper-dark:    hsl(25, 50%, 40%);

  /* Neutrals */
  --cb-white:          hsl(0, 0%, 100%);
  --cb-warm-white:     hsl(40, 30%, 97%);
  --cb-gray-50:        hsl(210, 20%, 98%);
  --cb-gray-100:       hsl(210, 15%, 95%);
  --cb-gray-200:       hsl(210, 15%, 90%);
  --cb-gray-400:       hsl(210, 10%, 65%);
  --cb-gray-600:       hsl(210, 10%, 45%);
  --cb-gray-800:       hsl(210, 15%, 20%);
  --cb-text:           hsl(210, 30%, 12%);
  --cb-text-muted:     hsl(210, 10%, 50%);

  /* Shadows */
  --cb-shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.06);
  --cb-shadow-md:      0 4px 16px rgba(0, 0, 0, 0.08);
  --cb-shadow-lg:      0 10px 40px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --cb-transition:     0.3s ease;

  /* Fonts */
  --cb-font-display:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --cb-font-body:      'Segoe UI', system-ui, -apple-system, sans-serif;
}


/* ── Bootstrap Overrides ───────────────────────────────────── */
body {
  font-family: var(--cb-font-body);
  color: var(--cb-text);
  background-color: var(--cb-warm-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--cb-font-display);
  font-weight: 700;
  color: var(--cb-anthracite-dark);
}

a {
  color: var(--cb-petrol);
  text-decoration: none;
  transition: color var(--cb-transition);
}
a:hover {
  color: var(--cb-copper);
}

.btn-primary {
  background-color: var(--cb-copper);
  border-color: var(--cb-copper);
  color: var(--cb-white);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--cb-copper-dark);
  border-color: var(--cb-copper-dark);
  color: var(--cb-white);
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.15);
}

.btn-outline-primary {
  color: var(--cb-petrol);
  border-color: var(--cb-petrol);
}
.btn-outline-primary:hover {
  background-color: var(--cb-petrol);
  border-color: var(--cb-petrol);
  color: var(--cb-white);
}


/* ── Section Utilities ─────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cb-copper);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--cb-anthracite-dark);
}
@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

.section-subtitle {
  color: var(--cb-text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.bg-petrol {
  background: linear-gradient(135deg, var(--cb-petrol-dark), var(--cb-petrol), var(--cb-petrol-light)) !important;
}

.bg-gray {
  background-color: var(--cb-gray-50) !important;
}

.text-copper {
  color: var(--cb-copper) !important;
}

.text-warm-white {
  color: var(--cb-warm-white) !important;
}


/* ── #site-header / Navbar ─────────────────────────────────── */
/* TYPO3 Partial: Partials/Header.html */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

#site-header .navbar {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cb-gray-200);
  padding: 0.6rem 0;
  transition: box-shadow var(--cb-transition);
}

#site-header .navbar.scrolled {
  box-shadow: var(--cb-shadow-sm);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cb-petrol) !important;
}
.navbar-brand .brand-accent {
  color: var(--cb-copper);
}

.navbar-nav .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cb-gray-600);
  padding: 0.5rem 1rem;
  transition: color var(--cb-transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--cb-petrol);
}

.navbar-cta {
  font-size: 0.875rem;
  font-weight: 600;
}


/* ── Hero Section ──────────────────────────────────────────── */
/* TYPO3: Content Element oder eigenes Fluid-Partial */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cb-petrol-dark) 0%, var(--cb-petrol) 50%, var(--cb-petrol-light) 100%);
  z-index: 0;
}

.hero-section .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(199,145,80,0.08) 0%, transparent 40%);
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cb-warm-white);
  line-height: 1.15;
}
@media (min-width: 768px) {
  .hero-section h1 { font-size: 3.25rem; }
}
@media (min-width: 992px) {
  .hero-section h1 { font-size: 3.75rem; }
}

.hero-section .lead {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  max-width: 580px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cb-copper-light);
  margin-bottom: 1rem;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--cb-warm-white), transparent);
  z-index: 1;
}


/* ── Feature Cards ─────────────────────────────────────────── */
/* TYPO3: Content Element „Leistungskachel" */
.feature-card {
  background: var(--cb-white);
  border: 1px solid var(--cb-gray-200);
  border-radius: 0.5rem;
  padding: 1.75rem;
  transition: all var(--cb-transition);
  height: 100%;
}
.feature-card:hover {
  box-shadow: var(--cb-shadow-md);
  border-color: var(--cb-copper-light);
  transform: translateY(-2px);
}

.feature-card .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: rgba(30, 80, 90, 0.08);
  color: var(--cb-petrol);
  transition: all var(--cb-transition);
}
.feature-card:hover .feature-icon {
  background-color: rgba(180, 130, 70, 0.1);
  color: var(--cb-copper);
}

.feature-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}


/* ── Tech Stack Section ────────────────────────────────────── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--cb-white);
  border: 1px solid var(--cb-gray-200);
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cb-anthracite);
  transition: all var(--cb-transition);
}
.tech-badge:hover {
  border-color: var(--cb-copper-light);
  box-shadow: var(--cb-shadow-sm);
}

.tech-badge svg {
  width: 18px;
  height: 18px;
  color: var(--cb-petrol);
}


/* ── Industry Block ────────────────────────────────────────── */
/* TYPO3: Content Element „Branchenblock" */
.industry-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.industry-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--cb-petrol-dark), var(--cb-petrol));
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry-icon svg {
  width: 22px;
  height: 22px;
  color: var(--cb-copper-light);
}

.industry-item h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.industry-item p {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
  margin-bottom: 0;
}


/* ── Process Steps ─────────────────────────────────────────── */
.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.process-step .step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cb-gray-50);
  border: 2px solid var(--cb-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.process-step .step-number svg {
  width: 24px;
  height: 24px;
  color: var(--cb-copper);
}

.process-step .step-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cb-copper);
}

.process-step h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
}


/* ── Trust Elements ────────────────────────────────────────── */
.trust-item {
  text-align: center;
  padding: 2rem 1.5rem;
}
.trust-item .trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: rgba(30, 80, 90, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--cb-petrol);
}

.trust-item h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.trust-item p {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
  margin-bottom: 0;
}


/* ── CTA Section ───────────────────────────────────────────── */
/* TYPO3: Content Element „CTA-Sektion" */
.cta-section {
  border-radius: 0.75rem;
  padding: 3rem 2rem;
}
@media (min-width: 768px) {
  .cta-section { padding: 4rem 3rem; }
}

.cta-section h3 {
  color: var(--cb-warm-white);
  font-size: 1.75rem;
}
@media (min-width: 768px) {
  .cta-section h3 { font-size: 2.25rem; }
}

.cta-section p {
  color: rgba(255,255,255,0.7);
}


/* ── About / Profile ───────────────────────────────────────── */
.profile-card {
  border-radius: 0.75rem;
  overflow: hidden;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(180, 130, 70, 0.15);
  border: 2px solid rgba(180, 130, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.profile-avatar span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cb-copper-light);
}


/* ── Contact Cards ─────────────────────────────────────────── */
.contact-card {
  background: var(--cb-white);
  border: 1px solid var(--cb-gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}
.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: rgba(30, 80, 90, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--cb-petrol);
}

/* ── Contact Form ──────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--cb-copper-light);
  box-shadow: 0 0 0 0.2rem rgba(180, 130, 70, 0.15);
}
.form-check-input:checked {
  background-color: var(--cb-petrol);
  border-color: var(--cb-petrol);
}


/* ── Checklist ─────────────────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}
.check-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--cb-copper);
  margin-top: 2px;
}


/* ── Page Header (inner pages) ─────────────────────────────── */
.page-header {
  padding: 7rem 0 3rem;
}

.page-header h1 {
  color: var(--cb-warm-white);
  font-size: 2.25rem;
}
@media (min-width: 768px) {
  .page-header h1 { font-size: 2.75rem; }
}
.page-header p {
  color: rgba(255,255,255,0.65);
}


/* ── Footer ────────────────────────────────────────────────── */
/* TYPO3 Partial: Partials/Footer.html */
#site-footer {
  border-top: 1px solid var(--cb-gray-200);
  background: var(--cb-gray-50);
  padding: 2rem 0;
}
#site-footer p,
#site-footer a {
  font-size: 0.8125rem;
}
#site-footer a {
  color: var(--cb-gray-600);
}
#site-footer a:hover {
  color: var(--cb-petrol);
}


/* ── Utility: Divider ──────────────────────────────────────── */
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--cb-copper);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ── Scroll Animation (optional JS) ───────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
