:root {
  --primary-color: #1e3c72;
  --accent-color: #ffd700;
  --text-color: #2c3e50;
  --background-light: #f8f9fa;
  --card-bg: #abe9f8;
  --blue-light: #6ea8ff;

  --max-width: 1200px;
  --spacing: 1.5rem;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Playfair Display', serif;
}

/* ==== Base Styles ==== */
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-color);
  background: white;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==== Header ==== */
.lawyer-header {
  background: var(--primary-color);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.fachgebiete-title{
  color: #003366;
      text-align: center;
}


.header-name h1 {
  color: white;
  margin: 0;
  font-size: 2rem;
}

.header-name p {
  color: var(--blue-light);
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* ==== Main Content ==== */
main {
  padding: 2rem 1rem;
}

.welcome-section {
  text-align: center;
  padding: 4rem 1rem;
}

.welcome-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.welcome-section p {
  font-size: 1.7rem;
  max-width: 13000px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  font-weight: bolder;
}

.office-photo {
  margin: 2rem auto;
  max-height: 400px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==== Specializations ==== */
.specializations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.law-card {
  background: #f4f4ff98; /* Clean light background */
  border-left: 5px solid #003366; /* Accent strip for theme match */
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.law-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 51, 102, 0.15);
  background-color: #f0f8ff;
}

.law-card i {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  color: #003366; /* Deep navy for better contrast */
}

.law-card h3 {
  color: #003366;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
}

.law-card i {
  font-size: 2.2rem;
  color: #003366;
  transition: transform 0.3s ease;
}

.law-card:hover i {
  transform: scale(1.1);
}

/* ==== Footer ==== */
.lawyer-footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(241, 15, 15, 0.3);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-section h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  margin-top: 0.5rem;
}

.footer-section p {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: #ffffff;

}

.footer-section a {
  color: var(--blue-light);
  text-decoration: none;
  transition: 0.3s;
    color: #ffffff;
}

.footer-section a:hover {
  color: var(--accent-color);
  transform: translateX(3px);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .specializations {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

.impressum-container {
  background: white;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.impressum-container h1 {
  color: #00334d;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  border-bottom: 2px solid #cce0e8;
  padding-bottom: 0.5rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  color: #004466;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.legal-section address,
.legal-section p {
  margin: 0.5rem 0;
}

/* Custom Section for Impressum */
.custom {
  background: #ffffff;
  max-width: 1500px;
  margin: 2rem auto;
  padding: 2rem;
  border-left: 4px solid #004466;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.custom p {
  margin-bottom: 1rem;
}

.custom ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.custom li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.custom a {
  color: #004466;
  text-decoration: none;
}

.custom a:hover {
  text-decoration: underline;
}

.page-header {
  background-color: var(--background-light);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 1000px;
  margin: 0 auto;
}

#maincontainer {
  padding: 3rem 1rem;
  background-color: var(--background-light);
}


.footer-section p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--background-light);
}

.datenschutz-header {
  background-color: var(--background-light);
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
}

.datenschutz-header h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.datenschutz-header p {
  font-size: 1.125rem;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Main Content Wrapper */
.datenschutz-main {
  background-color: var(--background-light);
  padding: 3rem 1.5rem;
}

.datenschutz-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section Box */
.datenschutz-section {
  background-color: #fff;
  padding: 2rem 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.datenschutz-section:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Headings */
.datenschutz-section h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 0.75rem;
}

/* Paragraphs */
.datenschutz-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-color);
  margin-bottom: 1.2rem;
}

/* Lists */
.datenschutz-section ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.datenschutz-section ul li {
  list-style: disc;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

/* Links */
.datenschutz-section a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.datenschutz-section a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .datenschutz-header h1 {
    font-size: 2.2rem;
  }

  .datenschutz-header p {
    font-size: 1rem;
  }

  .datenschutz-section h3 {
    font-size: 1.3rem;
  }

  .datenschutz-section p,
  .datenschutz-section li {
    font-size: 0.95rem;
  }
}


.datenschutz-section table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-top: 1.5rem;
  font-size: 1rem;
}

.datenschutz-section thead th {
  background-color: var(--primary-color);
  color: white;
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.datenschutz-section tbody td {
  padding: 1rem 1.25rem;
  border-top: 1px solid #eee;
  vertical-align: top;
}

.datenschutz-section tbody tr:first-child td {
  border-top: none;
}

.datenschutz-section td:first-child {
  font-weight: 600;
  color: var(--text-color);
  width: 180px;
  white-space: nowrap;
}

.datenschutz-section td a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.datenschutz-section td a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .datenschutz-section table,
  .datenschutz-section thead,
  .datenschutz-section tbody,
  .datenschutz-section tr,
  .datenschutz-section td,
  .datenschutz-section th {
    display: block;
    width: 100%;
  }

  .datenschutz-section thead {
    display: none;
  }

  .datenschutz-section tbody tr {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 0.75rem;
    background: #fafafa;
  }

  .datenschutz-section td {
    padding: 0.5rem 0;
    border: none;
  }

  .datenschutz-section td:first-child {
    font-weight: 700;
    color: var(--primary-color);
  }
}



.fachgebiete {
  padding: 2rem 0.5rem 2rem 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.fachgebiete {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.5rem;
}

/* Horizontal list at the top */
.list {
  width: 100%;
  margin-bottom: 2rem;
}

.list ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Spacing between items */
}

.list li {
  margin: 0; /* Remove vertical margin */
}

.list a {
  text-decoration: none;
  font-size: 1.7em;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.list a:hover {
  color: var(--accent-color);
  background-color: rgba(0, 0, 0, 0.05); /* Subtle hover effect */
  transform: none; /* Remove translateX */
}

/* Full-width description box */
.description {
  width: 100%;
  background: #1e3c72;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.description-content {
  display: none; /* Hide all descriptions initially */
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.description-content h3 {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.description-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.description-content.active {
  display: block; /* Show the active description */
  opacity: 1;
}

.description-content:not(.active) {
  opacity: 0;
  display: none;
}


.fachgebiete-header {
  background-color: var(--background-light);
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
}

.fachgebiete-header h2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.fachgebiete-header p {
  font-size: 1.125rem;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}
/* Responsive: Stack the Fachgebiete layout on small screens */
@media (max-width: 768px) {
  .fachgebiete {
    flex-direction: column;
    gap: 2rem;
  }

  .list a {
    font-size: 1.1em;
  }

  .description {
    flex: 1;
  }

  .description-content h3 {
    font-size: 1.6rem;
  }

  .description-content p {
    font-size: 1rem;
  }
}

.kontakt-header {
  background-color: var(--background-light);
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
}

.kontakt-header h2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.kontakt-header p {
  font-size: 1.125rem;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Kontakt Information Section */
.kontakt-info {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 1rem 2rem;
  background-color: #f9f9f9;
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
}

.kontakt-info h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.kontakt-info p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.kontakt-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.kontakt-info a:hover {
  text-decoration: underline;
}

/* Google Maps Section */
.google-maps {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

.google-maps h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.google-maps iframe {
  width: 100%;
  max-width: 100%;
  height: 400px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .kontakt-info {
    padding: 1rem;
  }

  .google-maps iframe {
    height: 280px;
  }
}
