/**
 * Modernes Branchenprofil-Layout für Branchenbuch Pro
 */

:root {
  --bb-primary: #2563eb;
  --bb-primary-dark: #1d4ed8;
  --bb-secondary: #64748b;
  --bb-text: #1e293b;
  --bb-text-light: #64748b;
  --bb-bg: #f8fafc;
  --bb-white: #ffffff;
  --bb-border: #e2e8f0;
  --bb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --bb-radius: 12px;
}

/* Allgemeine Styles */
.branchenbuch-modern-profile {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--bb-text);
  line-height: 1.6;
  background-color: var(--bb-bg);
  max-width: 100%;
}

/* Hero Section */
.branchenbuch-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 60px 20px;
  margin-bottom: 40px;
  border-radius: var(--bb-radius);
  position: relative;
  overflow: hidden;
}

.branchenbuch-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
}

.branchenbuch-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.branchenbuch-hero-logo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background: white;
  border-radius: var(--bb-radius);
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.branchenbuch-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.branchenbuch-hero-logo-placeholder {
  font-size: 4rem;
  color: #cbd5e1;
}

.branchenbuch-hero-info {
  flex: 1;
}

.branchenbuch-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 15px 0;
  color: white;
  line-height: 1.2;
}

.branchenbuch-hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.branchenbuch-stars {
  color: #fbbf24;
  font-size: 1.1rem;
}

.branchenbuch-rating-text {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.branchenbuch-hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.branchenbuch-category-badge {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.branchenbuch-category-badge:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* Layout Grid */
.branchenbuch-layout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Main Content */
.branchenbuch-section {
  background: white;
  border-radius: var(--bb-radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--bb-shadow);
  border: 1px solid var(--bb-border);
}

.branchenbuch-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
  color: var(--bb-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.branchenbuch-section-title i {
  color: var(--bb-primary);
}

.branchenbuch-description {
  font-size: 1.05rem;
  color: #475569;
}

/* Services Grid */
.branchenbuch-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.branchenbuch-service-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--bb-border);
}

.branchenbuch-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.branchenbuch-service-icon {
  width: 40px;
  height: 40px;
  background: #dbeafe;
  color: var(--bb-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.branchenbuch-service-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.branchenbuch-service-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--bb-text-light);
}

/* News List */
.branchenbuch-news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.branchenbuch-news-card {
  border-left: 4px solid var(--bb-primary);
  background: #f8fafc;
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.branchenbuch-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.branchenbuch-news-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.branchenbuch-news-date {
  font-size: 0.85rem;
  color: var(--bb-text-light);
  background: white;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--bb-border);
}

.branchenbuch-news-body {
  font-size: 0.95rem;
  color: #475569;
}

/* Sidebar */
.branchenbuch-sidebar-sticky {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.branchenbuch-card {
  background: white;
  border-radius: var(--bb-radius);
  padding: 25px;
  box-shadow: var(--bb-shadow);
  border: 1px solid var(--bb-border);
}

.branchenbuch-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--bb-text);
}

/* Contact Card */
.branchenbuch-contact-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.branchenbuch-contact-row i {
  color: var(--bb-primary);
  width: 20px;
  text-align: center;
  margin-top: 4px;
}

.branchenbuch-contact-text {
  flex: 1;
  font-size: 0.95rem;
  color: #475569;
}

.branchenbuch-contact-text a {
  color: var(--bb-text);
  text-decoration: none;
  transition: color 0.2s;
}

.branchenbuch-contact-text a:hover {
  color: var(--bb-primary);
}

.branchenbuch-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bb-border);
}

.branchenbuch-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--bb-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.branchenbuch-social-icons a:hover {
  background: var(--bb-primary);
  color: white;
  transform: translateY(-2px);
}

/* Hours Card */
.branchenbuch-hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.branchenbuch-hours-row:last-child {
  border-bottom: none;
}

.branchenbuch-day {
  font-weight: 500;
}

.branchenbuch-time.closed {
  color: #ef4444;
}

/* Map Card */
.branchenbuch-map-card {
  padding: 0;
  overflow: hidden;
}

.branchenbuch-map-embed {
  height: 250px;
  width: 100%;
}

/* Form Card */
.branchenbuch-form-field {
  margin-bottom: 15px;
}

.branchenbuch-form-field input,
.branchenbuch-form-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: #f8fafc;
}

.branchenbuch-form-field input:focus,
.branchenbuch-form-field textarea:focus {
  outline: none;
  border-color: var(--bb-primary);
  background: white;
}

.branchenbuch-submit-button {
  width: 100%;
  padding: 12px;
  background: var(--bb-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.branchenbuch-submit-button:hover {
  background: var(--bb-primary-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .branchenbuch-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .branchenbuch-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .branchenbuch-hero-rating,
  .branchenbuch-hero-categories {
    justify-content: center;
  }
  
  .branchenbuch-sidebar-sticky {
    position: static;
  }
}

