/**
* Template Name: Lonely (bereinigt für Notar-Website)
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nav-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

:root { 
  --background-color: #ffffff;
  --default-color: #5a656e;
  --heading-color: #1a3a5c;  /* Dunkelblau für Überschriften */
  --accent-color: #1a3a5c;   /* Dunkelblau für Links, Buttons, Akzente */
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

:root {
  --nav-color: #5a656e;
  --nav-hover-color: #1a3a5c;  /* Dunkelblau beim Hovern */
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #1a3a5c;
  --nav-dropdown-hover-color: #1a3a5c;
}
}

:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  .navmenu li { position: relative; }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a i, .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }
  .navmenu li:last-child a { padding-right: 0; }
  .navmenu li:hover > a, .navmenu .active, .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }
  .navmenu { padding: 0; z-index: 9997; }
  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a:hover, .navmenu .active, .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }
  .mobile-nav-active { overflow: hidden; }
  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }
  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }
  .mobile-nav-active .navmenu > ul { display: block; }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.footer h3 {
  font-size: 28px;
  font-weight: 700;
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}

.footer p {
  font-size: 15px;
  padding: 0;
  margin: 0 0 30px 0;
}

.footer .copyright {
  padding-top: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .credits {
  font-size: 13px;
  padding-top: 5px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}
@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}
.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}
@media (max-width: 1199px) {
  section, .section { scroll-margin-top: 66px; }
}

/*--------------------------------------------------------------
# Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
}
.section-title p { margin-bottom: 0; }

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  background: url(../img/hero-bg.jpg) top center no-repeat;
  background-size: cover;
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 15px;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto 0 0;
  padding: 20px;
}
.hero-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}
.hero h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  margin: 0 0 20px 0;
}
.hero .btn-scroll {
  display: inline-block;
  color: #ffffff;
  font-size: 48px;
  transition: 0.3s;
  animation: btn-up-down 1.5s ease-in-out infinite alternate-reverse both;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
.hero .btn-scroll:hover { color: var(--accent-color); }
@keyframes btn-up-down {
  0% { transform: translateY(5px); }
  100% { transform: translateY(-5px); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero-logo { width: 90px; }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 300;
  font-size: 36px;
  color: var(--heading-color);
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
}

.about .about-text {
  font-size: 24px;
  line-height: 1.8;
  color: var(--heading-color);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal; /* Wichtig: NICHT kursiv */
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .content h2 {
  font-weight: 300;
  font-size: 36px;
  color: var(--heading-color);
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
}

.services .services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services .services-list li {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.8;
  color: var(--heading-color);
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-style: normal;
}

.services .services-list li:last-child {
  border-bottom: none;
}

.services .services-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 22px;
}

.services .col-lg-5 {
  flex: 0 0 auto;
  width: 41.66666667%;
}

.services .col-lg-7 {
  flex: 0 0 auto;
  width: 58.33333333%;
}

.services-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
}

/*--------------------------------------------------------------
# Resume Section (Kontakt)
--------------------------------------------------------------*/
.resume .resume-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume .content h2 {
  font-weight: 300;
  font-size: 36px;
  color: var(--heading-color);
  margin-bottom: 10px;
  font-family: "Roboto", sans-serif;
}

.resume .resume-name {
  font-size: 28px;
  font-weight: 500;
  color: var(--heading-color);
  font-family: "Roboto", sans-serif;
  margin-bottom: 5px;
}

.resume .resume-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--default-color);
  font-family: "Roboto", sans-serif;
  margin-bottom: 20px;
}

.resume .resume-contact p {
  font-size: 22px;
  line-height: 1.8;
  color: var(--heading-color);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  margin-bottom: 15px;
}

.resume .resume-contact strong {
  color: var(--heading-color);
  font-weight: 500;
}

.resume-contact-under {
  margin-top: 20px;
}

.resume-contact-under p {
  font-size: 22px;
  line-height: 1.8;
  color: var(--heading-color);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  margin-bottom: 10px;
}

.resume-contact-under strong {
  color: var(--heading-color);
  font-weight: 500;
}

.resume-link {
  color: var(--heading-color);
  text-decoration: none;
  transition: 0.3s;
  font-weight: 300;
}

.resume-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.resume .col-lg-5 {
  flex: 0 0 auto;
  width: 41.66666667%;
}

.resume .col-lg-7 {
  flex: 0 0 auto;
  width: 58.33333333%;
}
/*--------------------------------------------------------------
# Resume Section - Hausbesuche Text
--------------------------------------------------------------*/
/* Desktop: Text bleibt in einer Zeile */
@media (min-width: 992px) {
  .resume-contact-under p:first-of-type {
    white-space: nowrap;
  }
}

/* Smartphone: Text darf umbrechen */
@media (max-width: 576px) {
  .resume-contact-under p:first-of-type {
    white-space: normal;
  }
}
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item + .info-item { margin-top: 40px; }
.contact .info-item i {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}
.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}
.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}
.contact .php-email-form { height: 100%; }
.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}
.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}
.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}
.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}
.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Mobile Anpassungen
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .about .content h2,
  .services .content h2,
  .resume .content h2 {
    font-size: 28px;
  }
  
  .about .content p,
  .services .services-list li,
  .resume .resume-contact p,
  .resume .resume-contact-under p {
    font-size: 18px;
  }
  
  .about-img,
  .services-img,
  .resume .resume-img {
    height: 280px;
  }
  
  .resume .resume-name {
    font-size: 24px;
  }
  
  .resume .resume-title {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# Farben - Dunkelblau für Links und Hover
--------------------------------------------------------------*/
/* Alle Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #0d2840;  /* Noch dunkleres Blau beim Hovern */
  text-decoration: underline;
}

/* Navigation */
.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color) !important;
}

/* Resume Links */
.resume-link {
  color: var(--heading-color);
  text-decoration: none;
  transition: 0.3s;
  font-weight: 300;
}

.resume-link:hover {
  color: #0d2840;
  text-decoration: underline;
}

/* Buttons */
.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #0d2840;  /* Noch dunkleres Blau */
}

/* Scroll Top Button */
.scroll-top {
  background-color: var(--accent-color);
}

.scroll-top:hover {
  background-color: #0d2840;
}

/* Zurück-Button auf Impressum */
.btn {
  background: var(--accent-color) !important;
}

.btn:hover {
  background: #0d2840 !important;
}

/* Services List - Pfeil */
.services .services-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 22px;
}

/* Section Title Unterstrich */
.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
}

/* Contact Info Icons */
.contact .info-item i {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* Footer Links */
.footer .credits a {
  color: var(--accent-color);
}

.footer .credits a:hover {
  color: #0d2840;
}

/* Hero Scroll Button */
.hero .btn-scroll:hover {
  color: var(--accent-color);
}

/* Preloader */
#preloader:before {
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .section-title h2 {
  font-weight: 300;
  font-size: 36px;
  color: var(--heading-color);
  font-family: "Roboto", sans-serif;
}

.contact .section-title p {
  font-size: 22px;
  line-height: 1.8;
  color: var(--default-color);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

.contact .info-item {
  background: var(--surface-color);
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0px 0 25px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.contact .info-item:hover {
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.contact .info-item i {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  font-size: 28px;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  margin-bottom: 15px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .info-item h3 {
  padding: 0;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--heading-color);
  font-family: "Roboto", sans-serif;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.8;
  color: var(--heading-color);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

.contact .info-item .resume-link {
  color: var(--heading-color);
  font-weight: 300;
  font-size: 22px;
}

.contact .info-item .resume-link:hover {
  color: var(--accent-color);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  .contact .section-title h2 {
    font-size: 28px;
  }
  
  .contact .section-title p {
    font-size: 18px;
  }
  
  .contact .info-item {
    padding: 20px 15px;
  }
  
  .contact .info-item i {
    font-size: 24px;
    width: 50px;
    height: 50px;
  }
  
  .contact .info-item h3 {
    font-size: 18px;
  }
  
  .contact .info-item p,
  .contact .info-item .resume-link {
    font-size: 18px;
  }
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  .contact .info-item {
    padding: 20px 15px;
  }
  
  .contact .info-item i {
    font-size: 24px;
    width: 50px;
    height: 50px;
  }
  
  .contact .info-item h3 {
    font-size: 16px;
  }
  
  .contact .info-item p {
    font-size: 14px;
  }
}
/*--------------------------------------------------------------
# Mobile: Bilder & Text optimiert (Lösung 2)
--------------------------------------------------------------*/
@media (max-width: 767px) {
  
  /* ABOUT: Bild über Text (Bild zuerst, dann Text) */
  .about .row {
    flex-direction: column-reverse !important;
  }
  
  .about .col-lg-5,
  .about .col-lg-7 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .about-img {
    height: 280px !important;
    object-fit: cover;
    display: block !important;
    margin-bottom: 20px;
  }
  
  /* SERVICES: Bild über Text (Bild zuerst) */
  .services .row {
    flex-direction: column !important;
  }
  
  .services .col-lg-5,
  .services .col-lg-7 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .services-img {
    height: 280px !important;
    object-fit: cover;
    display: block !important;
    margin-bottom: 20px;
  }
  
  /* RESUME: Bild oben, Text darunter */
  .resume .row {
    flex-direction: column !important;
  }
  
  .resume .col-lg-5,
  .resume .col-lg-7 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .resume-img {
    height: 280px !important;
    object-fit: cover;
    display: block !important;
    margin-bottom: 20px;
  }
  
  /* Text zentrieren */
  .about .content,
  .services .content,
  .resume .content {
    text-align: center;
  }
  
  .about .content h2,
  .services .content h2,
  .resume .content h2 {
    font-size: 28px;
    text-align: center;
  }
  
  .about .about-text,
  .services .services-list li,
  .resume .resume-contact p,
  .resume .resume-contact-under p {
    text-align: center;
  }
  
  /* Services: Pfeil etwas anpassen */
  .services .services-list li {
    padding-left: 25px;
  }
  
  .services .services-list li::before {
    left: 0;
  }
  
  /* Resume: Kontaktdaten unter Bild zentrieren */
  .resume .resume-contact-under {
    text-align: center;
  }
  
  /* Contact: 4 Karten werden 2x2 oder 1x4 */
  .contact .col-lg-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}
/*--------------------------------------------------------------
# Hero Schriftzug (PNG) – "mit Sicherheit"
--------------------------------------------------------------*/
.hero-schriftzug {
  display: block;
  width: 350px;
  max-width: 100%;
  height: auto;
  margin: 15px 0 20px 0;
}

@media (max-width: 768px) {
  .hero-schriftzug {
    width: 250px;
  }
}