/*
Theme Name: juliameyerspage Theme
Theme URI: https://juliameyerspage.ch
Author: Julia Meyer
Author URI: https://juliameyerspage.ch
Description: Simple Blog Theme
Version: 1.0
Requires at least: 7.0
Tested up to: 7.0
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: juliameyerspage-blog-theme
Tags: blog, custom-logo, custom-menu, featured-images, responsive-layout
*/
h1, h2, .jm-intro h1 {
    font-family: 'Cormorant Garamond', serif;
}

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

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


.jm-nav-left a, .jm-nav-right a, .drawer-nav a {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1.05em;
    letter-spacing: 0.05em;
}
.menu .navbar-brand {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1.05em;
}

footer {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1.05em;
    border-top: 0.5px solid #ccc;
    padding-top: 12px;
    margin-top: 24px;
    bottom: 0px;
}

/* mobile footer*/
@media (max-width: 758px) {
    footer {
        width: 100% !important;
        font-size: 0.7em !important;
        padding-top: 6px !important;
    }
}



body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1.05em;
    text-align: justify;
}
/* hidden menu */
#site-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, .15);
    padding: 60px 20px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 1000;
}

#site-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#site-menu li {
    margin: 12px 0;
}

#site-menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

#site-menu.show {
    transform: translateX(0);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 999;
    display: none;
}

.menu-overlay.show {
    display: block;
}


/*Startseite*/


.jm-home {
    font-family: Georgia, serif;
    min-height: 100vh;
    box-sizing: border-box;
}

.jm-hero {
    display: flex !important;
    align-items: stretch !important;
    padding: 4rem 2rem 0 2.5rem !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    min-height: calc(100vh - 60px) !important;
}

.jm-intro {
    flex: 0 0 33.333% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}


.jm-intro h1 {
    font-size: 5 rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 0 2rem !important;
    text-align: left !important;  
}

.drawer-nav,
.drawer-nav .sub-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.drawer-nav li {
    list-style: none !important;
}

ul.sub-menu {
    list-style: none !important;
    padding-left: 1.5rem; 
}

.jm-nav-col {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 2rem !important;
}

.jm-nav-left {
    flex: 0 0 40% !important;
    min-width: 0 !important;  
    gap: 2.2rem !important;
    box-sizing: border-box !important;
    padding: 4rem 2rem 0 2rem !important;
}

.jm-nav-left a {
    text-decoration: none !important;
    color: #222 !important;
    font-size: 20px !important;        
    line-height: 1.6 !important;
    white-space: normal !important;
    word-spacing: normal !important;
}

/* Haupt-Überschriften (01, 02) etwas hervorheben, ohne die Unterlinks zu beeinflussen */
.jm-nav-left > .jm-nav-section > a {
    font-weight: 700 !important;
}

.jm-nav-left a:hover{
    color: #679acf !important;
}

.jm-nav-left .jm-sub-links a {
    display: block;
    margin-left: 1.5rem;
    margin-top: 8px !important;
    gap: 10px !important;  
    padding-left: 1rem !important;
}

/* Größerer Abstand vor einer Hauptüberschrift, die direkt nach den Sub-Links folgt
   (z. B. Abstand vor "02……….. Blog Bücher") */
.jm-nav-left .jm-sub-links + a {
    display: block;
    margin-top: 3rem !important;
}

/* Breite Version für home.php - keine zweite Spalte daneben */
.jm-nav-left-full {
    flex: 1 1 auto !important;
    max-width: 96% !important;
}

.jm-nav-right {
    flex: 0 0 33.33% !important;
    gap: 3rem !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    padding: 4rem 2rem 0 2rem !important;
    align-items: flex-start !important;  
}

.jm-nav-right a {
    text-decoration: none !important;
    color: #222 !important;
    font-size: 20px !important;        
    line-height: 1.6 !important;
}

.jm-nav-right a:hover{
    color: #679acf !important;
}




.jm-divider-v,
.jm-divider-1 {
    flex: 0 0 1px !important;
    width: 1px !important;
    background: #aaa !important;
    align-self: stretch !important;
    margin: 3rem 0 !important;     
    flex-shrink: 0 !important;
    display: block !important;
    background: #ccc !important;  
    width: 0.5px !important;     
}

.jm-divider-2,
.jm-divider-3 {
    flex: 0 0 1px !important;
    width: 1px !important;
    background: transparent !important;
    align-self: stretch !important;
    margin: 3rem 0 !important;     
    flex-shrink: 0 !important;
    display: block !important;
    background: transparent !important;  
    width: 0.5px !important;   
}



.jm-social-icons {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 3em !important;
}

.jm-social-icons a {
    color: black !important;
    font-size: 20px !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.jm-social-icons a:hover {
    color: #679acf!important;
}


.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
}
.nav-overlay.active {
  display: block;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 33.333vw;       /* 1/3 of the page */
  height: 100vh;
  background: #fff;
  z-index: 1050;
  padding: 2rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.side-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-bottom: 1.5rem;
}

.drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer-nav li {
  border-bottom: 1px solid #f0f0f0;
}
.drawer-nav a {
  display: block;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
}
.drawer-nav a:hover {
  color: #679acf;
  background: #f8f8f8;
}

@media (max-width: 576px) {
  .side-drawer {
    width: 80vw;
  }
}


.jm-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.jm-archive-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 3rem;
    border-bottom: 0.5px solid #ccc;
    padding-bottom: 1.5rem;
}

.jm-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.jm-post-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jm-post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: none !important;
}

.jm-post-date {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #999;
    text-transform: uppercase;
}

.jm-post-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0;
    text-align: left;
}

.jm-post-excerpt {
    font-family: 'Spectral', serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.jm-read-more {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #222;
    margin-top: auto;
}

.jm-posts-full {
    padding: 4rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.jm-posts-full .jm-archive-header {
    grid-column: 1 / -1;
}

.jm-posts-full .jm-post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: none !important;
}

@media (max-width: 768px) {
    .jm-posts-full {
        grid-template-columns: 1fr;
    }
}


/* Cover spread */
.jm-single-cover {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 60px);
    gap: 0;
}

.jm-single-left {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    box-sizing: border-box;
}

.jm-single-title-block {
    max-width: 340px;
}

.jm-single-title-block h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 1.5rem;
    text-align: left;
}

@media (max-width: 758px) {
    .jm-single-title-block h1 {
        font-size: 2rem
    }


}


.jm-single-byline {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #555;
    margin: 0 0 0.5rem;
}

.jm-single-date {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #999;
    text-transform: uppercase;
    margin: 0;
}

.jm-single-right {
    flex: 0 0 50%;
    overflow: hidden;
    box-sizing: border-box;
}

.jm-single-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none !important;
}

.jm-single-body {
    padding: 5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.jm-single-content {
    font-family: 'Spectral', serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.9;
    color: #222;
    text-align: justify;
}

.jm-single-content p {
    margin-bottom: 1.8rem;
}

.jm-single-content p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 400;
    float: left;
    line-height: 0.85;
    margin: 0.1em 0.1em 0 0;
}

@media (max-width: 768px) {
    .jm-single-body {
        padding: 1rem 1rem;
    }
    .jm-single-content {
        font-size: 1.3rem;
        line-height: 1.7;
        font-weight: 200;
    }

    .jm-single-content p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .jm-single-cover {
        flex-direction: column;
    }
    .jm-single-left,
    .jm-single-right {
        flex: none;
        width: 100%;
    }
    .jm-single-right {
        height: 50vw;
    }

    .d3-chart-title {
        font-size: 0.9rem;
    }
    p.d3-info {
        font-size: 0.9rem; 
        font-weight: 200;
    }
    .d3-chart-wrapper p:first-of-type::first-letter {
        font-size: 0.9rem;
        font-weight: 200;
    }

    #btn-users,
    #btn-income {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }


}

.contact-form {
    font-family: 'Jost', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-right-contactform {
    flex: 0 0 40% !important;
    width: 40% !important;
    line-height: 1.15;
    margin-left: 2rem !important;
    margin-top: 12rem !important;
}

@media (max-width: 768px) {
    .nav-right-contactform {
        flex: 0 0 80% !important;
        width: 80% !important;
        padding: 2rem 1rem 0 1rem !important;
        margin: 0 auto !important;
    }
}

.form-label {
    font-family: 'Jost', sans-serif;
}

.nav-right-contactform label {
    font-family: 'Jost', sans-serif;
}

.btn.btn-dark:hover {
    background-color: #679acf !important;
    border-color: #1c4991 !important;
}


/*remove if doesnt work*/
.nav-right-contactform .wpcf7-form {
    font-family: 'Jost', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-right-contactform .row {
    display: flex;
    gap: 1rem;
}

.nav-right-contactform .col {
    flex: 1;
}

.nav-right-contactform label {
    font-family: 'Jost', sans-serif;
    display: block;
    margin-bottom: 0.2rem;
}

.nav-right-contactform .wpcf7-form-control {
    font-family: 'Jost', sans-serif;
    width: 100%;
    padding: 0.2rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.nav-right-contactform textarea.wpcf7-form-control {
    resize: vertical;
}

.nav-right-contactform input[type="submit"].wpcf7-form-control {
    font-family: 'Jost', sans-serif;
    background-color: #212529;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1.5rem;
    width: fit-content;
    cursor: pointer;
}

.nav-right-contactform input[type="submit"].wpcf7-form-control:hover {
    background-color: #679acf;
    border-color: #1c4991;
}







.nav-item {
    font-family: 'Jost', sans-serif;
}

.nav-link {
    font-family: 'Jost', sans-serif;
    color: black !important;
}
.nav-link:hover {
    color: #679acf !important;
}

p.wp-block-paragraph a {
    color: #679acf !important;
    text-decoration: none !important;
}

p.wp-block-paragraph a:hover {
    color: #1c4991 !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    p.wp-block-paragraph {
        font-size: 0.9rem;
        margin-left: 0.1rem !important;
        margin-right: 0.1rem !important;
    }
    p.wp-block-paragraph h2 {
        font-size: 1rem !important;
    }
}
.jm-post-card h2 a {
    color: black !important;
    text-decoration: none !important;
}

.jm-post-card h2 a:hover {
    color: #679acf !important;
    text-decoration: underline !important;
}


/* Über mich Seite */
.ueber-mich {
    display: flex !important;
    align-items: stretch !important;
    padding: 4rem 2rem 0 2.5rem !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    min-height: calc(100vh - 60px) !important;
}

.newsletter-info {
    flex: 0 0 33% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding-top: 20rem !important;
    box-sizing: border-box !important;
}


.newsletter-info h3 {
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 0 2rem !important;
    text-align: left !important;  
    font-family: 'Cormorant Garamond', serif !important;
}

.newsletter-info p {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 4rem 2rem 0 !important;
    text-align: left !important;  
    font-family: 'Jost', sans-serif !important;
}

.uebermichinfo {
    flex: 0 0 34% !important;
    min-width: 0 !important;  
    gap: 2.2rem !important;
    box-sizing: border-box !important;
    padding: 4rem 2rem 0 0rem !important;
}

.uebermichinfo h3 {
    font-size: 4.5rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: -2rem 0 0rem !important;
    text-align: center !important;  
    font-family: 'Cormorant Garamond', serif !important;
    z-index: 2 !important
}

.uebermichinfo p {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 4rem 2rem 1rem !important;
    text-align: justify !important;  
    font-family: 'Jost', sans-serif !important;
}

.jm-portrait-mitname {
  width: 100%;
  max-width: 320px;
  margin: 4rem auto 2rem auto !important;  
  position: relative;
  z-index: 0;
}

.jm-portrait-mitname img {
    width: 100%;
    height: auto;
    display: block;
    filter: none !important;
}

.ausbildung {
    flex: 0 0 33% !important;
    gap: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    padding: 20rem 0 0 5rem !important;
    align-items: flex-start !important;  
}

.ausbildung h3 {
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 0 2rem !important;
    text-align: center !important;  
    font-family: 'Cormorant Garamond', serif !important;
}

.ausbildung p {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 4rem 1rem 0 !important;
    text-align: left !important;  
    font-family: 'Jost', sans-serif !important;
}


.d3-chart-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    font-weight: 400;
}

p.d3-info {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    font-weight: 400;
    margin-top: 1rem;
}

.d3-chart-wrapper p:first-of-type::first-letter {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    text-align: left;
    font-weight: 400;
    float: none;
    line-height: inherit;
    margin: 0;
    padding: 0;
}


.d3-info a {
    color: #679acf !important;
    text-decoration: none !important;
}

.d3-info a:hover {
    color: #1c4991 !important;
    text-decoration: underline !important;
}

.x-label {
    margin-bottom: 1rem;
}

#d3-chart-container {
    display: flex;
    justify-content: center;
}

.email {
    color: black;
    text-decoration: none;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 2rem 1rem !important;
    text-align: justify !important;  
    font-family: 'Jost', sans-serif !important;
}

.email:hover {
    color: #679acf
}

.uebermichinfo .jm-social-icons {
    display: flex !important;
    flex-direction: row !important;
    margin: 1rem 2rem 1rem !important;
}

.uebermichinfo .jm-social-icons a:hover {
    color: #679acf!important;
}


/*  Mobile Layout*/
@media (max-width: 768px) {

    .ueber-mich {
        display: flex !important;
        flex-direction: column !important;
        padding: 2rem 1.5rem !important;
        min-height: auto !important;
    }

    /* Change order */
    .uebermichinfo {
        order: 1;
    }

    .ausbildung {
        order: 2;
    }

    .newsletter-info {
        order: 3;
    }

    /* nicht anzeigen */
    .jm-divider-2,
    .jm-divider-3 {
        display: none !important;
    }

    /* andere breite */
    .uebermichinfo,
    .ausbildung,
    .newsletter-info {
        flex: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 3rem;
    }

    /* Title */
    .uebermichinfo h3 {
        font-size: 2rem !important;
        margin: 0 0 2rem !important;
        text-align: center !important;
    }

    /* Portrait */
    .jm-portrait-mitname {
        max-width: 200px;
        margin: 0 0 2rem;
        transform: none;
    }

    /* Text */
    .uebermichinfo p,
    .newsletter-info p {
        margin: 0 0 1.25rem !important;
        text-align: justify !important;
    }

    .ausbildung p {
        margin: 0 0 1.25rem !important;
        text-align: left !important;
    }
    .email {
        margin: 0 0 1rem !important;
    }

    .uebermichinfo .jm-social-icons {
        margin: 1rem 0 0 !important;
    }

    /* Newsletter */
    .newsletter-info {
        padding-top: 0 !important;
        display: none !important;
    }

    .newsletter-info h3 {
        margin-bottom: 1rem !important;
        display: none !important;
    }

    /* Ausbildung */
    .ausbildung {
        align-items: flex-start !important;
    }

    .ausbildung h3 {
        margin-bottom: 1rem !important;
        text-align: left !important;
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        font-family: 'Jost', sans-serif;
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        font-family: 'Jost', sans-serif;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .newsletter-form .tnp-field {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .newsletter-form .tnp-field label {
        font-family: 'Jost', sans-serif;
    }

    .newsletter-form input.tnp-email {
        font-family: 'Jost', sans-serif;
        padding: 0.5rem 0.75rem;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
    }

    .newsletter-form input.tnp-submit {
        font-family: 'Jost', sans-serif;
        background-color: #212529 !important;
        color: #fff !important;
        border: none;
        border-radius: 0.375rem;
        padding: 0.5rem 1.5rem;
        cursor: pointer;
    }

    .newsletter-form input.tnp-submit:hover {
        background-color: #679acf !important;
    }
}

.tnp.tnp-subscription,
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 2rem !important;
    font-family: 'Jost', sans-serif;
    }

.tnp.tnp-subscription input,
.newsletter-form input {
    width: 70% !important;
    box-sizing: border-box;
}

.tnp.tnp-subscription button,
.newsletter-form button {
    width: 30% !important;
    box-sizing: border-box;
}

.tnp.tnp-subscription .tpn-field,
.newsletter-form .tnp-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tnp-field-email, 
.newsletter-form .tnp-field label {
    font-family: 'Jost', sans-serif;
}

.newsletter-form input.tnp-email {
    font-family: 'Jost', sans-serif;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.tnp-submit,
.newsletter-form input.tnp-submit {
    font-family: 'Jost', sans-serif;
    background-color: #212529 !important;
    color: #fff !important;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    margin-top: 1rem !important;
}

.tnp.tnp-subscription .tpn-field input.tnp-submit:hover,
.newsletter-form input.tnp-submit:hover {
    background-color: #679acf !important;
}

/* MailPoet-Formular */
.newsletter-form form.mailpoet_form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    font-family: 'Jost', sans-serif !important;
    width: calc(100% - 4rem) !important;
    max-width: calc(100% - 4rem) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.newsletter-form form.mailpoet_form .mailpoet_paragraph {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.newsletter-form form.mailpoet_form input.mailpoet_text[type="email"] {
    width: 100% !important;
    font-family: 'Jost', sans-serif !important;
    padding: 0.6rem 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    margin: 0 !important;
}

.newsletter-form form.mailpoet_form input.mailpoet_submit[type="submit"] {
    width: 100% !important;
    font-family: 'Jost', sans-serif !important;
    background-color: #212529 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.375rem !important;
    padding: 0.6rem 1.5rem !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.newsletter-form form.mailpoet_form input.mailpoet_submit[type="submit"]:hover {
    background-color: #679acf !important;
}

.newsletter-form form.mailpoet_form .mailpoet_message {
    font-family: 'Jost', sans-serif !important;
    margin-top: 0.5rem !important;
}


/*mobile front-page*/


@media (max-width: 768px) {

    /* Stack everything */
    .jm-hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        padding: 2rem 1.5rem !important;
        gap: 2.5rem;
        min-height: auto;
    }

    /* Remove dividers */
    .jm-divider-1,
    .jm-divider-v {
        display: none !important;
    }

    /* home.php: Liste auf Mobile ausblenden, nur Artikel-Karten zeigen */
    .jm-nav-left-full {
        display: none !important;
    }

    /* Order of sections */
    .jm-intro {
        order: 1;
    }

    .jm-nav-left {
        order: 2;
    }

    .jm-nav-right {
        order: 3;
        display: none !important
    }

    /* Full width */
    .jm-intro,
    .jm-nav-left,
    .jm-nav-right {
        width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Intro */
    .jm-intro {
        min-height: 100vh; 
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .jm-intro h1 {
        font-size: 2rem;
        text-align: left;
        line-height: 0.95;
        margin-bottom: 1rem;
        margin-top: 0;
}

    .jm-social-icons {
        justify-content: flex-start;
        margin-bottom: 4rem;
    }

    /* Navigation links */
   .jm-nav-left a,
    .jm-nav-right a {
        display: block !important;
        margin-bottom: 0.4rem !important;
        font-size: 1em !important;
    }

    .jm-sub-links {
        margin: 0.5rem 0 0.5rem !important;
        font-size: 0.9em !important;
    }

    .jm-sub-links a {
        margin-bottom: 0.4rem !important;
        font-size: 1em !important;
    }
    
}

.datenschutz {
    margin: 3rem 5rem 3rem 5rem;

}