/**
 * Custom styling for walter75 Consulting Documentation
 * Based on Microsoft Learn design patterns
 */

/* ===== Microsoft Learn Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #0078d4 0%, #00188f 100%);
  color: white;
  padding: 60px 48px;
  margin: -24px -48px 40px -48px;
  border-radius: 0;
  width: calc(100% + 96px);
  max-width: none;
}

/* Hero auf großen Bildschirmen */
@media (min-width: 1400px) {
  .hero-section {
    padding: 60px 80px;
    margin: -24px -80px 40px -80px;
    width: calc(100% + 160px);
  }
}

/* Hero auf Tablets */
@media (max-width: 991px) {
  .hero-section {
    padding: 60px 32px;
    margin: -24px -32px 40px -32px;
    width: calc(100% + 64px);
  }
}

/* Hero auf Mobile */
@media (max-width: 767px) {
  .hero-section {
    padding: 40px 16px;
    margin: -24px -16px 40px -16px;
    width: calc(100% + 32px);
  }
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
  border: none;
}

.hero-section p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 800px;
}

/* ===== Microsoft Learn Content Layout ===== */
/* Landing Page: Breiterer Container wie bei Microsoft Learn */
body[data-layout="landing"] .content {
  max-width: 100%;
  padding-left: 48px;
  padding-right: 48px;
}

/* Desktop: Noch mehr Abstand */
@media (min-width: 1400px) {
  body[data-layout="landing"] .content {
    padding-left: 80px;
    padding-right: 80px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  body[data-layout="landing"] .content {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body[data-layout="landing"] .content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===== Card Grid System ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

/* Card mit Gesamt-Link */
.card-item {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: all 0.2s ease;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--bs-primary);
  text-decoration: none;
  color: var(--bs-body-color);
}

/* Card ohne Gesamt-Link (nur Content ist verlinkt) */
.card-item-static {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 20px;
  color: var(--bs-body-color);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card-item-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-item-content {
  flex: 1;
  min-width: 0;
}

.card-item h3,
.card-item-static h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  border: none;
  color: var(--bs-body-color);
  line-height: 1.4;
}

.card-item p,
.card-item-static p {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin: 0;
  line-height: 1.5;
}

/* Links innerhalb von card-item-static */
.card-item-static a {
  color: var(--bs-link-color);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

.card-item-static a:hover {
  text-decoration: underline;
  color: var(--bs-link-hover-color);
}

/* ===== Share Box in Affix Sidebar ===== */
.share-box {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--bs-border-color);
}

.share-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn i {
  font-size: 18px;
}

/* ===== Last Updated Badge ===== */
.last-updated-badge {
  margin-top: 32px;
  padding: 16px 0 0 0;
  border-top: 1px solid var(--bs-border-color);
}

.last-updated-badge span {
  display: inline-block;
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

/* ===== Footer Styling ===== */
footer.border-top {
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color) !important;
  padding: 24px 0;
  margin-top: 64px;
}

.footer-content {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.875rem;
}

.footer-separator {
  color: var(--bs-border-color);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: var(--bs-link-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-links a:hover {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

.footer-links a i {
  font-size: 0.75rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.footer-copyright a {
  color: var(--bs-link-color);
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer-content {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-separator {
    display: none;
  }
  
  footer.border-top {
    padding: 20px 0;
    margin-top: 48px;
  }
}
  font-weight: 600;
  margin: 0 0 8px 0;
  border: none;
  color: var(--bs-body-color);
  line-height: 1.4;
}

.card-item p {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin: 0;
  line-height: 1.5;
}