/* ========== Desktop Layout (1120px) ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #f2f2f2;
  font-family: Arial, sans-serif;
  color: #333;
}

#wrapper {
  width: 1120px;
  margin: 0 auto;
  background: #fff;
}

/* ========== Toplinks (graue Leiste oben) ========== */
#toplinks {
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}
#toplinks ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 8px 16px;
  gap: 20px;
}
#toplinks a {
  text-decoration: none;
  color: #444;
}
#toplinks a.active { font-weight: bold; }

.header{
  display:flex;
  align-items:flex-start;
  padding: 40px 0px 10px 20px;
  gap: 24px;
}

/* links fix 40% */
.header-logo{
  width:35%;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  border:0px solid;
  padding-bottom:10px;
}

/* rechts dynamisch (nimmt nur Inhalt, klebt rechts) */
.header-menu-desktop{
  margin-left:auto;   /* schiebt nach ganz rechts */
  flex: 1;               /* <-- wichtig */
  position: relative;    /* <-- Bezug fürs Submenü */
  width: auto;           /* falls du noch width:max-content drin hast: raus */
  border:0px solid;
}

.header-menu-mobile{
	display:none;
}

.main-menu{
margin-top:15px;
  display:flex;
  gap:20px;
  list-style:none;
  padding:0;
  justify-content:left;
}

.main-menu a{
  text-decoration:none;
  color:#5a5d5d;
  font-size:0.85em;
  font-family:'Droid Sans', Arial, sans-serif;
  white-space:nowrap;
  padding:6px 0;
}
.main-menu a:hover{
	color:#67b32e;
	font-weight:bold;
}
.endspace{
	width:20px;
}
/* Branding + Logo zusammen links */
.brand-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 0 0 auto;   /* statt flex: 1; */
  min-width: 0;
}

/* Branding (Titel + Untertitel) */
.brand h1 {
  color: #67b32e;                   /* grün */
  font-weight: 400;
  font-size: 2.2em;
  font-family: 'Yanone Kaffeesatz', Arial, sans-serif;
  line-height: 1.05;
  margin: 0;
  transition: color 0.3s ease;      /* Hover-Übergang */
  text-decoration:none;
}
.brand h1:hover { color: orange;text-decoration:none; }  /* Hover = orange */

.brand p {
  color: #67b32e;                   /* bleibt grün */
  font-size: 1.02em;
  margin-top: 6px;
}

/* Logo (50x50) direkt neben dem Branding */
.brand-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}
.brand a{
  text-decoration:none;
  color:inherit;
}

.brand a:hover{
  text-decoration:none;
}
.has-sub{ position: static; }

/* Submenu (standard: zu) */
.submenu{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:100%;
  margin-top:10px;
  border-top:1px solid #759f2c;
  border-left:1px solid #759f2c;
  padding:15px 15px;
  list-style:none;
  gap:20px;
  z-index:9999;
  border-top-left-radius: 5px;
}
.submenu a{
  color:#ffffff;
  font-size:0.85em;
  font-family:'Droid Sans', Arial, sans-serif;
  white-space:nowrap;
  text-decoration:underline;
  text-underline-offset: 3px;
  
}
.submenu a.submenu-active{
	color:#a57000 !important;
	font-weight:bold;
}
.submenu a:hover{
	color:#a57000;
	font-weight:bold;
}
/* Wenn offen: sichtbar */
.has-sub.open .submenu{
  display:flex;
}
.has-sub.open > a{
  font-weight:bold;
}
/* Pfeil / Spitze */
.has-sub.open .submenu::before{
  content:"";
  position:absolute;

  left: var(--arrow-x, 50%);   /* <-- dynamisch */
  top:-8px;
  transform: translateX(-50%) rotate(45deg);

  width:16px;
  height:16px;

  background:#d9d9d9;
  border-left:1px solid #759f2c;
  border-top:1px solid #759f2c;
}

.submenu-extension{
  width:100%;                 /* geht über den Wrapper */
  height:10px;               /* wie in deinem Screenshot */
  border-top:1px solid #759f2c;
  visibility:hidden;
}
.submenu-extension.open{
  visibility:visible;
}

.submenu, .submenu-extension,.has-sub.open .submenu::before{
	background:#a8da51;
}

/* ========== Headerbild ========== */
#header-image{
  position:relative;
}

#header-image img{
  width:100%;
  display:block;
}

#header-image::after{
  content:"";
  position:absolute;
  inset:0;

  box-shadow:
      inset 0 28px 32px -18px rgba(0,0,0,0.5),
      inset 0 -28px 32px -18px rgba(0,0,0,0.5);

  pointer-events:none;
}

/* ========== Content-Bereich ========== */
main {
  display: flex;
  gap: 20px;
  padding: 20px;
    width:100%;
    box-sizing:border-box;
	color:#3c3c3c;
}

main p{
		margin-bottom:10px;
}

main strong{
		margin-top:20px;
}

main a{
	color:#67b32e;
}
main a:hover{
	color:orange;
}

.content-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    width:100%;
    box-sizing:border-box;
}

.content-main{
    flex:1 1 auto;
    min-width:0;
    box-sizing:border-box;
	padding:40px;
	padding-top:0px;
}

.max-width {
	max-width:800px;
	border:0px solid;
}
.center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.content-social{
    flex:0 0 250px;
    max-width:250px;
    width:250px;
    box-sizing:border-box;

    display:flex;
    flex-direction:column;   /* untereinander statt nebeneinander */
    align-items:center;      /* mittig */
}

h1,h2,h3,h4,h5,h6 {margin: 0px 0;color:#3c3c3c;}

h1 {font-size: 32px;margin: 30px 0;}

h2 {font-size: 28px;margin: 20px 0;}

h3 {font-size: 24px;margin: 10px 0;}

h4 {font-size: 20px;}

h5 {font-size: 18px;}

h6 {font-size: 16px;}


/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 20px;
  background: #fafafa;
  border-top: 1px solid #ddd;
  font-size: 0.9em;
}
