/* Grund-Setup */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    font-size: 100%; 
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body { 
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 400; 
    line-height: 1.5; 
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Ubuntu';
    font-weight: 400;
    color: #58122b;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 1.3rem;
}

h2 {
    font-size: 2.2em;
}

p {
    margin-bottom: 1.5rem;
}

.line-sides-fixed {
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
    color: #4a0e2e;
    margin-bottom: 4rem;
}

.line-sides-fixed::before,
.line-sides-fixed::after {
    content: '';
    width: 50px; 
    border-bottom: 1px solid #4a0e2e;
}

.line-sides-fixed::before {
    margin-right: 15px; 
}

.line-sides-fixed::after {
    margin-left: 15px;
}

.line-bottom {
    text-align: center;
    position: relative;
    padding-bottom: 25px; 
    color: #58122b;
    margin-bottom: clamp(3rem, 2.704rem + 1.48vw, 4rem);
}

.line-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Breite der Linie */
    border-bottom: 2px solid #58122b;
}

h2.line-bottom {
    line-height: 1;
}

.textlink {
    color: #000;
    text-underline-offset: 2px;
}

.textlink:hover {
    text-decoration: none;
}

/* Header */
header {
    width: 100%;
    height: 80px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 clamp(1.563rem, 1.108rem + 2.27vw, 2.813rem);
    color: #fff;
    z-index: 10;
    position: fixed;
    top: 0;
}

@media (min-width: 40em) {
    header {
        height: 100px;
        position: relative;
    }
}

@media (min-width: 120em) {
    header {
        padding: 0 clamp(2.813rem, 2.017rem + 3.98vw, 5rem);
    }
}


.logo a {
    font-family: 'Ubuntu';
    font-weight: 500;
    font-size: clamp(2rem, 1.734rem + 0.8511vw, 2.5rem);
    color: #58122b;
    text-decoration: none;    
}

/* Navigation Desktop */
#nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

#nav-menu ul li a {
    font-family: 'Ubuntu';
    font-weight: 400;
    color: #58122b;
    font-size: 1.25em;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

#nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #58122b;
  transition: width 0.3s ease;
}

#nav-menu a:hover::after {
  width: 100%;
}


/* Navigation Mobile */
.menu-toggle { display: none; cursor: pointer; z-index: 1100; }
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #58122b;
    transition: all 0.3s ease;
}

/* Mobile Media Query */
@media (max-width: 845px) {
    .menu-toggle { display: block; }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Startet rechts außerhalb */
        width: 280px;
        height: 100vh;
        background: #58122b;
        padding-top: 100px;
        transition: right 0.4s ease;
        z-index: 1050;
    }

    #nav-menu.active { right: 0; justify-content: center;
    display: flex; } /* Slidet nach rechts rein */

    #nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    #nav-menu ul li a {
        color: #fff;
}
}

/* Overlay & Animationen */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: none; z-index: 1040;
}
.menu-overlay.active { display: block; }

.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }

/* Main */
@media (min-width: 40em) {
    main {
        margin-top: -100px;
    }
}

/* Footer */
footer {
    background: #58122b;
    height: 80px;
    padding: 0 clamp(1.563rem, 1.108rem + 2.27vw, 2.813rem);
}

footer .inside {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

#footer-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

#footer-menu li a {
    list-style: none;
    text-decoration: none;
    color: #fff;
}

footer .inside p {
    margin-bottom: 0.2rem;
    font-family: 'Ubuntu';
    font-weight: 400;
    color: #fff;
    font-size: 1.4em;
}

@media (min-width: 40em) {
    footer .inside p {
    margin-bottom: 0;
    font-size: 1.6em;
}
    #footer-menu ul {
    gap: 25px;
}
}

/* Sektionen */
.section {
    padding: clamp(6.5rem, 6.352rem + 0.74vw, 7rem) clamp(1.563rem, 1.108rem + 2.27vw, 2.813rem);
    width: 100%;
}

.section .inside {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

#banner { background: #f9f9f9; }
#referenzen { background: #f9f9f9; }
#kontakt { background: #f9f9f9; }

/* Sektion Banner */
#banner {   
    background-image: url("/images/christel-goldbach.png");
    background-image: url("/images/christel-goldbach.webp");
    background-repeat: no-repeat;
    position: relative;
    display: inline-block;
}

#banner {
    background-position: right -1rem bottom;
    background-size: 18rem;
}

#banner.section  {
    min-height: 27rem;
}

@media (min-width: 40em) {
    #banner {
    background-position: right 2rem bottom;
    background-size: 23rem;
}
    #banner.section  {
    height: 34rem;
}
}

@media (min-width: 59em) {
    #banner {
    background-position: right 5rem bottom;
    background-size: 30rem;
}
    #banner.section {
    height: 40rem;
}
}

@media (min-width: 90em) {
    #banner {
    background-position: right 16rem bottom;
    background-size: 38rem;
}
    #banner.section {
    height: 50rem;
}
}

/*  Positionierung pr_und_mehr */
@media (max-width: 59em) {
#banner .inside::after {
    content: "pr_und_mehr";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -25px;
    font-family: 'Ubuntu';
    font-weight: 400;
    font-size: 1.45em;
    background-color: #58122b;
    color: white;
    padding: 8px 28px 10px 28px;
    border-radius: 40px;
    white-space: nowrap;
}
}

#banner .inside .content {
    display: none;
}

@media (min-width: 59em) {
    #banner .inside .content {
    display: block;
}
}
    
#banner .inside .content {
    max-width: 55%;
    padding-right: 5%;
}

#banner .inside .content p {
    font-size: 1.2em;
    margin-bottom: 0;
}

#banner .inside .content span {
    font-family: 'Ubuntu';
    font-weight: 500;
    color: #58122b;
    font-size: 1.2em;
}

#banner .inside .content p.anfrage {
    margin-top: 2.2rem;
}

/* Sektion Leistungen */
.flex-container {
    display: flex;
    gap: 45px; 
}

.flex-container .flex-item {
    flex: 1;
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        gap: 20px;
    }
}

#leistungen .flex-container h3 {
    font-size: 1.3em;
    color: #000;
    margin-bottom: 0.5rem;
}

/* Sektion Referenzen */
#referenzen .flex-container {
    display: grid;
    grid-template-columns: 1fr; /* Nur 1 Spalte */
    gap: 45px;
}

#referenzen .flex-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 100%;
}

#referenzen .flex-item img {
    width: 100%;        
    height: auto;        
    display: block;
}

/* 2. Tablet-Ansicht (ab 600px) */
@media (min-width: 600px) {
    #referenzen .flex-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3. Desktop-Ansicht (ab 1000px) */
@media (min-width: 1000px) {
    #referenzen .flex-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

#referenzen .item-text {
    padding: 1.5rem 2rem 2.5rem 2rem;
}

#referenzen .item-text h2 {
    font-size: 1.3em;
    margin-bottom: 0.5rem;
}

#referenzen .item-text p {
    margin-bottom: 0;
}

/* Sektion Über mich */
#ueber-mich.section .column-container {
    text-align: left;
}

@media (min-width: 40em) {
#ueber-mich.section .column-container {
    column-count: 2;
    column-gap: 45px;
    }
}

#ueber-mich .column-container a {
    color: #000;
}

#ueber-mich .column-container a:hover {
    text-decoration: none;
}

/* Sektion Kontakt */
#kontakt.section {
    padding-bottom: 4rem;
}

#kontakt .inside {
    max-width: 730px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

#kontakt .telefon {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
}

#kontakt p.telefon {
    font-family: 'Ubuntu';
    font-weight: 400;
    font-size: 1.5em;
    color: #58122b;
    text-decoration: none !important;
}

#kontakt .anfrage a, #banner .anfrage a {
    font-family: 'Ubuntu';
    font-weight: 400;
    font-size: 1.45em;
    background-color: #58122b;
    color: white;
    padding: 8px 28px 10px 28px;
    border-radius: 40px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}

#kontakt .anfrage a:hover, #banner .anfrage a:hover {
    background-color: #8e1b45;
}

#kontakt .adresse, #kontakt .adresse-mobile {
    margin-top: 9rem;
    margin-bottom: 0;
}

#kontakt .adresse {
    display: none;
}

@media (min-width: 40em) {
    #kontakt .adresse {
        display: block;
    }
    #kontakt .adresse-mobile {
    display: none;
}
}

/* Scroll-Top Button */
#scrollTopBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    
    /* Animation nur für den Button */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, bottom 0.3s ease;
    
    /* Optik (deine bestehende Optik) */
    background: #58122b;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    height: 50px;
    width: 50px;
}

/* Nur für den Button, wenn er erscheinen soll */
#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Impressum und Datenschutz */

main.unterseiten {
    margin-top: 80px;
}

@media (min-width: 40em) {
    main.unterseiten {
    margin-top: 0;
}
}

main.unterseiten .inside {
    min-height: calc(100vh - 140px); 
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3.75rem, 1.705rem + 10.23vw, 9.375rem) 40px;
}

main.unterseiten .inside h2 {
    font-size: clamp(1.8rem, 1.5143rem + 0.9143vw, 2.2rem);
}

main.unterseiten .inside p {
    margin-bottom: 1.5rem;
}

main.unterseiten .inside a {
    color: #000;
}

main.unterseiten .inside a:hover {
    text-decoration: none;
}

.line-bottom.text-left {
    text-align: left;
}

.line-bottom.text-left::after {
    left: 0;
    transform: unset;
}

main.unterseiten.datenschutz h3 {
   font-size: 1.3em;
    margin-bottom: 0.1rem;
    color: #000;
}

main.unterseiten.datenschutz h4 {
   font-size: 1.1em;
    color: #000;
}

main.unterseiten.datenschutz ul {
    margin-bottom: 1.5rem;
    padding-left: 1rem;   
}