/* ===================================================
   RECHTSANWALTSKANZLEI KRACHT-VORHOLZER
   Stylesheet
   =================================================== */

/* ----- Custom Properties ----- */
:root {
  /* Bordeauxrot – abgestimmt auf das Kanzleilogo */
  --primary:       #7D1B1B;
  --primary-dark:  #5C1212;
  --primary-light: #9E2424;
  /* Helleres Rot als Akzentfarbe (komplementär zum dunklen Primary) */
  --accent:        #B82626;
  --accent-light:  #CC3535;
  --text:          #2d2d2d;
  --text-muted:    #666;
  --bg:            #ffffff;
  --bg-light:      #faf7f5;
  --border:        #e6dede;
  --shadow:        0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover:  0 4px 20px rgba(0, 0, 0, 0.14);
  --radius:        4px;
  --transition:    0.2s ease;
  --max-width:     1200px;
  --header-height: 80px;
}

/* ----- Reset ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  font-size: 16px;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);    margin-bottom: 0.85rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem);  margin-bottom: 0.7rem; }
h4 { font-size: 1.1rem;                       margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }
strong { font-weight: 600; }

/* ----- Layout ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--light { background: var(--bg-light); }

.section--dark {
  background: var(--primary-dark);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

/* ----- Header ----- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 60px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .site-logo { flex-shrink: 1; min-width: 0; }

  .logo-img { height: 44px; }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.open { max-height: 500px; }

  .nav-menu ul {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .nav-menu a {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
  }

  /* Links in dropdown are white (on dark background) */
  .nav-menu a {
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--accent-light);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .nav-menu ul li:last-child a {
    border-bottom: none;
  }
}

/* ----- Hero ----- */
.hero {
  background:
    linear-gradient(to right, rgba(92, 18, 18, 0.95) 0%, rgba(125, 27, 27, 0.82) 55%, rgba(125, 27, 27, 0.30) 100%),
    url('/img/davinci-hero.jpg') right center / cover no-repeat;
  color: #fff;
  padding: 5rem 0 4rem;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero .container {
  width: 100%;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

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

/* ----- Notice ----- */
.notice {
  background: rgba(255, 255, 255, 0.92);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  /* Überschreibt die weiße Textfarbe des Hero-Bereichs */
  color: var(--text);
}
.notice p { margin: 0; color: var(--text); }
.notice strong { color: var(--primary); }

/* ----- Practice Areas Grid ----- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.area-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: all var(--transition);
}
.area-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-top-color: var(--primary);
}
.area-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.area-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----- USP Grid ----- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.usp-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.usp-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.usp-item p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ----- Page Header (inner pages) ----- */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 0;
}
.page-header h1 { color: #fff; margin: 0; }

.breadcrumb {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.breadcrumb a:hover { color: rgba(255, 255, 255, 0.9); }
.breadcrumb span { margin: 0 0.4rem; }

.page-content { padding: 3rem 0 4rem; }
.content-wrapper { max-width: 800px; }

/* ----- List Pages ----- */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.list-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.list-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.list-card-body {
  padding: 1.25rem;
  flex: 1;
}
.list-card-body h3 { margin-bottom: 0.5rem; }
.list-card-body h3 a { text-decoration: none; color: var(--primary); }
.list-card-body h3 a:hover { color: var(--accent); }
.list-card-footer {
  padding: 0.75rem 1.25rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.list-card-footer a { font-size: 0.9rem; font-weight: 600; }

/* ----- Attorney Profile ----- */
.profile-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.profile-photo-placeholder {
  width: 175px;
  min-height: 220px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
  line-height: 1.4;
}

.profile-photo {
  width: 175px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.profile-title {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
  .profile-wrap { flex-direction: column; }
  .profile-photo-placeholder { width: 100%; min-height: 140px; }
}

/* ----- Timeline (CV) ----- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 62px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
  position: relative;
}
.timeline-year {
  font-weight: 700;
  color: var(--primary);
  min-width: 52px;
  text-align: right;
  padding-top: 0.1rem;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.timeline-content {
  padding-left: 1.5rem;
  position: relative;
}
.timeline-content::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

/* ----- Contact Page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.contact-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  align-items: baseline;
}
.contact-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.88rem;
  min-width: 55px;
  flex-shrink: 0;
}

.openings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.openings-table td {
  padding: 0.3rem 0;
  vertical-align: top;
  font-size: 0.93rem;
}
.openings-table td:first-child {
  color: var(--text-muted);
  width: 120px;
}

/* ----- News / Aktuelles ----- */
.news-date {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.news-article {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.news-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.news-article h2 { font-size: 1.4rem; }

/* ----- Microsoft Forms Embed ----- */
.ms-form-wrap {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

/* ----- Service Page ----- */
.service-box {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.service-box h3 { margin-bottom: 0.75rem; }

/* ----- Prose (rich text) ----- */
.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul,
.prose ol { margin-bottom: 1rem; }

/* ----- Footer ----- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.footer-section p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-section a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-section a:hover { color: var(--accent-light); }
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li { margin-bottom: 0.4rem; }

.footer-badges {
  margin-top: 1.25rem;
}
.footer-badge-img {
  max-width: 130px;
  height: auto;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.footer-badge-img:hover { opacity: 1; }

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ----- Utilities ----- */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* ----- Responsive ----- */
@media (max-width: 600px) {
  .section       { padding: 2.5rem 0; }
  .page-content  { padding: 2rem 0; }
  .hero          { padding: 3rem 0 2.5rem; }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .cta-group { display: none; }
  body { color: #000; }
  a    { color: #000; text-decoration: none; }
}
