/* ==========================================================================
   Beate Fritsche – Kanzlei für Steuerberatung
   Statische Website · Stylesheet
   ========================================================================== */

/* Schriften (lokal eingebunden, keine externen Anfragen) ------------------ */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-regular.woff2') format('woff2'),
       url('../fonts/pt-sans-regular.woff') format('woff');
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-italic.woff2') format('woff2'),
       url('../fonts/pt-sans-italic.woff') format('woff');
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-700.woff2') format('woff2'),
       url('../fonts/pt-sans-700.woff') format('woff');
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-700italic.woff2') format('woff2'),
       url('../fonts/pt-sans-700italic.woff') format('woff');
}

/* Farben & Maße ---------------------------------------------------------- */
:root {
  --blue: #007cbf;
  --link: #0077c8;
  --link-hover: #3fa9f5;
  --text: #333;
  --muted: #666;
  --line: #c5c5c5;
  --light: #f4f4f4;
  --width: 1280px;
}

/* Grundlagen ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-y: scroll; }

body {
  margin: 0;
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #fff linear-gradient(to bottom, #fff 0%, #fff 61%, #e5e5e5 100%) no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--link); transition: color .3s ease; }
a:hover, a:focus { color: var(--link-hover); text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.3; }
h2 { font-size: 1.05em; margin: 1.4em 0 .4em; }
h3 { font-size: 1em; margin: 1.2em 0 .3em; }
h4 { font-size: 1em; font-weight: 400; font-style: italic; margin: 1em 0 .3em; }

/* Kopfbereich ------------------------------------------------------------ */
.site-header {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
}

.header-bar {
  position: relative;
  width: 90%;
  max-width: var(--width);
  margin: 0 auto;
  background: #fff;
  border-top: 5px solid var(--blue);
}

.logo {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 17px 0 22px;
}
.logo img { display: block; width: 200px; height: auto; }

.nav-toggle { display: none; }

/* Hauptnavigation -------------------------------------------------------- */
.site-nav {
  background: linear-gradient(to bottom, var(--light) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 0 8%;
}

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

.nav-list > li {
  position: relative;
  flex: 1;
  text-align: center;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}
.nav-list > li:hover,
.nav-list > li:focus-within,
.nav-list > li.is-active { border-color: #fff; }

.nav-list > li > a {
  display: inline-block;
  font-weight: 700;
  line-height: 27px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav-list > li > a:hover,
.nav-list > li > a:focus,
.nav-list > li.is-active > a {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Untermenü */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 100%;
  width: max-content;
  max-width: 240px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  background: #f8f8f8;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.nav-list > li:hover .nav-sub,
.nav-list > li:focus-within .nav-sub { opacity: 1; visibility: visible; }

.nav-sub li { border-bottom: 1px solid #fff; }
.nav-sub a {
  display: block;
  padding: 9px 12px;
  line-height: 1.25;
  color: var(--muted);
  text-decoration: none;
}
.nav-sub a:hover,
.nav-sub a:focus,
.nav-sub .is-active a { color: var(--blue); }

/* Inhalt ----------------------------------------------------------------- */
.site-main {
  flex: 1;
  width: 90%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 60px 0 80px;
  hyphens: auto;
}

.page-content {
  padding: 0 8%;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  margin: 0 0 32px;
  font-size: 1.15em;
  text-align: center;
  hyphens: none;
}
.page-title::before,
.page-title::after {
  content: '';
  flex: 0 0 21%;
  height: 1px;
  background: var(--line);
}

.page-title + * { margin-top: 0; }

.block { overflow: hidden; margin: 0 0 20px; }

.page-content img {
  padding: 1.8%;
  border: 1px solid #ccc;
  background: #fff;
}

/* Startseite */
.intro { overflow: hidden; margin: 0 0 20px; }
.intro img { float: right; width: 35%; margin: 0 0 20px 20px; padding: 1%; }

.contact-address { float: left; width: 25.5%; }
.contact-details { float: left; width: 71.25%; }

/* Kontaktseite */
.contact-intro { float: left; width: 65%; }
.contact-intro p { margin-top: 0; }
.contact-box { float: right; width: auto; }
.contact-box h2 { margin-top: 0; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.button {
  display: inline-block;
  padding: 7px 18px;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(to bottom, #35affe 0%, #0c7ecb 100%);
  border: 1px solid #0166a9;
  transition: opacity .3s ease;
}
.button:hover, .button:focus { opacity: .75; }

/* Kontaktformular */
.contact-form { margin-top: 1.5em; max-width: 640px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-field { flex: 1; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin-bottom: 4px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 6px 8px;
  font: inherit;
  color: var(--text);
  background: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);
  border: 1px solid #ccc;
  border-radius: 0;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input { margin-top: 5px; flex: 0 0 auto; }
.form-check label { display: inline; font-size: .93em; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.required { color: var(--blue); }
.form-note { font-size: .85em; color: var(--muted); }
.contact-form .button { font: inherit; cursor: pointer; padding: 7px 28px; }
.form-message-error { padding: 10px 14px; color: #8a1f11; background: #fbeaea; border-left: 4px solid #c0392b; }

/* Kanzlei / Profil */
.profile-image { float: left; width: 33.25%; }
.profile-image img { width: 100%; }
.profile-text { float: right; width: 60%; }

/* Kooperationspartner */
.partner-logo { float: left; width: 35%; max-width: 340px; }
.partner-logo img { width: 100%; }
.partner-info { float: left; width: 42.5%; margin-left: 11.5%; }

/* Listen */
.check-list,
.profile-text ul { margin: 10px 0 0; padding: 0; list-style: none; }
.check-list li,
.profile-text ul li {
  padding-left: 35px;
  background: url('../images/layout/list-bullet.png') left 5px no-repeat;
}

.link-list { margin: 40px 0 0; padding: 0; list-style: none; }
.link-list li { margin: 0 0 15px; line-height: 20px; }
.link-list a {
  display: block;
  padding-left: 25px;
  background: url('../images/layout/link-arrow.png') left center no-repeat;
}

.note { font-size: .8em; color: var(--muted); }

/* Fußbereich ------------------------------------------------------------- */
.site-footer {
  width: 90%;
  max-width: var(--width);
  margin: 0 auto;
  font-size: .93em;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 8%;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.copyright { margin: 0; }

.footer-nav { flex: 1; }
.footer-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav li {
  flex: 1;
  max-width: 30%;
  text-align: center;
  line-height: 1;
  border-left: 1px solid var(--muted);
}
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover,
.footer-nav a:focus,
.footer-nav a[aria-current] { color: var(--blue); }

.footer-badges { display: flex; align-items: center; gap: 16px; }
.footer-badges img { display: block; }

/* Desktop: Panorama im Kopfbereich --------------------------------------- */
@media (min-width: 801px) {
  .site-header {
    height: 380px;
    background: url('../images/layout/banner-saalfeld.jpg') center / cover no-repeat;
    border-bottom: 5px solid var(--blue);
    border-radius: 0 0 8px 8px;
  }
}

@media (min-width: 1381px) {
  .header-bar, .site-main, .site-footer { width: 75.5%; }
}

/* Tablet ----------------------------------------------------------------- */
@media (max-width: 1100px) {
  .contact-intro, .contact-box { float: none; width: 100%; }
  .contact-box { margin-top: 30px; }
}

@media (max-width: 900px) {
  .page-title { display: block; padding-bottom: 20px; border-bottom: 1px solid #ccc; }
  .page-title::before, .page-title::after { display: none; }
}

/* Mobil ------------------------------------------------------------------ */
@media (max-width: 800px) {
  .header-bar { width: 100%; }

  .logo { width: 170px; padding: 25px 0; }
  .logo img { width: 170px; }

  .nav-toggle {
    display: block;
    width: 100%;
    padding: 10px 50px;
    font: inherit;
    font-size: 20px;
    color: #fff;
    text-align: center;
    background: #ccc url('../images/layout/menu.png') right 12px center no-repeat;
    border: 0;
    cursor: pointer;
  }

  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }

  .site-nav { padding: 0; border-top: 5px solid #fff; }
  .nav-list { display: block; }
  .nav-list > li { border: 0; border-bottom: 1px solid #efefef; padding: 5px 0; }
  .nav-list > li > a { font-weight: 700; line-height: 33px; border: 0; }

  .nav-sub {
    position: static;
    width: auto;
    max-width: none;
    text-align: center;
    background: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-sub li { border: 0; }
  .nav-sub a { padding: 4px 0; font-size: .93em; }

  .site-main, .site-footer { width: 99%; }
  .site-main { padding-top: 30px; }
  .page-content { padding: 0 4%; }
  .footer-inner { margin: 0 4%; }
}

@media (max-width: 740px) {
  .contact-address, .contact-details { float: none; width: 100%; margin-bottom: 20px; }
  .check-list li, .profile-text ul li { margin-bottom: 10px; }
  .link-list li { margin-bottom: 25px; }
  .partner-logo, .partner-info { float: none; width: 100%; margin: 0 0 10px; }
  .form-row { display: block; }
}

@media (max-width: 600px) {
  .profile-image, .profile-text { float: none; width: 100%; }
  .footer-nav { flex-basis: 100%; }
  .footer-nav li:first-child { border-left: 0; text-align: left; }
}

@media (max-width: 400px) {
  .intro img { display: none; }
}

/* Druck ------------------------------------------------------------------ */
@media print {
  .site-header { height: auto; background: none; border: 0; }
  .site-nav, .nav-toggle, .footer-badges { display: none !important; }
  body { background: none; }
}
