﻿/* =========================
   SITE CSS (Below-the-fold)
   Alles außer Nav/Hero/Base
   ========================= */

/* --- Section header + common bits --- */
.section-header { margin-bottom: 50px; text-align: center; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.line { width: 60px; height: 4px; background: var(--accent-warm); margin: 10px auto; border-radius: 2px; }

.note-sticker {
  background: #fff; color: #0f172a; padding: 5px 15px;
  font-family: 'Patrick Hand'; font-size: 1.1rem;
  transform: rotate(2deg); box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: absolute; z-index: 5; border-radius: 2px;
}

/* --- 6. FLOATER + HOVER (deine saubere Wrapper-Lösung) --- */
.floater{
  position:absolute; bottom:-30px; right:-30px;
  width:90px; height:90px;
  background: var(--bg-card-hover);
  border:1px solid var(--bg-glass-border);
  border-radius:50%;
  display:flex; justify-content:center; align-items:center;
  box-shadow: var(--shadow);
  z-index:10;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
.floater-inner{
  width:100%; height:100%;
  display:flex; justify-content:center; align-items:center;
  font-size:2.5rem;
  transition: transform .22s ease, filter .22s ease;
  will-change: transform;
}
.floater:hover .floater-inner,
.floater:focus-within .floater-inner{
  transform: translateY(-10px) scale(1.06);
  filter: brightness(1.06);
}
.floater i{ transition: transform .22s ease; }
.floater:hover i,
.floater:focus-within i{
  transform: rotate(-3deg) scale(1.05);
}
@keyframes float{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-15px); }
}

@media (prefers-reduced-motion: reduce) {
  .floater { animation: float-soft 10s ease-in-out infinite; }
  @keyframes float-soft{
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
  }
}

/* --- 7. ROOTS --- */
.roots-section { padding: 100px 0; }
.roots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.roots-img { position: relative; }
.roots-img img {
  width: 100%; border-radius: var(--blob-radius); box-shadow: var(--shadow);
  filter: sepia(10%) contrast(1.05); transition: 0.5s;
}
.roots-img:hover img { transform: scale(1.02) rotate(1deg); }

/* --- 8. SERVICE FOCUS --- */
.service-focus { padding: 80px 0; background: var(--bg-accent-section); }
.focus-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 100px; align-items: center; }
.focus-block:last-child { margin-bottom: 0; }
.focus-block.reverse .focus-img { order: 2; }
.focus-block.reverse .focus-text { order: 1; }

.focus-img { position: relative; border-radius: 20px; height: 350px; }
.focus-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }

.focus-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--bg-body); padding: 8px 18px; border-radius: 50px;
  font-family: 'Oswald'; color: var(--text-head);
  border: 1px solid var(--bg-glass-border);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 5;
}

.focus-text h3 { font-size: 2rem; margin-bottom: 15px; }
.focus-list { margin-top: 20px; }
.focus-list li { display: flex; align-items: flex-start; margin-bottom: 15px; }
.focus-list i { margin-right: 15px; margin-top: 5px; color: var(--primary); }

/* --- 9. SOLUTIONS --- */
.solutions-section { padding: 100px 0; text-align: center; }
.solution-box {
  background: var(--bg-glass); border: 2px dashed var(--accent-warm);
  border-radius: 20px; padding: 50px; max-width: 900px;
  margin: 0 auto; position: relative;
}
.solution-sticker {
  position: absolute; top: -25px; right: -15px;
  background: var(--accent-red); color: #fff; padding: 10px 25px;
  font-family: 'Patrick Hand'; font-size: 1.3rem; transform: rotate(5deg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3); border-radius: 4px;
}
.icon-grid { display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.icon-item{
  width: 140px;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.icon-item span{
  display:block;
  text-align:center;
  line-height: 1.2;
  min-height: calc(1.2em * 2);
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.icon-item i{
  font-size: 2.5rem;
  margin-bottom: 10px;
  line-height: 1;
}
.icon-item:hover i { color: var(--accent-warm); transform: scale(1.2); }

/* --- 9.5 TECH SECTION --- */
.tech-section{ padding: 90px 0; }
.tech-box{
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 20px;
  padding: 34px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tech-box::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(34,211,238,.10), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(245,158,11,.12), transparent 50%);
  pointer-events:none;
}
.tech-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,.35);
  border: 1px solid rgba(255,255,255,.10);
  color: #e5e7eb;
  letter-spacing: .06em;
  font-size: .9rem;
  position: relative;
  z-index: 1;
}
.tech-pill i{ color: var(--primary); }
.tech-list{
  margin-top: 22px;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.tech-list li{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(15,23,42,.18);
}
.tech-list i{
  margin-top: 3px;
  color: var(--primary);
  font-size: 1.1rem;
  min-width: 20px;
}
.tech-list strong{
  color: var(--text-head);
  font-family: 'Oswald', sans-serif;
  letter-spacing: .06em;
}
.tech-note{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* --- 10. LEXIKON --- */
.lexikon-section { padding: 80px 0; background: var(--bg-accent-section); }
.lexikon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.lex-card {
  background: var(--bg-body); padding: 25px; border-radius: 12px;
  border: 1px solid var(--bg-glass-border); transition: 0.3s;
  cursor: pointer; position: relative;
}
.lex-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.lex-card p { display: none; margin-top: 10px; color: var(--text-muted); }
.lex-card.active p { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Form fields --- */
.field {
  width: 100%;
  padding: 15px;
  background: var(--bg-body);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-main);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder { color: var(--text-muted); }
.field:focus-visible {
  outline: none;
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- 11. CLEAN FOOTER --- */
footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--bg-body);
  color: var(--text-muted);
}
.footer-inner{ padding: 48px 0 22px; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.footer-brand h3{
  color: var(--text-head);
  font-size: 1.25rem;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.footer-brand p{
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 50ch;
}
.footer-col h4{
  color: var(--text-head);
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-links{
  display:grid;
  gap: 8px;
}
.footer-links a{
  color: var(--text-muted);
  padding: 6px 0;
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
.footer-links a:hover{ color: var(--text-head); }
.footer-links i{
  color: rgba(34,211,238,.9);
  width: 18px;
  text-align: center;
}
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
  font-size: .9rem;
}
.footer-bottom-inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-legal{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-legal a{ color: var(--text-muted); }
.footer-legal a:hover{ color: var(--text-head); }

/* --- Responsive (below fold layout) --- */
@media (max-width: 900px) {
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .roots-grid, .focus-block { grid-template-columns: 1fr; gap: 40px; }
  .focus-block.reverse .focus-img { order: 1; }
  .focus-block.reverse .focus-text { order: 2; }

  .floater { width: 70px; height: 70px; right: -10px; bottom: -20px; }
  .floater-inner { font-size: 2rem; }

  .footer-grid{ grid-template-columns: 1fr; }
  .footer-inner{ padding: 40px 0 18px; }
}
