/* hausarbeit-zivilrecht.de — Layout/Typografie identisch mit jurahausarbeiten.de.
   Die alte Flatsome-Seite hat dieselbe Primary-Color (#567ab3), daher ist die Palette
   mit jurahausarbeiten.de identisch; nur der Akzent ist das Rot dieser Seite (#ec3535,
   Spam-Hinweis im Kontaktformular) statt #dc4040 — wie bei hausarbeit-strafrecht.de. */

@font-face { font-family: "Sofia Pro"; font-weight: 300; font-style: normal; src: url(../fonts/SofiaPro-Light.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Sofia Pro"; font-weight: 400; font-style: normal; src: url(../fonts/SofiaPro-Regular.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Sofia Pro"; font-weight: 400; font-style: italic; src: url(../fonts/SofiaPro-Italic.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Sofia Pro"; font-weight: 500; font-style: normal; src: url(../fonts/SofiaPro-Medium.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Sofia Pro"; font-weight: 700; font-style: normal; src: url(../fonts/SofiaPro-Bold.woff) format("woff"); font-display: swap; }
/* Sofia Pro (diese Webfont-Version) hat kein ß — für U+00DF/U+1E9E springt Figtree (SIL OFL) ein.
   Die Familie steht als erste im Font-Stack, deckt aber nur das ß ab, alles andere fällt auf Sofia Pro. */
@font-face { font-family: "Eszett"; font-weight: 300 900; src: url(../fonts/Eszett-Figtree.woff2) format("woff2"); unicode-range: U+00DF, U+1E9E; font-display: swap; }
@font-face { font-family: "Sofia Pro"; font-weight: 900; font-style: normal; src: url(../fonts/SofiaPro-Black.woff) format("woff"); font-display: swap; }

:root {
  --font: "Eszett", "Sofia Pro", "Helvetica Neue", Arial, sans-serif;
  --text: #434343;
  --heading: #363636;
  /* Bänder/Footer: Blau nach der Primary-Color der alten Seite (#567ab3),
     für Weiß-auf-Blau leicht abgedunkelt (Kontrast >= 4.5:1) */
  --brand: #567ab3;
  --dark: #5275ae;
  --darker: #40608f;
  --darkest: #34507a;
  --light: #f7f8fa;
  --line: #e6e6e6;
  --accent: #ec3535;
  --accent-hover: #cf2525;
  --white: #fff;
  --radius: 23px;
  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Grid-Kinder dürfen nicht durch Bild-Intrinsics aufgeblasen werden */
.hero .container > *, .two-col > *, .cards > *, .contact-grid > *, .footer-main .container > *, .notfound > *, .form-row > * { min-width: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--darkest); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.15em; }
ul { margin: 0 0 1.15em; padding-left: 1.4em; }
b, strong { font-weight: 900; }
i, em { font-style: italic; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 900;
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.8em;
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 23px; }
h4 { font-size: 18px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 30px; }
.narrow { max-width: 860px; margin: 0 auto; }
.justify { text-align: justify; }
.checklist { list-style: none; padding-left: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: .9em; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 15px;
  height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.center { text-align: center; }
.right { text-align: right; }
.small { font-size: 15px; }
.muted { color: #888; }

/* ---------- Links ---------- */
.highlink {
  color: #343434;
  font-weight: 900;
  border-bottom: 2px solid #343434;
  cursor: pointer;
}
.highlink:hover { border-bottom-style: dashed; }
.highlink-lite { color: var(--white); border-bottom: 2px solid var(--white); cursor: pointer; }
.highlink-lite:hover { border-bottom-style: dashed; }
.textlink { color: var(--accent); font-weight: 400; }
.textlink:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  padding: 19px 30px;
  border-radius: 35px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.button.outline { background: transparent; color: var(--text); border-color: #cacaca; font-weight: 400; padding: 9px 18px; font-size: 16px; border-radius: 6px; }
.button.outline:hover { background: rgba(0,0,0,.04); border-color: #cacaca; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}
.site-logo img { width: 529px; max-width: 100%; height: auto; display: block; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
}
.hero h1 { color: var(--white); font-size: 32px; margin-bottom: 1em; }
.hero h1 b { font-weight: 900; }
.hero h1 span { font-weight: 300; }
.hero p { font-size: 18px; }
.hero .button { margin-top: 1.4em; }
.hero-photo img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  object-position: 64% center;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.photo-credit { font-size: 13px; color: #888; text-align: right; padding: 8px 0 0; margin: 0; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head {
  background: var(--dark) url(../img/paragraphs-bg.png) no-repeat right center;
  background-size: auto 130%;
  color: var(--white);
}
.page-head .container { padding-top: 48px; padding-bottom: 44px; }
.page-head h1 { color: var(--white); font-size: 32px; margin: 0; }
.page-head p { margin: .6em 0 0; font-size: 18px; }

/* ---------- Sektionen ---------- */
.section { padding: 70px 0; scroll-margin-top: 10px; }
.section.light { background: var(--light); }
.section.arrow {
  background: var(--light) url(../img/section-arrow.png) no-repeat center top;
  background-size: 23vh;
  padding-top: 120px;
}
.section.dark { background: var(--dark); color: var(--white); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--white); }
.section.cta { text-align: center; padding: 60px 0 70px; }
.section.cta h2 { margin-bottom: .6em; }
.section.cta p { max-width: 700px; margin-left: auto; margin-right: auto; }
.section.cta .button { margin-top: 1.2em; }

.section-title { text-align: center; margin-bottom: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col h2 { margin-top: 0; }
.content-pic { border-radius: var(--radius); width: 100%; }
.content-pic.soft { border-radius: 0; }

.divider { width: 70px; height: 4px; background: var(--accent); border-radius: 2px; margin: 0 auto 2.2em; }
.divider.left { margin-left: 0; }

/* ---------- Leistungskarten ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 40px 30px 34px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
  scroll-margin-top: 24px;
  transition: transform .2s, box-shadow .2s;
}
.card-body { min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.07); }
.card-icon { width: 64px; height: 64px; margin-top: 2px; }
.card h2 { font-size: 23px; margin: 0 0 14px; }
.card p { text-align: justify; hyphens: manual; }
.card .price {
  text-align: right;
  padding-top: 6px;
  margin-bottom: 0;
  line-height: 1.1;
}
.card .price .ab { font-size: 15px; display: inline-block; margin-right: .3em; }
.card .price .amount { font-weight: 900; font-size: 36px; color: var(--heading); }
.card .price .unit { font-size: 15px; margin-left: .25em; }
.cards-note { text-align: center; margin-top: 44px; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq {
  background: var(--white);
  border-radius: 8px;
  padding: 14px 22px;
  margin-bottom: 14px;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 900;
  color: var(--heading);
  margin: 0;
}
.faq-q img { width: 30px; transition: transform .25s; flex: 0 0 auto; }
.faq.open .faq-q img { transform: rotate(180deg); }
.faq-a { display: none; padding: 12px 0 6px; }
.faq.open .faq-a { display: block; }
.faq-a p { margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.contact-grid h1 { font-size: 42px; margin: .3em 0 .8em; }
.contact-grid h2 { margin-top: 2.2em; }
.contact-phones { padding-left: 30px; line-height: 2.4; }
.contact-phones a { display: inline-block; }
.contact-hours { padding-left: 30px; }

.form-field { display: block; margin-bottom: 20px; }
.form-field .label {
  display: block;
  font-weight: 900;
  color: var(--heading);
  font-size: 15px;
  margin-bottom: 6px;
}
.form-field input[type=text],
.form-field input[type=email],
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s;
}
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: #999; }
.form-field.missing input, .form-field.missing textarea, .form-field.missing .button.outline { border-color: var(--accent); }
.form-field.missing .label { color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.privacy-field { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; font-weight: 300; }
.privacy-field input { margin-top: 5px; flex: 0 0 auto; }
.form-note { color: var(--accent); font-size: 14px; margin: 1.6em 0 1.2em; }
.form-success {
  background: #2e7d32;
  color: var(--white);
  font-weight: 500;
  padding: 1em 1.2em;
  border-radius: 8px;
  margin: .5em 0;
}
.mobile-only { display: none; }

/* ---------- Text-Seiten ---------- */
.text-page h2, .text-page h3 { margin-top: 1.6em; font-size: 23px; }
.text-page h2:first-child, .text-page h3:first-child { margin-top: 0; }
.text-page p { font-size: 17px; }
.text-page .lead { font-size: 18px; }
.text-page address { font-style: normal; font-weight: 900; color: var(--heading); font-size: 20px; line-height: 1.4; margin-bottom: 1em; }

/* ---------- 404 ---------- */
.notfound { display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center; }
.notfound .code { font-size: 6em; font-weight: 900; opacity: .25; line-height: 1; }
.searchform { display: flex; gap: 8px; max-width: 460px; }
.searchform input { flex: 1; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 0; outline: none; }
.searchform button { font: inherit; display: inline-flex; align-items: center; padding: 10px 16px; background: var(--dark); color: var(--white); border: 0; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: rgba(255,255,255,.8); font-size: 15px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--white); }
.footer-main .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 50px;
}
.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.2em;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45em; }
.footer-links li.gap { margin-top: 1.3em; }
.footer-links .accent { color: var(--accent); }
.footer-address { text-align: right; }
.footer-address img { width: 220px; opacity: .9; margin-left: auto; margin-bottom: 1.2em; }
.footer-address p { margin-bottom: .8em; }
.footer-bottom { background: var(--darkest); text-align: center; padding: 34px 0 30px; }
.footer-bottom img.footer-logo { width: 160px; margin: 0 auto 14px; opacity: .55; }
.footer-bottom p { font-size: 13px; color: #888; margin: 0; line-height: 1.7; }
.footer-bottom .credit { color: rgba(255,255,255,.35); }
.footer-bottom .credit a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; padding-top: 50px; padding-bottom: 50px; }
  .hero-photo { order: -1; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid .desktop-only { display: none; }
  .mobile-only { display: block; }
  .footer-main .container { grid-template-columns: 1fr 1fr; }
  .footer-address { grid-column: 1 / -1; text-align: left; }
  .footer-address img { margin-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .container { padding: 0 20px; }
  .site-header .container { padding-top: 22px; padding-bottom: 22px; }
  .card { grid-template-columns: 1fr; gap: 12px; padding: 26px 22px; }
  .card-icon { width: 52px; height: 52px; }
  .hero h1, .page-head h1 { font-size: 26px; }
  .section { padding: 50px 0; }
  .section.arrow { padding-top: 90px; }
  .card p { text-align: left; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main .container { grid-template-columns: 1fr; }
  .notfound { grid-template-columns: 1fr; gap: 10px; }
  .button { white-space: normal; text-align: left; }
}
