/* 
   Hauptfarben:
   - Grün: #198754 (Bootstrap success)
   - Weiß: #fff
*/

:root {
  --primary-color: #198754;
  --primary-dark: #157347;
  --primary-light: #6BBF8A;
  --secondary-color: #f8f9fa;
  --accent-color: #fd7e14;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f5f5f5;
  line-height: 1.6;
}

/* Header & Navbar Styling - WICHTIG für korrekte Anzeige */
.navbar {
  background-color: var(--primary-color) !important;
  border-bottom: 3px solid var(--primary-dark);
}

.navbar-dark {
  background-color: var(--primary-color) !important;
}

.navbar-dark .navbar-brand {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link.btn {
  border: 2px solid white;
  margin-top: -2px;
  margin-bottom: -2px;
}

/* Hero Section Styling */
.hero-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  position: relative;
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Cards & Content */
.card {
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header:first-child {
  border-radius: calc(0.6rem - 1px) calc(0.6rem - 1px) 0 0;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Buttons */
.btn {
  border-radius: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-success:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-success {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* Custom Components */
.feature-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.gallery-img {
  height: 250px;
  object-fit: cover;
  border-radius: 0.6rem;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
}

/* Footer */
footer {
  background-color: #333;
  color: white;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .gallery-img {
    height: 200px;
  }
  
  .navbar-brand span {
    display: none;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn + .btn {
    margin-left: 0;
  }
  
  .table-responsive {
    font-size: 0.9rem;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  .gallery-img {
    height: 180px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-outline-success {
    border-width: 2px;
  }
  
  .card {
    border: 2px solid #333;
  }
}

/* Rich Text Editor Styles */
#wiki-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 1rem;
}

#wiki-content:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

#editor-toolbar {
  border-bottom: 1px solid #dee2e6;
}

#editor-toolbar .btn {
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

#editor-toolbar .btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

#editor-toolbar .btn:active {
  transform: translateY(1px);
}

/* Content Editable Styles */
#wiki-content[contenteditable="true"] {
  cursor: text;
}

#wiki-content[contenteditable="true"]:empty:before {
  content: "Hier können Sie Ihren Text eingeben...";
  color: #6c757d;
  font-style: italic;
}

/* Image preview styles */
#image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#image-preview img {
  border-radius: 0.4rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

#image-preview img:hover {
  transform: scale(1.05);
}

/* Wiki content styles */
.wiki-content {
  line-height: 1.6;
}

.wiki-content h1, .wiki-content h2, .wiki-content h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.wiki-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.4rem;
  margin: 1rem 0;
}

.wiki-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.wiki-content table th,
.wiki-content table td {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  text-align: left;
}

.wiki-content table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.wiki-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #6c757d;
}

/* Work Hours Summary Styles */
.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.accordion-button::after {
  background-size: 1rem;
}

.progress {
  border-radius: 0.25rem;
}

.progress-bar {
  transition: width 0.6s ease;
}

/* Status indicators */
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.status-approved {
  background-color: var(--success);
}

.status-pending {
  background-color: var(--warning);
}

.status-rejected {
  background-color: var(--danger);
}

/* Compact table styles */
.table-sm th,
.table-sm td {
  padding: 0.5rem;
  vertical-align: middle;
}

.btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
} 