/* =============================
   Base Theme – BiSaM Consulting
   Color: teal #008080
   ============================= */

:root{
  --brand: #008080;     /* teal */
  --brand-600: #006d6d;
  --brand-100: #e6f2f2;
  --text: #111;         /* Standard-Text (schwarz) */
  --text-inv: #fff;     /* inverse (weiß) */
  --muted: #6b7280;
  --radius: 18px;
  --shadow-1: 0 8px 24px rgba(0,0,0,.08);
  --shadow-2: 0 12px 32px rgba(0,0,0,.12);
  --font-main: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

*{ box-sizing: border-box; }

html,body{ height:100%; }
body{
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background:#fff;
}

/* Links & Buttons */
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.btn{ border-radius: 999px; padding: .75rem 1.25rem; }
.btn-primary{
  background: var(--brand); border-color: var(--brand);
}
.btn-primary:hover{ background: var(--brand-600); border-color: var(--brand-600); }
.btn-outline-primary{
  color: var(--brand); border-color: var(--brand); background: transparent;
}
.btn-outline-primary:hover{
  color:#fff; background: var(--brand); border-color: var(--brand);
}

/* Sections */
.section-title h2{ letter-spacing: .3px; margin-bottom:.25rem; }
.section-title p{ color: var(--muted); margin:0; }

.bg-teal{ background: var(--brand); color: var(--text-inv); }
.bg-light{ background: #f8fafc !important; }

/* Navbar */
.navbar{ box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.navbar .nav-link{ font-weight: 500; }
.navbar.bg-teal .nav-link{ color: var(--text-inv) !important; }
.navbar .navbar-brand img{ display:block; }

/* Hero */
.hero{
  padding: 88px 0 56px;
  color: var(--text-inv);
  position:relative;
  background:
    linear-gradient(rgba(0,128,128,.85), rgba(0,128,128,.85)),
    url("../img/divers/source_code_background.jpg") center/cover no-repeat;
}
.hero .portrait{
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; object-position: center; box-shadow: var(--shadow-2);
  border: 4px solid rgba(255,255,255,.5);
}
.hero .lead{ color: #eaf7f7; }

/* About */
#about .card{
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  border: none;
}

/* Services */
.service-card{
  border: none; border-radius: var(--radius);
  padding: 1.5rem; height: 100%;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); }
.service-card .icon{
  width:64px; height:64px; display:inline-flex; align-items:center; justify-content:center;
  border-radius: 50%; background: var(--brand); color:#fff; margin-bottom:.75rem;
}

/* Works / Projekte */
.work-card{
  border:none; border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); }
.work-thumb{ width:100%; aspect-ratio:16/9; background:#f3f4f6; overflow:hidden; }
.work-thumb img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.filter-pill{
  cursor:pointer; user-select:none;
  background:#eef6f6; color:#064; border:1px solid #cfe8e8;
}
.filter-pill.active{ background: var(--brand); color:#fff; border-color: var(--brand); }

/* Freelance */
#freelance p{ margin-bottom: .75rem; }

/* Counter */
#counter .display-6{ color: var(--brand); }

/* Contact */
#contact .contact-box{
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  border: none;
}

/* Footer */
footer{ border-top: 1px solid rgba(0,0,0,.06); }

/* Cookie banner (aus PHP-Komponente) */
.cookie-banner a{ color:#fff; text-decoration: underline; }

/* Utilities */
.text-inverse{ color: var(--text-inv) !important; }

/* ==== Projekte: kleinere, scharfe Thumbs ohne Upscaling ==== */
.work-card{ border:none; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-1); transition:transform .18s, box-shadow .18s; }
.work-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-2); }

/* Höhe dynamisch, aber kleiner gehalten; kein Zerren */
.work-thumb{
  width:100%;
  height: clamp(150px, 18vw, 210px); /* << kleiner, reagiert auf Viewport */
  background:#f3f4f6;
  display:flex; align-items:center; justify-content:center;
  padding: 8px; /* kleiner „Passepartout“-Rand */
}
.work-thumb img{
  max-width:100%; max-height:100%;
  width:auto; height:auto;
  object-fit: contain;          /* kein Zuschneiden / kein Stretch */
  image-rendering: auto;        /* verhindert Pixel-Matsch */
}

/* ===== Hero: Buttons sichtbar & gruppiert, Social-Links darunter ===== */
.cta{ display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
@media (min-width:768px){ .cta{ justify-content:flex-start; } }
.btn-hero-primary{
  background:#fff; color:var(--brand); border:2px solid #fff; border-radius:999px; padding:.75rem 1.25rem; font-weight:600;
}
.btn-hero-primary:hover{ background:transparent; color:#fff; }
.btn-hero-outline{
  background:transparent; color:#fff; border:2px solid #fff; border-radius:999px; padding:.75rem 1.25rem; font-weight:600;
}
.btn-hero-outline:hover{ background:#fff; color:var(--brand); }

/* Social: Hero + Footer */
.social-follow{ display:flex; gap:.5rem; padding:0; margin:1rem 0 0; list-style:none; }
.social-follow a{
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%;
  background: rgba(255,255,255,.2);
  color:#fff; border:1px solid rgba(255,255,255,.35);
  transition: transform .15s ease, background .15s ease;
}
.social-follow a:hover{ transform: translateY(-2px); background:#fff; color:var(--brand); }

/* Footer-Variante (dunkler Text-Hintergrund) */
footer .social-follow a{
  background: #eef6f6; color:#064; border-color:#cfe8e8;
}
footer .social-follow a:hover{ background: var(--brand); color:#fff; }

/* ===== Testimonial / Referenzen ===== */
#testimonial{ background: #f8fafc; }
.testi-card{
  border:none; border-radius:var(--radius); box-shadow:var(--shadow-1);
  padding: 1.5rem; background:#fff; height:100%;
}
.testi-quote{ font-style: italic; }
.testi-author{ font-weight:600; margin-top:.75rem; color:#334155; }
.testi-img{
  width:56px; height:56px; border-radius:50%; object-fit:cover; object-position:center;
  border:2px solid #e2e8f0; margin-right:.75rem;
}

/* Carousel arrows (Bootstrap) etwas dezenter einfärben */
#testimonial .carousel-control-prev, 
#testimonial .carousel-control-next{
  width: 48px; height:48px; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.05); border-radius:50%;
}
#testimonial .carousel-control-prev:hover, 
#testimonial .carousel-control-next:hover{
  background: rgba(0,0,0,.1);
}

/* Kontakt – Infokarte */
.single-contact{
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; border-radius:var(--radius);
  background:#fff; box-shadow:var(--shadow-1); border:none;
}
.contact-logo{
  width:56px; height:56px; border-radius:50%;
  background:var(--brand); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:1.25rem;
}
.single-contact-info h5{ margin:0 0 4px; }
.single-contact-info span{ display:block; color:var(--muted); line-height:1.4; }

/* optional: etwas Luft unter dem Info-Kästchen */
#contact .single-contact{ margin-bottom:1rem; }

/* Kontakt – zentriert */
.single-contact{
  display:flex;
  flex-direction: column;      /* Icon über Text */
  align-items: center;         /* horizontal zentrieren */
  justify-content: center;     /* vertikal zentrieren */
  text-align: center;          /* Text mittig */
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow-1);
  border: none;
}

.contact-logo{
  width:64px;
  height:64px;
  border-radius:50%;
  background:var(--brand);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.35rem;
}

.single-contact-info h5{
  margin: 0 0 6px;
}

.single-contact-info span{
  display:block;
  color: var(--muted);
  line-height: 1.35;
  word-break: break-word;    /* verhindert Überlauf bei langen Adressen */
}

html { scroll-behavior: smooth; }

/* Navbar stets sichtbar, klare Fläche + Schatten bei Scroll */
.navbar{
  position: sticky;
  top: 0; z-index: 1030;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(4px);
  transition: box-shadow .15s ease, background .15s ease;
}
.navbar.scrolled{
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: #fff;
}

/* Anker-Offset: wenn zu Section gescrollt wird, bleibt nichts unter der Navbar verborgen */
section, header.hero { scroll-margin-top: 84px; }

/* Back-to-top Button */
.back-to-top{
  position: fixed;
  right: 16px; bottom: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color:#fff; border: none;
  box-shadow: var(--shadow-2);
  display: inline-flex; align-items:center; justify-content:center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
  z-index: 1050;
}
.back-to-top.show{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover{ background: var(--brand-600); }

/* --- Navbar: fixiert statt sticky, immer sichtbar --- */
.navbar{
  position: fixed;        /* statt sticky */
  top: 0; left: 0; right: 0;
  z-index: 1050;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(4px);
  transition: box-shadow .15s ease, background .15s ease;
}
.navbar.scrolled{
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: #fff;
}

/* Platz unterm Header schaffen, damit Inhalte nicht überdeckt werden */
body{ padding-top: 72px; }       /* bei Bedarf 72px -> 80/84 anpassen */

/* Anker-Offset: Sections „unter“ der fixen navbar sauber positionieren */
section, header.hero { scroll-margin-top: 84px; }

/* ===== Cookie-Banner (sichtbar, ganz vorne, unten fix) ===== */
.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;                          /* über Navbar/Modals */
  background: rgba(17, 24, 39, 0.96);     /* sehr dunkles Grau, fast schwarz */
  color: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
.cookie-inner{ padding: 14px 0; }
.cookie-text{ margin: 0 0 6px; color: #f1f5f9; }
.cookie-banner a{ color:#fff; text-decoration: underline; }

.cookie-options .form-check-input{
  border-color: #cbd5e1;
  background-color: transparent;
}
.cookie-options .form-check-input:checked{
  background-color: #0d6efd;              /* Bootstrap primary */
  border-color: #0d6efd;
}
.cookie-options span{ color: #e2e8f0; }

/* Buttons im Banner */
.cookie-banner .btn-outline-light{
  border-color: rgba(255,255,255,.85);
}
.cookie-banner .btn-outline-light:hover{
  background:#fff; color:#000;
}

/* Auf sehr kleinen Screens: mehr Platz */
@media (max-width: 575.98px){
  .cookie-inner{ padding: 12px 12px; }
}


