/* ==========================================================================
   ZENTRALES STYLESHEET - ZT KERSCHBAUMER (master.css)
   ========================================================================== */

:root {
  --primary: #133b63;
  --primary-light: #1d5287;
  --accent: #d97706;
  --bg: #f4f6f9;
  --card-bg: #ffffff;
  --text: #334155;
  --text-dark: #0f172a;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

.container {
  width: 94%;
  max-width: 1120px;
  margin: 0 auto;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  height: 85px;
  max-width: 470px;
  width: auto;
  object-fit: contain;
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--primary);
  color: #ffffff;
}

/* --- HERO BEREICH --- */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #091d33 100%);
  color: #ffffff;
  padding: 35px 0 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-section h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 850px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-title-section {
  background: linear-gradient(135deg, var(--primary) 0%, #091d33 100%);
  color: #ffffff;
  padding: 30px 0;
  margin-bottom: 30px;
}

.page-title-section h1 {
  font-size: 2rem;
  color: #ffffff;
}

.cta-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px 22px;
  border-radius: 8px;
}

.cta-card h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.highlight-text {
  color: #fcd34d;
  font-weight: 600;
  margin: 6px 0 14px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
}

/* --- LAYOUT GRID --- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 25px;
  margin-bottom: 40px;
}

/* --- KARTEN & CONTENT --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card h2 {
  color: var(--primary);
  font-size: 1.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
  margin-top: 25px;
  margin-bottom: 12px;
}

.card h2:first-of-type {
  margin-top: 0;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.card a {
  color: var(--primary);
  font-weight: 600;
}

.profile-card {
  display: flex;
  gap: 22px;
  background: var(--card-bg);
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.profile-box {
  display: flex;
  gap: 22px;
  margin-bottom: 25px;
}

.profile-img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.title-sub {
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.qualifications {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 0.92rem;
}

.qualifications li {
  margin-bottom: 5px;
}

.contact-details {
  background: #e9f2fa;
  border: 1px solid #bfdbfe;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
}

.contact-details a {
  color: var(--primary);
  font-weight: 600;
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 25px;
}

.service-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.service-card p:last-child {
  margin-bottom: 0;
}

/* --- BANNER BOX --- */
.banner-box {
  background: #e9f2fa;
  border: 1px solid #bfdbfe;
  padding: 20px;
  border-radius: 8px;
}

.banner-box h3 {
  color: var(--primary);
  margin-bottom: 6px;
}

.banner-box a {
  color: var(--primary);
  font-weight: 600;
}

/* --- SIDEBAR --- */
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-widget h4 {
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.sidebar-widget p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* --- FOOTER --- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 25px 0;
  font-size: 0.88rem;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a, .site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover, .site-footer a:hover {
  text-decoration: underline;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #f8fafc;
  padding: 18px 0;
  border-top: 3px solid var(--primary-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: none;
}

.cookie-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-text {
  flex: 1 1 500px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-text a {
  color: #ffd276;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
}

.btn-cookie-accept {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-cookie-decline {
  background-color: #334155;
  color: #ffffff;
}

.btn-cookie:hover {
  opacity: 0.9;
}

/* --- RESPONSIVE ANPASSUNGEN (SMARTPHONE & TABLET) --- */
@media (max-width: 860px) {
  .logo {
    height: 55px;
  }
  .site-header {
    padding: 8px 0;
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .profile-card,
  .profile-box {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .profile-img {
    width: 160px;
    height: auto;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-buttons {
    justify-content: stretch;
  }
  .btn-cookie {
    flex: 1;
    text-align: center;
  }
}