html, body {margin: 0; padding: 0;}
html { scroll-behavior: smooth; } /* Anker-Offset für den Header */
body   { background:#637076 url('images/bg-gradient.png') repeat-x fixed; font-family:'Swiss 721 BT Roman',Arial,Verdana,"Times New Roman", sans-serif; font-size:80%; color:#000000; width:100%; }

@font-face{font-family: 'Swiss 721 BT Roman'; src: url('../fonts/Swis721BT.ttf') format('truetype'); }


p  {padding:0 0 15px 0; margin:0; line-height:140%;}
h1 {float:left; margin:0; padding:25px 20px 0px 73px; text-align:left;color:#E8EDF7; min-height:24px;font-size:180%;font-weight:normal;}
h2 {clear:left; float:left;margin:0;padding:0px 0px 0px 74px; text-align:left;color:#E8EDF7;font-size:100%;font-weight:normal;}
h3 {margin:40px 20px 30px 20px; padding:0; font-size:170%; font-weight:normal;}
h4 {margin:20px; padding:40px 0px 0px; font-size:160%; font-weight:normal;}
h5 {margin:20px 20px 0px; padding:0; font-size:110%; font-weight:500;border-bottom:1px dotted #3AC100;}
h6 {margin:40px 20px 30px 20px; padding:30px 0; font-size:120%; font-weight:normal; border-bottom:1px solid #EFEFEF;}



/* link styling */
a {
    color: #000000;
    text-decoration: none;
    outline: none;
}

a:hover {
    text-decoration: none;
    color: #3AC100;
}

a:link,
a:visited {
    border-bottom: 1px solid #3AC100;
}

h1 a,
h1 a:link,
h1 a:visited {
    color: #E8EDF7;
    text-decoration: none;
    border: 0;
}

ul#menu a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 100% 15px 20px 15px;
    border: 0;
}

ul#menu a:hover,
ul#menu a.active {
    color: #3AC100;
}

ul#menu a.active {
    background: url("images/menu-a-bg.png") no-repeat center bottom;
}

#footer a,
#footer a:link,
#footer a:visited {
color: #E8EDF7;
border: 0;
}

section[id] {
    scroll-margin-top: 100px;
}




/*structural elements*/
#section 		{text-align:center; width:100%;}
#wrapper  {width:1200px;margin: 0 auto;background:url('images/schlagschatten.png') repeat-y 0 0}
#header			{background:#1A292F url('images/bg-header.png') no-repeat 0 0;margin:0 auto;padding:10px 20px 0px 20px; width:920px; border-bottom:2px solid #3AC100;}
#menu			{float:right;margin:0; padding:20px; color:#FFFFFF; text-align:center;}
#startdesign {height:639px;background:#1D2F35 url('images/bg-startdesign.jpg') repeat-x;margin:0 auto;padding:0;}
#container		{background-color:#E8EDF7;margin:0 auto; text-align:left; padding:0; width:960px;}
#content		{margin:0 0 40px 0; padding:10px 40px 40px 44px;font-size:110%;}
#container-box		{margin:0 auto; padding:30px 70px;background:#1D2F35 url('images/bg-container-box.png') no-repeat;color:#fff;}
.boxdesign			{float:left;width:240px; margin:0 0 10px 0; padding:0;  text-align:center;}
.boxcaption {margin:10px 30px; padding:30px 0; font-size:120%; font-weight:normal; border-bottom:1px solid #EFEFEF;}
#box{}
#box2{position:relative;left:50px;}
#box3{float:right;}
#homefooter		{background-color:#0E1619;margin:0 auto; text-align:left;width:960px;}
#footer			{background:#0E1619 url('images/footer-gradient.png') repeat-x 0 0;margin:0 auto; text-align:left;width:960px;}



/*section dependant style over-rides*/
h1 span{font-size:70%;color:#3AC100;}
#header p	{text-align:center; font-size:170%; color:#E8EDF7; padding:45px 0 0 0; }
ul#menu 	{margin:0; padding-bottom:20px;}
ul#menu li	{margin:0; padding:0; list-style:none; display:inline; }
#content p {padding:10px 20px;}

.boxdesign p	{padding:20px;line-height:160%;}
.boxdesign img {margin-top:-10px;padding:0px;}
#homefooter p,#footer p		{padding:30px; font-size:100%; color:#E8EDF7; text-align:right;font-style:italic;}

.aboutmeportrait{float:right;margin:-40px 20px 0 20px;border:1px solid #637076;}

ul.portfoliolist {list-style-type: none; padding: 0; margin-left:24px;}
ul.portfoliolist li{line-height:2em; padding-left: 16px; text-indent: -20px;}
ul.portfoliolist li ul li {margin-left:-20px; padding-left: 0px;list-style-type: none;}
ul.portfoliolist li:before {content: "- ";}

.contacttable{width:400px;margin:20px;border-spacing:0px;}
.contacttable td {padding:0px;}
.contacttablecaption {width: 105px;}


/*Sticky Header - immer sichtbar beim Scrolling (Design unverändert) */
#header {
position: sticky;
top: 0;
z-index: 999;
margin-top: 0 !important; /* Sichert exakte Kante-Alignment, falls Sticky-Margin-Effekte auftreten */
}



/* ::: ANFANG MOBILE BEREICH ::: ANFANG MOBILE BEREICH ::: ANFANG MOBILE BEREICH ::: ANFANG MOBILE BEREICH ::: ANFANG MOBILE BEREICH ::: ANFANG MOBILE BEREICH ::: ANFANG MOBILE BEREICH ::: ANFANG MOBILE BEREICH ::: */

/* ========================================== */
/* CLEARFIX                                   */
/* ========================================== */

/* Verhindert, dass Inhalte aus Boxen herausragen */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* ========================================== */
/* MOBILE-REGELN                              */
/* ========================================== */

.mobile-toggle {
    display: none;
}


@media screen and (max-width: 768px) {

    /* Verhindert horizontales Scrollen */
    html,
    body {
        overflow-x: hidden;
        scroll-padding-top: 0;
    }

    section[id] {
        scroll-margin-top: 54px;
    }


    /* Sticky Header */
    #header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px 20px 0;
    background: #1A292F url("images/bg-header.png") no-repeat 0 0;
    background-size: cover;
    border-bottom: 2px solid #3AC100;
    }

    /* Header-Text */
    #header p {
    padding: 25px 0 0;
    font-size: 140%;
    }

    /* Hamburger-Menü-Schaltfläche */
    .mobile-toggle {
        display: block;
        position: fixed;
        top: 12px;
        right: 8px;
        z-index: 10000;
        padding: 4px 6px;
        color: #E8EDF7;
        font-size: 22px;
        background-color: #1A292F;
        border: none;
        cursor: pointer;
    }

    /* Mobile-Navigation */
    #menu {
    position: fixed;
    top: 54px;
    right: 12px;
    left: auto;
    z-index: 9998;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: calc(100vw - 24px);
    padding: 8px;
    box-sizing: border-box;
    float: none;
    text-align: center;
    background-color: #1A292F;
    border-bottom: 2px solid #3AC100;
    }

    /* Menü wird durch JavaScript geöffnet */
    #menu.active {
    display: flex;
    }

    /* Menüeinträge */
    #menu li {
    display: block;
    width: 100%;
    padding: 0;
    text-align: center;
    }

    #menu li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    color: #E8EDF7;
    text-align: center;
    border-bottom: 1px solid #3AC100;
    }

    #menu li a:hover,
    #menu li a.active {
    color: #3AC100;
    }

    /* Symbol und Farbe des aktiven Menüeintrags */
    #menu li a.active {
    background: url("images/menu-a-bg.png") no-repeat center bottom;
    }

    #menu li:last-child a {
    border-bottom: none;
    }

    /* Hauptbereich */
    #wrapper {
    width: 100% !important;
    overflow-x: hidden;
    background-repeat: no-repeat;
    }

    #container {
    width: 95% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow-x: hidden;
    }

    #content {
    padding: 0 25px !important;
    }

    #content p {
    padding: 10px 0 !important;
    line-height: 150% !important;
    }

    /* Listen */
    ul.portfoliolist {margin-left:0px;}
    ul.portfoliolist li{padding-left: 6px; text-indent: -8px;}

/*
    ul.portfoliolist li{line-height:2em; padding-left: 16px; text-indent: -20px;}
    ul.portfoliolist li ul li {margin-left:-20px; padding-left: 0px;list-style-type: none;}
  */


    /* Überschriften */
    h1 {
        float: left;
        margin: 0;
        padding: 10px 20px 0 60px;
        min-height: 24px;
        color: #E8EDF7;
        font-size: 180%;
        font-weight: normal;
        text-align: left;
    }

    h2 {
        clear: left;
        float: left;
        margin: 0;
        padding: 0 0 10px 60px;
        color: #E8EDF7;
        font-size: 100%;
        font-weight: normal;
        text-align: left;
    }

    h3,
    h4,
    h6 {
        margin:40px 0 20px !important;
        padding: 0;
        font-size: 130%;
    }

    /* Startbereich */
    #startdesign {
    height: auto;
    min-height: 228px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    }

    /* Boxen untereinander anzeigen */
    .boxdesign {
        float: none !important;
        width: 100% !important;
        margin-bottom: 20px;
        box-sizing: border-box !important;
    }

    /* Bilder */
    img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 15px auto;
    }

    /* Portrait */
    .aboutmeportrait {
        display: block;
        float: none;
        max-width: 100%;
        height: auto;
        margin: 15px auto 25px;
        border: 1px solid #637076;
    }

    /* Footer */
    #homefooter,
    #footer {
    width: 95% !important;
    margin: 0 auto !important;
    overflow-x: hidden;
    }

    /* Tabelle an die Bildschirmbreite anpassen */
    .contacttable {
        width: 100% !important;
        margin:0 !important;
        padding:0 !important;
    }
    .contacttablecaption {width: 95px;}


    #box{}
    #box2{position:relative;left:0;}
    #box3{float:right;}


}








/* ========================================== */
/* SMARTPHONE LANDSCAPE                       */
/* ========================================== */

@media screen and (max-width: 960px) and (orientation: landscape) {

    /* Verhindert horizontales Scrollen */
    html,
    body {
        overflow-x: hidden;
        scroll-padding-top: 0;
    }

    section[id] {
        scroll-margin-top: 54px;
    }



    /* Header im Querformat kompakter */
    #header {
    min-height: 112px;
    padding: 6px 16px 0 !important;
    }

    #header p {
    padding: 8px 80px 8px 0 !important;
    font-size: 120% !important;
    line-height: 1.2;
    }

    /* Hamburger-Menü-Schaltfläche */
    .mobile-toggle {
        display: block;
        position: fixed;
        top: 12px;
        right: 8px;
        z-index: 10000;
        padding: 4px 6px;
        color: #E8EDF7;
        font-size: 22px;
        background-color: #1A292F;
        border: none;
        cursor: pointer;
    }

    /* Mobile-Navigation */
    #menu {
    position: fixed;
    top: 54px;
    right: 12px;
    left: auto;
    z-index: 9998;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: calc(100vw - 24px);
    padding: 8px;
    box-sizing: border-box;
    float: none;
    text-align: center;
    background-color: #1A292F;
    border-bottom: 2px solid #3AC100;
    }

    /* Menü wird durch JavaScript geöffnet */
    #menu.active {
    display: flex;
    }

    /* Menüeinträge */
    #menu li {
    display: block;
    width: 100%;
    padding: 0;
    text-align: center;
    }

    #menu li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    color: #E8EDF7;
    text-align: center;
    border-bottom: 1px solid #3AC100;
    }

    #menu li a:hover,
    #menu li a.active {
    color: #3AC100;
    }

    /* Symbol und Farbe des aktiven Menüeintrags */
    #menu li a.active {
    background: url("images/menu-a-bg.png") no-repeat center bottom;
    }

    #menu li:last-child a {
    border-bottom: none;
    }

    /* Hauptbereich */
    #wrapper {
    width: 96% !important;
    overflow-x: hidden;
    background-repeat: no-repeat;
    }

    #startdesign {height:510px;background:#1D2F35 url('images/bg-startdesign.jpg') repeat-x;margin:-100px 0 auto;padding:0;}

    #container {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow-x: hidden;
    }


    #content {
    padding: 0 25px !important;
    }

    #content p {
    padding: 10px 0 !important;
    line-height: 150% !important;
    }

    /* Listen */
    ul.portfoliolist {margin-left:0px;}
    ul.portfoliolist li{padding-left: 6px; text-indent: -8px;}

    /*
     *   ul.portfoliolist li{line-height:2em; padding-left: 16px; text-indent: -20px;}
     *   ul.portfoliolist li ul li {margin-left:-20px; padding-left: 0px;list-style-type: none;}
     */


    /* Überschriften */
    h1 {float:left; margin:0; padding:25px 20px 0px 73px; text-align:left;color:#E8EDF7; min-height:24px;font-size:180%;font-weight:normal;}
    h2 {clear:left; float:left;margin:0;padding:0px 0px 0px 74px; text-align:left;color:#E8EDF7;font-size:100%;font-weight:normal;}


    h3,
    h4,
    h6 {
        margin:40px 0 20px !important;
        padding: 0;
        font-size: 130%;
    }

    /* Startbereich
    #startdesign {
    height: auto;
    min-height: 228px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    }*/



    /* Bilder */
    img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 15px auto;
    }

    /* Portrait */
    .aboutmeportrait{float:right;margin:-40px 20px 0 20px;border:1px solid #637076;}

    /* Footer */
    #homefooter,
    #footer {
    width: 100% !important;
    margin: 0 auto !important;
    overflow-x: hidden;
    }

    /* Tabelle an die Bildschirmbreite anpassen */
    .contacttable {
        width: 100% !important;
        margin:0 !important;
        padding:0 !important;
    }
    .contacttablecaption {width: 95px;}


    #box{}
    #box2{position:relative;left:0;}
    #box3{float:right;}


}
