/* Zentrales, luftiges und freundliches CSS für alle beratung-Seiten */

/* Google Fonts Einbindung */
@import url('https://fonts.googleapis.com/css?family=Francois+One:400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400&display=swap');

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: url('https://diegrasdruckerei.de/beratung/gfx/beratung_bg.webp') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-attachment: fixed;
  color: #333;
}

body, p, label, input, textarea, select {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 33px;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Francois One', 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 2em;
  line-height: 1.143;
  color: #67b547;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h2 { font-size: 1.5em; }
h3 { font-size: 1.15em; }

.logo-bar {
  text-align: center;
  margin: 48px 0 36px 0;
}
.logo-bar img {
  width: 105px !important;
  height: 80px !important;
  object-fit: contain;
  max-width: unset;
}

.container {
  max-width: 1600px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 32px 16px;
  box-sizing: border-box !important;
  background: rgba(255,255,255,0.85) !important;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1600px;
    padding: 64px 64px 48px 64px;
  }
}

.subtitle {
  color: #636466;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.benefit {
  background: #f8f9fa;
  border-left: 5px solid #62bb46;
  border-radius: 10px;
  padding: 18px 20px;
  color: #333;
  font-size: 1.08rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.benefit h3 {
  margin: 0 0 4px 0;
  color: #62bb46;
  font-size: 1.1rem;
}

.stats {
  background: #e8f5e8;
  color: #333;
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 8px;
}

.form-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 0;
}
.form-container h2 {
  margin-bottom: 18px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2c3e50;
}
.form-group input {
  width: 100%;
  padding: 13px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: #62bb46;
}
.form-group.required label::after {
  content: " *";
  color: #e74c3c;
}

.button, .btn, button, input[type="submit"] {
  background: #62bb46;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 0;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 0;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(98,188,70,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Ausnahme für action-buttons Container */
.action-buttons .btn-secondary,
.action-buttons .btn-danger,
.action-buttons button {
  width: auto;
  margin-top: 0;
  margin-bottom: 0;
}
.button:hover, .btn:hover, button:hover, input[type="submit"]:hover {
  background: #a2db91;
  transform: translateY(-2px);
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.privacy {
  margin-top: 18px;
  padding: 14px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.98rem;
  color: #6c757d;
}
.privacy strong { color: #62bb46; }

/* Kalender und Terminbuchung */
.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.day-card {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  background: #fff;
}
.day-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.day-header {
  background: #62bb46;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  border-radius: 10px 10px 0 0;
  padding: 0;
}
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin: 2px 0 10px 0;
}
@media (min-width: 1200px) {
  .time-slots {
    grid-template-columns: repeat(6, 1fr);
  }
}
.time-slot {
  border: none;
  background: #e8f5e8;
  color: #333;
  border-radius: 6px;
  padding: 8px;
  margin: 2px 0;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-size: 0.9em;
  font-family: inherit;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.time-slot:focus {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
  z-index: 2;
}
.time-slot.lunch,
.time-slot.booked,
.time-slot.past {
  pointer-events: none;
  cursor: not-allowed;
}
.time-slot:hover, .time-slot.selected {
  background: #62bb46;
  color: white;
  border-color: #62bb46;
}

.time-slot.booked {
  background: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
  border-color: #dee2e6 !important;
  opacity: 0.6;
}

.time-slot.booked:hover {
  background: #e9ecef !important;
  color: #6c757d !important;
  transform: none !important;
}

.time-slot.lunch {
  grid-column: 1 / -1 !important;
  text-align: center;
}

/* Termin-Verwaltungsbuttons */
.appointment-management {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.appointment-management h4 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 1.1em;
}

.btn-cancel, .btn-change {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-cancel {
  background: #dc3545;
  color: white;
}

.btn-cancel:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-change {
  background: #17a2b8;
  color: white;
}

.btn-change:hover {
  background: #138496;
  transform: translateY(-1px);
}

/* Secondary Button für Terminauswahl abbrechen */
.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Bereits gebuchte Termine ausgrauen */
.time-slot.booked {
  background: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
  border-color: #dee2e6 !important;
  opacity: 0.6;
}

.time-slot.booked:hover {
  background: #e9ecef !important;
  color: #6c757d !important;
  transform: none !important;
}

/* Admin Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Admin Button */
.btn-admin {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-admin:hover {
  background: #5a6268;
}

/* Tabellen für Dashboard */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  background: #f8f9fa;
  font-weight: bold;
}
.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
}
.status-new { background: #fff3cd; color: #856404; }
.status-contacted { background: #cce5ff; color: #004085; }
.status-followup { background: #ffe6cc; color: #cc6600; }
.status-termin { background: #d1ecf1; color: #0c5460; }
.status-converted { background: #d4edda; color: #155724; }

/* Sonstiges */
a { color: #62bb46; text-decoration: underline; }
a:hover { color: #388e3c; text-decoration: underline; }

::-webkit-input-placeholder { color: #bdbdbd; }
::-moz-placeholder { color: #bdbdbd; }
:-ms-input-placeholder { color: #bdbdbd; }
::placeholder { color: #bdbdbd; }

/* Auffällige Links in hervorgehobenen Boxen */
.stats a, .highlight a {
  color: #ff9800 !important;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s;
}
.stats a:hover, .highlight a:hover {
  color: #e65100 !important;
  text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-logo-bar {
  text-align: center;
  margin: 40px 0 24px 0;
}
.dashboard-logo-bar img {
  height: 70px;
  max-width: 90vw;
  object-fit: contain;
}

.dashboard-container {
  max-width: 1600px;
  width: 95%;
  margin: 0 auto 48px auto;
  background: rgba(255,255,255,0.85) !important;
  border-radius: 20px;
  padding: 48px 32px 40px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 1700px) {
  .dashboard-container {
    max-width: 95vw;
    width: 95%;
  }
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.dashboard-header h1 {
  margin: 0 0 8px 0;
  color: #67b547;
  font-size: 2.1em;
  text-transform: uppercase;
}
.dashboard-actions {
  display: flex;
  gap: 16px;
}
.refresh-btn, .logout-btn {
  background: #e8f5e8;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(98,188,70,0.07);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.refresh-btn:hover {
  background: #a2db91;
  color: #155724;
}
.logout-btn {
  background: #ffe6e6;
  color: #c0392b;
}
.logout-btn:hover {
  background: #f8d7da;
  color: #721c24;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}
.stat-card {
  background: #f8f9fa;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 28px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 120px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover {
  box-shadow: 0 6px 24px rgba(98,188,70,0.10);
  transform: translateY(-2px) scale(1.03);
}
.stat-card.stat-wide {
  grid-column: span 2;
  min-width: 0;
}
.stat-icon {
  font-size: 2.1em;
  margin-bottom: 6px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
}
.stat-blue { background: #e3f0ff; color: #007bff; }
.stat-yellow { background: #fffbe6; color: #ffc107; }
.stat-cyan { background: #e0f7fa; color: #17a2b8; }
.stat-orange { background: #fff3e0; color: #fd7e14; }
.stat-green { background: #e8f5e8; color: #28a745; }
.stat-purple { background: #f3e6ff; color: #6f42c1; }
.stat-pink { background: #ffe6f0; color: #e83e8c; }
.stat-teal { background: #e6fffa; color: #20c997; }

.stat-number {
  font-size: 2.2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}
.stat-label {
  font-size: 1.05em;
  color: #636466;
  text-align: center;
}

@media (max-width: 700px) {
  .dashboard-container {
    padding: 18px 2vw 18px 2vw;
  }
  .dashboard-header h1 {
    font-size: 1.2em;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card.stat-wide {
    grid-column: span 1;
  }
}

.flyer-thumb {
  width: 150px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  object-fit: contain;
  background: #fff;
  margin: 0 auto;
  display: block;
}

/* Moderne Kalenderansicht - Woche-zu-Woche */
* {
    box-sizing: border-box;
}

.logo-bar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.logo-bar img {
    height: 40px;
    width: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header h1 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0;
}

.lead-info {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.lead-info h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.lead-info p {
    margin: 8px 0;
    color: #34495e;
}

/* Kalender-Navigation */
.calendar-nav {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #62bb46 0%, #4a9c2f 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin: 0 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(98, 187, 70, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(98, 187, 70, 0.4);
    color: white;
    text-decoration: none;
}

.current-week {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    padding: 0 30px;
}

/* Woche-zu-Woche Kalender */
.week-calendar {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.week-header {
    background: white !important;
    color: #2c3e50 !important;
    border-bottom: 3px solid #62bb46 !important;
    padding: 20px;
    text-align: center;
}

.week-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50 !important;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ecf0f1;
    min-height: 300px;
}

.day-column {
    background: white;
    min-height: 200px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.day-header {
    background: #62bb46;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    border-radius: 10px 10px 0 0;
    padding: 0;
}
.day-date {
    font-size: 0.95em;
    color: #fff;
    margin-bottom: 2px;
    margin-top: 8px;
    font-weight: normal;
    letter-spacing: 0.5px;
}
.day-name {
    color: #fff !important;
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
    margin: 0;
}
.holiday-name {
    font-size: 0.6em;
    margin-top: 1px;
    font-style: italic;
}

.time-slot {
    padding: 0;
    margin: 0;
    border-radius: 3px;
    text-align: center;
    font-size: 0.7em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-height: 30px;
    min-width: 50px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
}

.time-slot.selected {
    border: 2px solid #28a745;
    background: #eafbe7;
    color: #218838;
    font-weight: bold;
}

.time-slot.available:hover {
    background: #c3e6cb;
    color: #155724;
    border-color: #28a745;
}

.time-slot.booked {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot.lunch-break {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
    cursor: not-allowed;
    font-style: italic;
}

.time-slot.weekend {
    background: #f8f9fa;
    color: #95a5a6;
    cursor: not-allowed;
    font-style: italic;
}

.time-slot.holiday {
    background: #fff3cd;
    color: #856404;
    cursor: not-allowed;
    font-style: italic;
}

/* Outlook Integration */
.outlook-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #0078d4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.outlook-link:hover {
    background: #106ebe;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .week-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .day-column {
        min-height: auto;
    }
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    .current-week {
        font-size: 1.1em;
        padding: 0 15px;
    }
}

@media (max-width: 900px) {
    .week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .week-grid {
        grid-template-columns: 1fr;
    }
    .time-slots { grid-template-columns: repeat(2, 1fr); }
    .logo-bar img {
      width: 105px !important;
      height: 80px !important;
    }
}

/* Erfolgs- und Fehlermeldungen */
.success, .error, .already-booked {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.success {
    border-left: 5px solid #28a745;
}

.error {
    border-left: 5px solid #dc3545;
}

.already-booked {
    border-left: 5px solid #ffc107;
}

/* Buttons */
.btn-cancel, .btn-change {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-cancel {
    background: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-change {
    background: #ffc107;
    color: #212529;
}

.btn-change:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #62bb46;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.day-header.past {
    background: #f8f9fa;
    color: #bdc3c7;
}

.day-header.weekend {
    background: #f8f9fa;
    color: #95a5a6;
}

.day-header.holiday {
    background: #fff3cd;
    color: #856404;
}

.hero {
  text-align: center;
  margin-bottom: 18px;
  background: #fff;
  padding: 36px 18px 18px 18px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(98,188,70,0.07);
}
.hero h1 {
  color: #67b547;
  font-size: 2.2em;
  margin-bottom: 10px;
  font-family: 'Francois One', 'Lato', Arial, Helvetica, sans-serif;
}
.hero .subtitle {
  color: #333;
  font-size: 1.15em;
  margin-bottom: 10px;
}
.hero-addition {
  color: #155724;
  font-size: 1.05em;
  margin-bottom: 0;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  margin-bottom: 12px;
}
.hero-logo img {
  width: 105px !important;
  height: 80px !important;
  object-fit: contain;
  max-width: unset;
}

.features-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 32px 0 24px 0;
  flex-wrap: wrap;
}
.feature-card {
  background: #f8f9fa;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  gap: 10px;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(98,188,70,0.10);
  transform: translateY(-2px) scale(1.03);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.feature-icon img {
  width: auto;
  display: block;
  max-width: 100%;
  margin: 0 auto;
}
.feature-title {
  font-size: 1.15em;
  font-weight: bold;
  color: #67b547;
  margin-bottom: 6px;
  text-align: center;
}
.feature-desc {
  font-size: 1em;
  color: #333;
  text-align: center;
}

.trust-box {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 24px 0 18px 0;
  flex-wrap: wrap;
}
.trust-item {
  background: #e8f5e8;
  color: #155724;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(98,188,70,0.07);
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item img {
  height: 32px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .features-grid {
    flex-direction: column;
    align-items: center;
  }
  .feature-card {
    max-width: 95vw;
    min-width: 180px;
    flex-direction: column;
    justify-content: flex-start;
  }
  .trust-box {
    flex-direction: column;
    align-items: center;
  }
}

.hero-headline-with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}
.hero-headline-logo {
  width: 105px !important;
  height: 80px !important;
  object-fit: contain;
  max-width: unset;
  display: block;
}
@media (max-width: 600px) {
  .hero-headline-with-logo {
    flex-direction: column;
    gap: 8px;
  }
  .hero-headline-logo {
    margin-bottom: 0;
  }
}

.weeknav-desktop {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.weeknav-mobile {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.weeknav-btn {
  background: #eafbe7;
  color: #218838;
  border: none;
  border-radius: 8px;
  font-size: 1.6em;
  font-weight: bold;
  padding: 8px 18px;
  text-align: center;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(98,188,70,0.07);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.weeknav-btn:hover {
  background: #c3e6cb;
  color: #155724;
}
.weeknav-kw {
  font-size: 1.1em;
  font-weight: bold;
  color: #1976d2;
  text-align: center;
  min-width: 90px;
}
@media (max-width: 700px) {
  .weeknav-desktop { display: none !important; }
  .weeknav-mobile { display: flex !important; }
}

.termin-header { text-align: center; margin: 32px 0 18px 0; }
.termin-header h1 { color: #67b547; font-size: 2em; margin-bottom: 0; }
.termin-kw-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 18px; }
.termin-kw-btn { background: #eafbe7; color: #218838; border: none; border-radius: 8px; font-size: 2em; font-weight: bold; padding: 8px 18px; min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(98,188,70,0.07); cursor: pointer; transition: background 0.2s, color 0.2s; }
.termin-kw-btn:hover { background: #c3e6cb; color: #155724; }
.termin-kw-label { font-size: 1.1em; font-weight: bold; color: #1976d2; text-align: center; min-width: 120px; }
.termin-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
@media (min-width: 700px) { .termin-grid { grid-template-columns: repeat(7,1fr); } }
.termin-day { background: rgba(255,255,255,0.85); border-radius: 12px; box-shadow: 0 2px 8px #0001; padding: 12px 8px 18px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.termin-day-header { font-weight: bold; color: #67b547; font-size: 1.1em; margin-bottom: 2px; }
.termin-day-date { color: #888; font-size: 0.95em; margin-bottom: 8px; }
.termin-slot-btn { min-width: 70px; min-height: 32px; font-size: 1em; border: none; border-radius: 6px; background: #eafbe7; color: #218838; cursor: pointer; margin: 3px 0; padding: 6px 0; transition: 0.2s; width: 90%; max-width: 120px; position: relative; }
.termin-slot-btn:hover { background: #c3e6cb; }
.termin-slot-btn.booked, .termin-slot-btn.holiday, .termin-slot-btn.weekend, .termin-slot-btn.lunch { background: #f0f0f0; color: #bbb; cursor: not-allowed; border: 1px solid #eee; }
.termin-slot-btn.mine { background: #1976d2; color: #fff; font-weight: bold; border: 2px solid #1976d2; }
.termin-slot-btn.mine::after { content: ' ✓'; color: #fff; font-size: 1.1em; margin-left: 4px; vertical-align: middle; }
.termin-day-holiday { color: #856404; background: #fff3cd; border-radius: 6px; padding: 2px 6px; font-size: 0.9em; margin-bottom: 6px; }

.termin-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
}
@media (min-width: 500px) {
  .termin-slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.calendar-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.calendar-link-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin: 0 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, transform 0.2s;
  min-width: 90px;
  text-align: center;
}
.calendar-link-btn.outlook { background: #0078d4; }
.calendar-link-btn.google { background: #34a853; }
.calendar-link-btn.apple { background: #333; }
.calendar-link-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* --- Terminbuchung spezifische Styles aus termin.php --- */
.booking-header {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.week-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-button {
    background: #62bb46;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.nav-button:hover {
    background: #4a9c2f;
    transform: translateY(-2px);
}
.week-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    min-width: 200px;
    text-align: center;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.day-column {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: auto;
    min-height: auto;
}
.day-column.weekend,
.day-column.holiday,
.day-column.past {
    background: #f8f9fa;
    opacity: 0.7;
}
.day-header {
    text-align: center;
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.day-date {
    font-size: 1.2em;
    color: #62bb46;
    margin-bottom: 5px;
}
.day-name {
    font-size: 1.1em;
    color: #333;
    text-align: center;
    font-weight: bold;
    margin-bottom: 3px;
}
.holiday-name {
    font-size: 0.8em;
    color: #dc3545;
    margin-top: 5px;
    text-align: center;
}
.time-slots-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin: 2px 0;
}
@media (min-width: 1200px) {
    .time-slots-row {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        justify-items: stretch;
    }
}
.btn-primary {
    background: #ff8c00;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}
.btn-primary:hover:not(:disabled) {
    background: #e67e00;
    transform: translateY(-2px);
}
.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.calendar-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.calendar-link {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
}
.calendar-link.google {
    background: #4285f4;
    color: white;
}
.calendar-link.outlook {
    background: #0078d4;
    color: white;
}
.calendar-link.ics {
    background: #333;
    color: white;
}
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.selecting-mode .time-slot:not(.booked):not(.past):not(.mine):not(.weekend):not(.holiday):not(.lunch) {
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
/* --- Ende Terminbuchung spezifisch --- */

/* --- Terminbuchung spezifische Styles (aus termin.php, für externe Nutzung) --- */
.booking-header {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.week-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-button {
    background: #62bb46;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.nav-button:hover {
    background: #4a9c2f;
    transform: translateY(-2px);
}
.week-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    min-width: 200px;
    text-align: center;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.day-column {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: auto;
    min-height: auto;
}
.day-column.weekend,
.day-column.holiday,
.day-column.past {
    background: #f8f9fa;
    opacity: 0.7;
}
.day-header {
    text-align: center;
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.day-date {
    font-size: 1.2em;
    color: #62bb46;
    margin-bottom: 5px;
}
.day-name {
    font-size: 1.1em;
    color: #333;
    text-align: center;
    font-weight: bold;
    margin-bottom: 3px;
}
.holiday-name {
    font-size: 0.8em;
    color: #dc3545;
    margin-top: 5px;
    text-align: center;
}
.time-slot {
    border: none;
    background: #e8f5e8;
    color: #333;
    border-radius: 6px;
    padding: 8px;
    margin: 2px 0;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 0.9em;
    font-family: inherit;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.time-slot:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
    z-index: 2;
}
.time-slot.lunch,
.time-slot.booked,
.time-slot.past {
    pointer-events: none;
    cursor: not-allowed;
}
.time-slots-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin: 2px 0;
}
@media (min-width: 1200px) {
    .time-slots-row {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        justify-items: stretch;
    }
}
.time-slot:hover:not(.booked):not(.past):not(.weekend):not(.holiday) {
    background: #62bb46;
    color: white;
    transform: scale(1.05);
}
.time-slot.booked,
.time-slot.weekend,
.time-slot.holiday {
    background: #f0f0f0 !important;
    color: #bbb !important;
    cursor: not-allowed !important;
    border: 1px solid #eee !important;
    opacity: 0.7;
}
.time-slot.lunch:hover,
.time-slot.weekend:hover,
.time-slot.holiday:hover {
  background: #f0f0f0 !important;
  color: #bbb !important;
  cursor: not-allowed !important;
  border: 1px solid #eee !important;
  opacity: 0.7;
  transform: none !important;
}
.time-slot.mine {
    background: #ff8c00;
    color: white;
    font-weight: bold;
    border: 2px solid #e67e00;
}
.time-slot.past {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}
.time-slot.selected {
    background: #28a745 !important;
    color: white !important;
    border: 2px solid #218838 !important;
    transform: scale(1.1);
}
.appointment-info {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #1976d2;
}
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Desktop: Buttons zentriert und nur Inhalt-Breite */
@media (min-width: 768px) {
    .action-buttons {
        justify-content: center;
        align-items: center;
    }
    
    .action-buttons .btn-secondary,
    .action-buttons .btn-danger {
        width: auto;
        min-width: fit-content;
    }
}

/* Mobile: Alle Buttons 100% Breite */
@media (max-width: 767px) {
    .action-buttons .btn-secondary,
    .action-buttons .btn-danger,
    .action-buttons form button {
        width: 100% !important;
    }
}
.btn-primary {
    background: #ff8c00;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}
.btn-primary:hover:not(:disabled) {
    background: #e67e00;
    transform: translateY(-2px);
}
.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.calendar-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.calendar-link {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
}
.calendar-link.google {
    background: #4285f4;
    color: white;
}
.calendar-link.outlook {
    background: #0078d4;
    color: white;
}
.calendar-link.ics {
    background: #333;
    color: white;
}
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.selecting-mode .time-slot:not(.booked):not(.past):not(.mine):not(.weekend):not(.holiday):not(.lunch) {
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
/* --- Ende Terminbuchung spezifisch --- */

/* --- Anpassung für Wochentage-Grid mobil/desktop --- */
@media (max-width: 900px) {
  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (min-width: 901px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  .day-column {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}

/* --- Anpassung für die Week-Navigation oben --- */
.week-navigation {
  max-width: 100% !important;
  flex-wrap: wrap;
  box-sizing: border-box !important;
}
@media (max-width: 600px) {
  .week-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }
  .nav-button {
    font-size: 1em;
    padding: 8px 10px;
    min-width: 0;
  }
  .week-label {
    font-size: 1em;
    min-width: 0;
    padding: 4px 0;
  }
}

.day-header .day-date {
    color: #fff !important;
    font-size: 85% !important;
}