/* Custom Styles for KI-Codex Z-Stack Layout */

/* Grundlegendes Layout-Anpassung für dunkles Design */
body {
    background-color: #494f5c !important; /* Dunklerer Hintergrund wie gewünscht */
    margin: 0;
    padding: 0;
    color: #eeeeee !important;
}

/* Das Porträtbild als fixiertes Hintergrundelement (Z-Layer 0) */
.headshot {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* Größe des Bildes kontrollieren */
    width: min(70vh, 700px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    
    /* Transparenz und Layering */
    opacity: 0.25 !important; /* Etwas sichtbarer als 0.18, da Benutzer es besser sehen will */
    z-index: 0 !important;
    pointer-events: none !important;
    
    /* Styling-Resets */
    border-radius: 0 !important; 
    object-fit: contain !important;
    border: none !important;
    box-shadow: none !important;
}

/* Der Content-Container liegt darüber (Z-Layer 10) */
.container {
    position: relative !important;
    z-index: 10 !important;
    background: transparent !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Anpassung der Header-Sektion, da das Bild nun fixiert ist */
.header {
    margin-top: 20px !important;
}

/* Textfarben und Lesbarkeit */
.author {
    color: #ffffff !important;
    font-size: 3rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.intro {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
}

.description {
    color: #dddddd !important;
    font-size: 1.2rem !important;
}

.menu-item {
    color: #ffffff !important;
    font-weight: bold !important;
    border-bottom: 2px solid transparent;
}

#main-menu-pane h4 {
    margin-top: 2em !important;
    margin-bottom: 0 !important;
}

.menu-item:hover {
    color: #cccccc !important;
    border-bottom: 2px solid #cccccc;
}

/* Sub-menu styling */
.sub-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.5rem 0 1.5rem 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.sub-menu li {
    margin-bottom: 0.3rem !important;
    text-align: center !important;
}

.sub-menu-item {
    color: #dddddd !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.sub-menu-item:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.social a {
    color: #ffffff !important;
    font-size: 1.5rem !important;
}

/* Meta Menu Styles */
.meta-menu {
  margin-bottom: 0.5rem;
}

.meta-menu-item {
  margin: 0 10px;
  font-size: 0.85rem;
}

.meta-menu-item a {
  color: #aaaaaa !important;
  text-decoration: none;
  transition: color 0.2s;
}

.meta-menu-item a:hover {
  color: #ffffff !important;
}

.footer, .copyright, .powered {
    color: #aaaaaa !important;
}

.footer hr {
    border-color: rgba(255,255,255,0.2) !important;
}

/* Custom Styles for KI-Codex Sections */

.hol-half {
  width: 50% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.2) !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

.section-headline {
  font-family: "Roboto Slab", serif !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  margin-bottom: 1em !important;
  text-align: center !important;
  color: #ffffff !important;
  font-size: 1.2rem !important; /* Verkleinerte Headline */
}

.section-content {
  text-align: center !important;
  margin-bottom: 2rem !important;
  font-size: 0.95rem !important; /* Leicht verkleinerter Text */
}

.customer-logo {
  max-width: 300px !important; /* Deutlich kleiner */
  width: 80% !important; /* Responsiv */
  height: auto !important;
  margin-top: 1em !important;
  filter: grayscale(100%) opacity(0.7); /* Dezenter */
  transition: filter 0.3s;
}

.customer-logo:hover {
  filter: grayscale(0%) opacity(1);
}

/* Testimonial Carousel Styles */
.testimonial-item {
  padding: 20px 80px !important;
}

.testimonial-text {
  font-style: italic !important;
  font-size: 1rem !important; /* Verkleinert */
  margin-bottom: 0.5em !important;
  color: #dddddd !important;
}

.testimonial-info {
  font-size: 0.85rem !important; /* Verkleinert */
  margin-bottom: 0.2em !important;
  color: #aaaaaa !important;
}

.carousel-control-prev-icon-minimal,
.carousel-control-next-icon-minimal {
  color: #ffffff !important;
  font-size: 1.2rem !important; /* Etwas kleinere Icons */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 8% !important;
}

/* Certificates Grid */
.certificates-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 15px !important;
  margin-top: 1em !important;
}

.certificate-badge {
  max-height: 80px !important; /* Deutlich kleiner */
  width: auto !important;
  transition: transform 0.2s, filter 0.3s !important;
  filter: grayscale(20%) opacity(0.8); /* Dezenter */
}

.certificate-badge:hover {
  transform: scale(1.1) !important;
  filter: grayscale(0%) opacity(1);
}

