/* -----------------------------------
   GLOBAL: Layout, Farben, Typografie
----------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #111;
}

h1 {
    margin: 0;
    padding: 0;
    margin-top: 4px;
    font-size: 32px;
    color: #FFFFFF;
    text-align: center;
}

h2 {
    margin: 0;
    padding: 0;
    margin-top: 2px;
    font-size: 28px;
    color: #3AAADD;
    text-align: center;
}

h3 {
    margin: 0;
    padding: 0;
    margin-top: 0px;
    font-size: 24px;
    color: #96BA3B;
    text-align: center;
}

h4 {
    margin: 0;
    padding: 0;
    margin-top: 0px;
    font-size: 18px;
    color: #000000;
    text-align: center;
  	font-weight: 600;
}

p {
    line-height: 1.5;
    font-size: 17px;
    text-align: left;
}

/* -----------------------------------
   HEADER
----------------------------------- */
.topnav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 6px solid #96BA3B;
    gap: 20px;
    height: 90px;
    overflow: hidden;
}

/* Logo links */
.topnav .logo {
    margin-right: auto;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0px; /* Abstand zwischen Logo und GMA */
}

.logo-default {
    height: 60px;
    display: block;
}

.logo-scrolled {
    height: 40px;
    display: none;
}

.logo-text-scrolled {
    display: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
}

/* Menü zentriert */
.topnav .menu {
    display: flex;
    gap: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* Menülinks */
.topnav .menu a {
    text-decoration: none;
    color: #757575;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding-bottom: 4px;
}

/* LB-Submenü ausblenden */
.mobile-lb-submenu {
    display: none;
}

/* Hover-Farbe */
.topnav .menu a:hover {
    color: #3AAADD;
}

/* Blaue Unterstreichung */
.topnav .menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #3AAADD;
    transform: translateX(-50%);
}

.topnav .menu a:hover::after {
    width: 100%;
}

/* Rechter Button – NORMAL */
.header-button {
    margin-left: auto;
    background: #3AAADD;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease;
}

.header-button:hover {
    background: #96BA3B;
}

/* Burger-Menü */
.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
}

#menu-toggle {
    display: none;
}

/* -----------------------------------
   SCROLLED HEADER (SOFORTIGER SWITCH)
----------------------------------- */
.topnav.scrolled {
    height: 44px; /* kompakt */
    background: #96BA3B;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 999;
    height: 44px;
    background: #96BA3B;
    border-bottom: none;
}

/* Menüfarbe */
.topnav.scrolled .menu a {
    color: #ffffff;
  	font-weight: bold;
}

.topnav.scrolled .menu a:hover {
    color: #3AAADD;
}

/* Button – KLEIN IM SCROLLED HEADER */
.topnav.scrolled .header-button {
    padding: 5px 10px;
    font-size: 14px;
    margin-right: -15px;
    background: #3AAADD;
    color: #fff;
    transition: all 0.25s ease;
}

.topnav.scrolled .header-button:hover {
    background: #ffffff;
    color: #3AAADD;
}

/* Logo-Wechsel */
.topnav.scrolled .logo-default {
    display: none;
}

.topnav.scrolled .logo-scrolled {
    display: block;
  	margin-left: -15px;
}

.topnav.scrolled .logo-text-scrolled {
    display: inline-block;
  	margin-left: -1px;
}

/* =========================================
   BACK-BUTTON
========================================= */

.back-button-wrapper {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    font-size: 15px;
    color: #3AAADD;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.back-button:hover {
    color: #1f8bbf;
    transform: translateX(-3px);
}

/* -----------------------------------
   HERO
----------------------------------- */
.hero {
    background: linear-gradient(rgba(150,186,59,0.1), rgba(150,186,59,0.8)), 
                url('img/hero.jpg') center/cover no-repeat;
    background-position: center 30%;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-top: 15px;
    text-align: center;
}

.button {
    margin-top: 25px;
    padding: 14px 24px;
    background: #3AAADD;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    transition: all 0.25s ease;
    margin-left: 0;
    margin-right: auto;
}

.button:hover {
    background: #ffffff;
    color: #3AAADD;
}

/* -----------------------------------
   STANDARD-SECTIONS
----------------------------------- */
section {
    max-width: 1100px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

section h2 {
    text-align: center;
  	margin-bottom: 10px;
}

section p {
    text-align: center;
  	margin-bottom: 15px;
}

/* -----------------------------------
   GRID / CARDS
----------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.card {
    position: relative;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.card.has-button {
    padding-bottom: 70px;
}

.card h3 {
    margin-top: 0;
  	margin-bottom: 15px;
    color: #96BA3B;
}

.card p {
  	text-align: left;
    margin-bottom: 10px;
}

.card ul {
    padding-left: 20px;
}

.card ul li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.card p,
.card h3,
.card li {
    overflow-wrap: break-word;
    word-break: break-word;
}

.card-button {
    position: absolute;
    right: 20px;
    bottom: 20px;

    background: #3AAADD;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    transition: all 0.25s ease;
}

.card-button:hover {
    background: #96BA3B;
}

/* -----------------------------------
   ZWEI SPALTEN (Firmenlösungen / Kontakt)
----------------------------------- */
.section-row {
    max-width: 1100px;
    margin: -40px auto 0;
    padding: 0;
    display: flex;
    gap: 20px;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.white-section {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* -----------------------------------
   KONTAKT-BOX
----------------------------------- */
.kontakt-preview-box {
    width: 100%;
    max-width: 1100px; 
    height: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    position: relative;
}

/* iframe-Ausschnitt */
.kontakt-preview-box iframe {
    width: 1000px;   /* echte Desktop-Breite */
    height: 750px;  /* genug Höhe für Content */
    border: none;

    /* Zoom so, dass die Seite breit wirkt */
    transform: scale(0.68);
    transform-origin: 0 0;

    position: absolute;

    /* Header + Menü + Hero sauber ausblenden */
    top: -120px; 
    left: -85px;

    pointer-events: none;
}

/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #555;
    font-size: 14px;
    margin-top: 10px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.footer-top {
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #3AAADD;
    font-weight: 600;
    text-decoration: none;
    margin: 0 6px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    font-size: 13px;
    color: #777;
}
