/* ============================================================
   BFN – Bock Fuchs Nonhoff Rechtsanwälte OG
   Statische Website – Stylesheet
   ⚡ Hauptfarbe anpassen: --accent (Zeile 15)
   ============================================================ */

/* === VARIABLEN === */
:root {
  --accent:     #c94535;   /* ⚡ Hauptfarbe – hier anpassen */
  --dark:       #333333;
  --medium:     #666666;
  --light:      #f4f4f4;
  --white:      #ffffff;
  --font:       'Lato', sans-serif;
  --max-width:  1100px;
  --header-h:   88px;
}

/* === RESET & BASIS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.75;
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* === UTILITY === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.accent { color: var(--accent); }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--medium);
  margin-bottom: 2rem;
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.red-line {
  width: 70px;
  height: 3px;
  background: var(--accent);
  margin: 1.2rem 0 1.8rem;
}

.quote-block { margin: 1.5rem 0; }

.quote-text {
  color: var(--accent);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

.quote-source {
  font-size: 0.78rem;
  color: var(--medium);
  margin-top: 0.2rem;
}

.btn-outline {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2rem;
  border: 2px solid var(--dark);
  text-decoration: none;
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}


/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

#header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.logo img {
  height: 58px;
  width: auto;
}

/* Text-Logo */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  gap: 0;
}

.logo-text .logo-names {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2c2c2c;
  text-transform: uppercase;
}

.logo-text .logo-subtitle {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: #999;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 0.3rem 0;
}

.nav-links > li > a:hover { color: var(--accent); }

.dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  min-width: 210px;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.dropdown li a:hover { color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-nav a:hover { color: var(--accent); }

.mobile-close {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--dark);
  line-height: 1;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  justify-content: center;
  margin-top: var(--header-h);
  background: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 80%;
  max-width: 900px;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


/* ============================================================
   WIR VERBINDEN
   ============================================================ */
.wir-verbinden {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: var(--white);
}

.wir-verbinden .section-heading { margin-bottom: 1rem; }

.section-divider {
  width: 55px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 3.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.arrow-icon {
  position: relative;
  width: 56px;
  height: 56px;
}

.arrow-icon::before,
.arrow-icon::after {
  position: absolute;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.arrow-icon::before { content: '↗'; top: 2px; right: 4px; }
.arrow-icon::after  { content: '↙'; bottom: 2px; left: 4px; }

.value-item p {
  font-size: 0.88rem;
  color: var(--medium);
  line-height: 1.6;
}


/* ============================================================
   ÜBER UNS
   ============================================================ */
.ueber-uns {
  padding: 5rem 2rem;
  background: var(--white);
}

.ueber-uns-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.ueber-uns-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.ueber-uns-text p {
  font-size: 0.92rem;
  color: var(--medium);
  margin-bottom: 1.2rem;
}

.ueber-uns-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.ueber-uns-images img { width: 100%; }
.chambers-badge { max-width: 230px !important; }


/* ============================================================
   ANWÄLTE
   ============================================================ */
.anwalt-wrapper { padding: 4rem 2rem; background: var(--white); }

.anwalt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.anwalt-grid.reverse { direction: rtl; }
.anwalt-grid.reverse > * { direction: ltr; }

.anwalt-photo {
  display: flex;
  justify-content: center;
}

.anwalt-photo img {
  width: 55%;
  max-width: 300px;
  display: block;
}

.anwalt-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.anwalt-detail { margin-bottom: 1.1rem; }

.anwalt-detail strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--dark);
}

.anwalt-detail p {
  font-size: 0.88rem;
  color: var(--medium);
  line-height: 1.6;
}


/* ============================================================
   RECHTSGEBIETE
   ============================================================ */
.rechtsgebiete-section { padding: 4rem 2rem 6rem; background: var(--white); }

.rechtsgebiete-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d8d8d8;
  margin-top: 1rem;
}

.rechtsgebiet-card { background: var(--light); position: relative; }

.rechtsgebiet-card summary {
  padding: 2.5rem 2rem 2rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.rechtsgebiet-card summary::-webkit-details-marker { display: none; }
.rechtsgebiet-card summary::marker { display: none; }

.rechtsgebiet-card summary h3 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  padding-right: 2.5rem;
}

.card-underline {
  width: 38px;
  height: 2px;
  background: var(--accent);
  margin-top: 1rem;
}

.card-toggle {
  position: absolute;
  top: 2.2rem;
  right: 1.5rem;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform 0.3s;
  user-select: none;
}

details[open] .card-toggle { transform: rotate(45deg); }

.rechtsgebiet-content { padding: 0 2rem 2.5rem; }
.rechtsgebiet-content ul { list-style: none; padding: 0; }

.rechtsgebiet-content ul li {
  padding: 0.25rem 0 0.25rem 1.1rem;
  font-size: 0.84rem;
  color: var(--medium);
  position: relative;
  line-height: 1.55;
}

.rechtsgebiet-content ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}


/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-section { background: var(--white); }
.kontakt-top { padding: 5rem 2rem; }

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.kontakt-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.kontakt-info p {
  font-size: 0.88rem;
  color: var(--medium);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.kontakt-info a { color: var(--accent); text-decoration: none; }
.kontakt-info a:hover { text-decoration: underline; }

.kontakt-anfahrt { margin-top: 2rem; }

.kontakt-anfahrt strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.kontakt-form h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.form-group { margin-bottom: 0.9rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.form-group label { display: none; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  background: var(--light);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--dark);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

.form-group textarea { height: 130px; resize: vertical; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M5 6L0 0h10z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  color: #999;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.form-group select.has-value { color: var(--dark); }

.btn-submit {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-submit:hover { background: var(--dark); color: var(--white); }

.maps-wrapper iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--accent);
  padding: 1.8rem 2rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

footer a:hover { opacity: 0.75; }

.footer-copy {
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}


/* ============================================================
   INHALTSSEITEN (Impressum / Datenschutz)
   ============================================================ */
.content-page {
  padding: calc(var(--header-h) + 4rem) 2rem 5rem;
  max-width: 860px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 0.8rem;
}

.content-page p {
  font-size: 0.9rem;
  color: var(--medium);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.content-page a { color: var(--accent); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .ueber-uns-content { grid-template-columns: 1fr; gap: 3rem; }
  .anwalt-grid { grid-template-columns: 1fr; }
  .anwalt-grid.reverse { direction: ltr; }
  .rechtsgebiete-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .hero-inner { grid-template-columns: 1fr; width: 100%; }
  .hero-inner img:last-child { display: none; }
  .section-heading { font-size: 1.6rem; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .rechtsgebiete-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .anwalt-name { font-size: 1.5rem; }
}
