@font-face {
  font-family: 'cat_rhythmusregular';
  src: url('../fonts/catrhythmus-webfont.woff2') format('woff2'),
    url('../fonts/catrhythmus-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
font-display: fallback;
}


@font-face {
  font-family: 'roboto_condensedregular';
  src:
    url('../fonts/RobotoCondensed-Regular-webfont.woff2') format('woff2'),
    url('../fonts/RobotoCondensed-Regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
font-display: fallback;
}


* {
  margin: 0;
  padding: 0;
  font-family: 'roboto_condensedregular', Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  position: relative;
}


body {
  background: #FCF9F1;
}


#mama {
  max-width: 1200px;
  margin: 20px auto;

}


/* Eins */

#eins {
  height: 140px;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(181deg, #437848 8%, rgba(193, 203, 192, 0.607) 89%), url(../images/dtbg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  user-select: none;
}


/* Name-Logo*/

#name-logo {

  width: 100px;
  height: 100px;
  padding: 10px;
  flex-direction: column;
  border-radius: 50%;
  display: inline-block;
  background: #2d5131;
  color: #FCF9F1;
  transform: rotate(-15deg);
}


#first-name {
  font-family: 'cat_rhythmusregular';
  font-size: 3em;
  line-height: 1em;
}

#last-name {
  font-family: 'cat_rhythmusregular';
  font-size: 3.2em;
  line-height: 1em;
}


/* Rechts */

#rechts {
  display: flex;
  flex-direction: column;
}

/* Breite verschieden definiert für die beiden sprachen - verhindert Springen nach Link-Click */
html:lang(en) #rechts {
  width: 720px;
  min-width: 720px;
}

html:lang(de) #rechts {
  width: 810px;
  min-width: 810px;
}


/* Rechtsoben */

#rechtsoben {
  display: flex;
  justify-content: space-between;
  height: 40px;
  padding: 12px;


}

/* Untertitel */

#sub-title {
  font-size: 1.7em;
  margin-top: 5px;
  color: #FCF9F1;
  font-family: 'cat_rhythmusregular';
  font-variant: small-caps;
  text-shadow:
    0px 1px 0px rgba(255, 255, 255, 0.4),
    1px 2px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2em;

}

/*Sprache */
#language {
  display: flex;
  gap: 6px;
  transition: all 0.3s ease;
  width: 56px;
}

/* Inaktive und aktive Sprache */
#langin,
#langak {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #437848;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Spezifische Stile für inaktive Sprache */
#langin {
  background-color: #a8dfb08b;
  color: #161714;
}

/* Spezifische Stile für aktive Sprache */
#langak {
  background: #2d5131;
  color: #FCF9F1;
  text-decoration: underline;
}

/* Hover-Effekte */
#langin:hover {
  _transform: scale(1.4);
  color: #FCF9F1;
  background: #2d5131;
  text-decoration: underline;
}

#langin a:hover {
  color: #FCF9F1;
}


/* Navigation */
#nav {
    display: flex;
    justify-content: flex-end;
    _margin-top: auto;
    position: sticky; /* Add this */
 
    
}

.navitem {
    display: inline-block;
    padding: 10px;
    margin: 10px;
    border: 1px solid #437848;
    background-color: #a8dfb08b;
    font-size: 1em;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    height: 25px;
}

#nav a:hover {
    text-decoration: underline;
    color: #FCF9F1;
}

.navitem:hover {
    background: #437848;
    box-shadow: 2px 2px 5px gray;
    _transform: scale(1.2);
}
.navitemak {
    display: inline-block;
    padding: 10px;
    margin: 10px;
    border: 1px solid #437848;
    font-size: 1em;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
      text-decoration: underline;
    color: #FCF9F1;
        background: #437848;
    box-shadow: 2px 2px 5px gray;
    height: 25px;
    
}



.navitem:hover a {
    color: #FCF9F1;
    text-shadow: 2px 2px 5px gray;
    text-decoration: underline;
}


/* ===== MOBILE NAVIGATION ===== */
/* Hidden checkbox */
#mobile-menu-checkbox {
    display: none;
}



/* Menu Bar im Mobile Modus */
.menu-toggle-label {
    display: none;
    align-items: center;
    cursor: pointer;
    z-index: 1002;
    padding: 8px 12px;
    margin-left: auto;
    color: #FCF9F1;
    font-size: 0.9em;
    _border-radius: 5px;
    background-color: rgba(67, 120, 72, 0.7);
    transition: all 0.3s ease;
    width:70vw;
}

.menu-toggle-label:hover {
    background-color: #437848;
}

.menu-toggle-label .hamburger-icon {
    font-size: 1.5em;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

/* Mobile nav menu (hidden by default) */
#mobile-nav {
    display: none;
}

/* Mobile menu container */
.mobile-menu-container {
    display: none;
}


/* Content */

.content {
  width: 80%;
  margin: auto;
}

p {
  margin: 30px;
  line-height: 1.5em;


}

/* Ungeordnete Listen */
ul {

  margin: 45px;
  line-height: 1.5em;

}

/* Links */
p a {
  text-decoration: underline;
  color: #437848;
  text-decoration: bold;
}

a {
  color: #161714;
  text-decoration: none;
}

/* Spalten */
.multicolumn {
  column-count: 2;
  column-gap: 20px;
  column-rule: 1px solid #FCF9F1;
}

/* überschriften */

  h1,
  h2,
  h3 {
  font-family: 'cat_rhythmusregular';
  text-align: left;
  margin: 30px;
}

h1 
{
  font-size: 200%;
}

h2 
{
  font-size: 150%;
}

h3 
{
  font-size: 120%;
}



hr {
  width: 50%;
  margin: 0 auto;
}


/* Bilder */

img {
  display: block;
  margin: 20px;
  max-width: 50vw;
}

.img-right {
  float: right;
  margin: 0 auto 20px 20px;
  max-width: 50vw;
  height: auto;
}

.img-left {
  float: left;
  margin: auto 20px 20px 20px;
  max-width: 50vw;
}

/* Videos */

.yt-video {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.video {
  aspect-ratio: 16 / 9;
  width: 100% !important;
}


/* Footer */

#footer {
  margin: 30px;
  border-top: 1px solid #437848;
  /* Dünne Linie oben */
  padding: 20px 0;
  margin-top: 30px;
  text-align: right;
  clear: both;
}

#footer p {
  font-size: 0.6em;
}

#footer a {
  font-size: 1em;
  color: #161714;

}

/* Tabletansicht  */

@media only screen and (max-width: 1000px) {



  #mama {
    max-width: 100vw;
    margin: 0px;
  }
/* Rechts */
  #rechts {
    _margin-left: 40px;
  }

.navitem {

    font-size: .8em;
        padding: 10px;
    margin: 4px;
}

.navitemak {

    font-size: .8em;
        padding: 10px;
    margin: 4px;

}

/* Breite verschieden definiert für die beiden sprachen - verhindert Springen nach Link-Click   */
  html:lang(en) #rechts,
  html:lang(de) #rechts {
    max-width: 100%;
    width: auto;
    min-width: 0;
    flex: 1;          /* ← KEY LINE */
  }

  /* Rechtsoben  */

  #rechtsoben {

    height: 40px;

  }


}



/* Handyansicht */

/* Handyansicht */
@media only screen and (max-width: 800px) {
#mama {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body {
    overflow-x: hidden;
  }

  #mama {
    max-width: 100vw;
    margin: 0px;
    overflow: hidden;
  }

  #eins {
    max-width: 100vw;
    max-width: 100vw;
    height: 190px;
    background: linear-gradient(181deg, #437848 8%, rgba(193, 203, 192, 0.607) 89%), url(../images/cpbg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    width: 100vw;
  }

  /* Rechts */
html:lang(en) #rechts,
html:lang(de) #rechts {
    width: auto;
    margin-left: 0;
    min-width: 0;
  }

  /* ===== KEY FIX: Rechtsoben layout ===== */
  #rechtsoben {
    padding: 2%;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* CHANGED from 'center' to 'stretch' */
    margin-bottom: 15px;
    height: auto;
    width: 98%; /* ADDED */
  }

  /* Untertitel - centered */
  #sub-title {
    flex-wrap: wrap;
    text-align: center;
    font-size: 1.em;
    margin-bottom: 15px;
    width: 100%; /* ADDED */
    order: 1; /* ADDED: ensures it appears first */
  }

  /* Sprache - right-aligned */
  #language {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end; /* This should work now */
    width: 100%; /* ADDED */
    order: 2; /* ADDED: ensures it appears second (below subtitle) */
    padding-right: 25px; /* ADDED: some right padding */
  }

  /* Name-Logo */
  #name-logo {
    display: block;
  }

  /* Navigation */
  #eins #nav {
    display: none;
  }

  /* Show mobile menu container */
  .mobile-menu-container {
    width: 100%;
    max-width:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FCF9F1;
  }

  /* Show hamburger button */
  .menu-toggle-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 4px;
    color: #FCF9F1;
    font-size: 1em;
    background-color: #437848;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
  }

  .menu-toggle-label:hover {
    _background-color: #437848;
    _transform: scale(1.05);
  }

  .menu-toggle-label .hamburger-icon {
    font-size: 1.3em;
    margin-right: 10px;
    transition: transform 0.3s ease;
  }

  /* Mobile nav menu styling */
  #mobile-nav {
    position: absolute;
    display: none;
    flex-direction: column;
    width: 98vw;
    max-width: 400px;
    background: rgba(67, 120, 72, 0.646);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    padding-top: 40px;
  }

  /* Show mobile nav when checkbox is checked */
  #mobile-menu-checkbox:checked ~ .mobile-menu-container #mobile-nav {
    display: flex;
    max-height: 1000px;
    opacity: 1;
  }

  /* Rotate hamburger icon when open */
  #mobile-menu-checkbox:checked ~ .mobile-menu-container .menu-toggle-label .hamburger-icon {
    transform: rotate(90deg);
  }

  /* Add menu text */
  .menu-toggle-label::after {
    content: "Navigation";
  }

  /* Mobile nav items */
  .mobile-navitem {
    top: auto;
    display: block;
    width: 80%;
    margin: 5px auto !important;
    padding: 8px 12px;
    text-align: center;
    font-size: 0.7em !important;
    background-color: #a8dfb0;
    border-radius: 5px;
    color: #161714;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .mobile-navitem:hover {
    background: #437848;
    color: #FCF9F1 !important;
    box-shadow: 2px 2px 5px gray;
    _transform: scale(1.05);
  }

  .mobile-navitem:hover a {
    color: #FCF9F1 !important;
    text-shadow: 2px 2px 5px gray;
    text-decoration: underline;
  }

  .mobile-navitemak {
    top: auto;
    display: block;
    width: 80%;
    margin: 5px auto !important;
    padding: 8px 12px;
    text-align: center;
    font-size: 0.7em !important;
    border-radius: 5px;
    color: #161714;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #437848;
    color: #FCF9F1 !important;
    box-shadow: 2px 2px 5px gray;
    _transform: scale(1.05);
       color: #FCF9F1 !important;
    text-shadow: 2px 2px 5px gray;
    text-decoration: underline;}


  /* Adjust eins for mobile */
  #eins {
    height: auto;
    min-height: 120px;
    background-size: cover;
    margin: 0px;
  }

  /* Inhalt */
  .content {
    width: 98%;
    margin: auto;
  }

  .multicolumn {
    column-count: 1;
    column-gap: 0;
  }

  p {
    margin: 5px;
  }

  /* Überschriften */
  h1,
  h2,
  h3 {
    margin: 10px 5px 10px 5px;
  }

  /* Bilder */
  img {
    max-width: 98%;
    height: auto;
    margin: 0;
  }
}


/* Optimierung für Drucker */

@media print {

  * {
    background: none;
    color: black;
  }


  /* LAYOUT RESET */
  body,
  #mama {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Bilder */

  img {
    max-width: 98vw;
  }


  /* Untertitel */
  #sub-title {
    font-size: 1.2em;
  }

  /* Navi */
  .topnav a {
    color: black;
    padding: 5px 5px;
    font-size: .6em;
  }

  /* Inhalt*/
  .content {
    width: 100%;
    max-width: 100%;
  }

  /* TYPOGRAPHIE */
  body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.5;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
    page-break-inside: avoid;
    margin: 1em 2.5em 0em;
  }

  h2 {
    font-size: 14pt;
  }

  p {
    margin: 1em 2.5em 0em;
  }

  li {
    margin: 1em 2.5em 0em;
    line-height: 1.5em;
  }

  /* Spalten entfernen */
  .multicolumn {
    column-count: 1;
  }

  /* Links */
  a {
    color: #000;
    text-decoration: underline;
  }

}