/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
    height: 100%;
}

ul,
li {
    padding: 0;
    margin: 0;
}

:focus {
    outline: none !important;
    border: none !important;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #222;
    padding: 0.2em 0;
}


/* =======================================================
  GENERAL
======================================================== */

html,
body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    width: 100%;
}

p,
li {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

p {
    font-size: 1em;
    line-height: 2em;
    letter-spacing: .02em;
}

li {
    font-size: 1em;
    line-height: 1.875em;
    letter-spacing: .02em;
}


h1,
h2,
h3,
h4 {
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    letter-spacing: .15em;
}

h1 {
    color: #fff;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.125em;
}

h4 {
    font-size: 1em;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none !important;
}

@media all and (max-width: 600px) {
    p {
        font-size: 1em;
        line-height: 1.75em;
    }
}

/*
@media all and (max-width:400px) {
    p {
        text-align: left!important;
    } 
}
*/

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

.dunkel {
    font-weight: 500;
}


/* ==========================================================================
   WIDE: Header
   ========================================================================== */

.header-container {
    width: 100%;
    min-height: 100%;
    position: relative;
}


/*
.header {
	display: block;
    position:absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%;
   	background: url('../img/start.jpg') no-repeat center center;
	background-attachment: fixed;
	background-size: cover;
}
*/

.header::before {
    content: ' ';
    display: block;
    background-image: url('../img/start.jpg');
    background-position: center;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    z-index: -10;
}

#logo-group {
    display: block;
    width: 80%;
    padding: 0 10%;
    height: auto;
    position: absolute;
    margin: 0 auto;
}

#logo {
    float: left;
    margin: 0 auto;
    z-index: 99;
    position: relative;
    clear: both;
    width: 100%;
    text-align: center;
}

#logo img {
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    min-width: 200px;
}

#logo h2 {
    text-align: center;
    position: relative;
    font-size: .9em;
    color: #fff;
    text-transform: none;
}

#logo h1 {
    display: none;
}

.header-type {
    float: left;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 99;
    top: 20%;
}


.header-type h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    font-size: 4em;
    /* Size altered by jquery.FitText.js */
    line-height: 1.1em;
    letter-spacing: .05em;
    position: relative;
}

@media all and (max-width: 770px) {

    /*
#logo-group {
    margin-top: -32%;
    width: 90%;
    margin-left: -45%;
}
*/

}

@media all and (max-width: 500px) {}

/* ============
    WIDE: Menu
   ============ */



#nav {
    width: 100%;
    position: absolute;
    bottom: 0px;
    z-index: 99;
    display: block;
    float: left;
    width: 100%;
    text-align: center;
    z-index: 9999;
}


#nav ul {
    width: 100%;
    float: left;
    text-align: center;
    height: 90px;
    position: relative;
    margin-top: 0;

}

#nav ul li {
    display: inline-block;
    margin-top: 2em;

}

nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8125em;
    letter-spacing: .15em;
    font-family: 'Roboto', sans-serif;
    padding: 2em 1.25em;
}

#nav-mobile {
    display: none;
}


.navToggle {
    display: block;
    margin: 0;
    padding: 0;
    margin-top: -37px;
    right: 10px;
    margin-left: -15px;
    position: absolute;
    z-index: 99999999999;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: transparent;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    -ms-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    text-indent: -9999px;
}

.navToggle:hover {
    background: transparent;
}

.navToggle .icon {
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    -ms-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 25px;
    height: 3px;
    background-color: #c42335;
}

.navToggle .icon:before,
.navToggle .icon:after {
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    -ms-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #c42335;
    content: '';
}

.navToggle .icon:before {
    top: -8px;
    left: 0;
}

.navToggle .icon:after {
    top: 8px;
    left: 0;
}

.navToggle:hover .icon {
    background-color: #c42335;
}

.navToggle:hover .icon:before {
    top: -10px;
    background-color: #c42335;
}

.navToggle:hover .icon:after {
    top: 10px;
    background-color: #c42335;
}

.navToggle.opened .icon {
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    background-color: transparent;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
    -o-transform: rotate(0deg);
    z-index: 99999999999 !important;
}

.navToggle.opened .icon:before {
    top: 0;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
    -o-transform: rotate(45deg);
    background: #c42335;
}

.navToggle.opened .icon:after {
    top: 0;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    background: #c42335;
}




/*************/


@media all and (max-width: 770px) {
    #blocker {
        background: rgba(0, 0, 0, .6);
        display: none;
        height: 100%;
        width: 100%;
        z-index: 999;
        position: fixed;
        -webkit-transition: all 0.4s ease-in-out;
        -moz-transition: all 0.4s ease-in-out;
        -o-transition: all 0.4s ease-in-out;
        -ms-transition: all 0.4s ease-in-out;
        transition: all 0.4s ease-in-out;
    }

    #blocker.opened {
        display: block;
        -webkit-transition: all 0.4s ease-in-out;
        -moz-transition: all 0.4s ease-in-out;
        -o-transition: all 0.4s ease-in-out;
        -ms-transition: all 0.4s ease-in-out;
        transition: all 0.4s ease-in-out;
    }

    #nav {
        display: none;
    }

    #nav-carat {
        display: inline;
        float: right;
        margin-top: 0px;
    }

    #nav-mobile-button-container {
        width: 100%;
        top: 0px;
        position: fixed;
        display: block;

    }

    #nav-mobile-button {
        position: relative;
        background-color: #fff;
        display: block;
        border-bottom: 1px solid #d3d3d3;
        cursor: default;
    }

    #nav-mobile {
        display: block;
        width: 100%;
        height: auto;
        position: fixed;
        z-index: 99;
        display: block;
        float: left;
        text-align: center;
        z-index: 9999;
        margin-top: 45px;

    }

    #nav-mobile-ul {
        display: none;
        width: 100%;
        float: left;
        text-align: center;
        position: relative;
        background-color: #f2f2f1;
    }

    #nav-mobile ul li:first-child {
        border-top: 1px solid #d3d3d3;

    }

    #nav-mobile ul li {
        display: block;
        padding: .5em 0;
        width: 100%;
        cursor: pointer;
        border-bottom: 1px solid #d3d3d3;

        -webkit-transition: background-color 300ms linear;
        -moz-transition: background-color 300ms linear;
        -o-transition: background-color 300ms linear;
        -ms-transition: background-color 300ms linear;
        transition: background-color 300ms linear;


    }

    #nav-mobile ul li:hover {
        background-color: white;
        -webkit-transition: background-color 300ms linear;
        -moz-transition: background-color 300ms linear;
        -o-transition: background-color 300ms linear;
        -ms-transition: background-color 300ms linear;
        transition: background-color 300ms linear;

    }

    #nav-mobile a {
        display: inline-block;
        height: 100%;
        width: 100%;
        text-decoration: none;
        text-transform: uppercase;
        font-size: .8125em;
        letter-spacing: .15em;
        font-family: 'Roboto', sans-serif;
        padding: .25em 0;
        color: #222;
    }

    #nav-mobile li a.active {
        color: #c42335;

    }

    #nav-mobile a#nav-mobile-button {
        box-sizing: border-box;
        height: 45px;
        padding: 1.2em 0 1em 0;
    }
}



/******* Nav BG Color Fade *******/
#sticker {
    background-color: rgba(255, 255, 255, 0);
    -webkit-transition: background-color 700ms linear;
    -moz-transition: background-color 700ms linear;
    -o-transition: background-color 700ms linear;
    -ms-transition: background-color 700ms linear;
    transition: background-color 700ms linear;
}

#sticker.scrolled {
    background-color: rgba(255, 255, 255, 1);
}

/******* Nav Font Color Fade *******/
.nav-item {
    color: white;
    -webkit-transition: color 700ms linear;
    -moz-transition: color 700ms linear;
    -o-transition: color 700ms linear;
    -ms-transition: color 700ms linear;
    transition: color 700ms linear;
}

.nav-item.scrolled {
    color: black;
}

.nav-item:hover {
    color: #c42335;
}

.nav-item:active {}

.nav-item:visited {}


/******* plugins.js "smooth scroll and active nav" *******/
.nav-item.scrolled.nav-active {
    color: #c42335;
}


/* ============
    WIDE: Main
   ============ */

.main {
    margin-bottom: -30px;
}

.scroll {
    text-align: center;
    width: 100%;
    padding: 170px 0;
    margin: 0 auto;
    overflow: auto;
}

.main p {
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
    padding: 0 40px;
}

.main h2+p {
    margin-top: 60px;
}

@media all and (max-width: 770px) {
    .scroll {
        padding: 60px 0;
    }

    .main p {
        padding: 0 5%;
    }

    .main h2+p {
        margin-top: 60px;
    }
}

.hide {
    opacity: .3;
}


/******* Main BG colors *******/

#profil {
    background-color: #fff;
}

#kompetenzen,
#kontakt {
    background-color: #f6f6f6;
}


/******* kompetenzen *******/


#kompetenzen.scroll {
    padding: 70px 0 !important;
}

section#kompetenzen ul li {
    color: #8e8e8e;
    font-size: 0.85em;
}

.kompetenzen-cols {
    margin-top: 60px;
    float: left;
    width: 100%;
    text-align: center;
}

.kompetenzen-cols .col {
    text-align: left;
    display: inline-block;
    margin: 0 40px;
    vertical-align: top;
}

#kompetenzen .kompetenzen-cols p {
    text-align: left;
}

.nobr {
    white-space: nowrap;
}

.rot {
    color: #c42335;
    text-align: center;
}


/****** kompetenzen Media Queries *******/



@media screen and (max-width: 770px) {

    .col3-layout.kompetenzen-cols .col {
        width: 80%;
        margin-top: 40px;
        text-align: center;
    }

    .col3-layout.kompetenzen-cols .kompetenzen-col1.col {
        margin-top: 0px;
    }

}


@media screen and (max-width: 847px) {
    .umbruch {
        display: block;
        text-align: center;
    }

    .rot {
        display: none;
    }

}

@media screen and (max-width: 400px) {
    .kompetenzen-cols .col {
        text-align: center;
        display: inline-block;
        vertical-align: top;
    }
}


/******* kooperationen *******/

#kooperationen {
    background-color: #fff;
}

#kooperationen.scroll {
    padding: 70px 0 !important;
}

section#kooperationen p {
    color: #8e8e8e;
    text-align: left;
    font-size: 0.85em;
    margin: 0;
    padding: 0;
    line-height: 20px;
    font-style: normal;
    font-weight: 400;
}

.kooperationen-cols {
    margin-top: 60px;
    float: left;
    width: 100%;
    text-align: center;
}

.kooperationen-cols .col {
    text-align: left;
    display: inline-block;
    margin: 0 40px;
    vertical-align: top;
    min-width: 200px;
}

/****** kooperationen Media Queries *******/



@media screen and (max-width: 847px) {

    .kooperationen-cols {
        margin-top: 40px;
        width: 50%;
        float: left;
    }

    .col3-layout.kooperationen-cols .col {
        width: 80%;
        margin: 0 auto;
        margin-top: 40px;
        text-align: left;
    }

    section#kooperationen p {
        text-align: left;
    }

    .col3-layout.kooperationen-cols .kooperationen-col1.col {
        margin-top: 0px;
    }

    section#kooperationen h2 {
        margin-bottom: 0px;
    }

}

@media screen and (max-width: 600px) {

    .kooperationen-cols {
        margin-top: 40px;
        width: 100%;
        float: none;
    }
}

@media screen and (max-width: 400px) {

    .kooperationen-cols h3 {
        text-align: left;
    }

    .kooperationen-cols .col {
        text-align: center;
        display: inline-block;
        vertical-align: top;
    }
}

/******* kontakt *******/
/***********************/

#kontakt.scroll {
    padding: 0 !important;
}

#kontakt img {
    width: 100%;
    max-width: 1200px;
}

#kontakt {
    padding-bottom: 0px;
}



#kontakt_adresse {
    position: absolute;
    background: #fff;
    right: 90px;
    z-index: 33;
    padding: 40px;
    width: 300px;
}

#kontakt_adresse h3,
#kontakt_adresse p {
    text-align: left;
    color: #585858;
}

#kontakt_adresse p {
    padding: 0px;
    margin: 0px;
    color: #222;
    line-height: 1.5em;
}

#kontakt_adresse a {
    color: #222;
}

#kontakt_adresse a:hover {
    text-decoration: underline !important;
}

#kontakt_adresse p span {
    color: #585858;
    font-size: .8em;
}

#kontakt_adresse.mobile {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    right: 0px;
    position: relative;
    padding-bottom: 90px;
}

#kontakt_adresse.mobile h3,
#kontakt_adresse.mobile p {
    text-align: center;
    width: 100% !important;
}

#kontakt_adresse h3 {
    font-size: 28px;
    margin-top: 0px;
}

#kontakt_adresse.mobile p {
    position: relative;
    display: block;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
}


/*
@media screen and (max-width: 1000px) {

#kontakt_adresse{
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	right: 0px;
	position: relative;
	padding-bottom: 90px;
}
#kontakt_adresse h3,
#kontakt_adresse p {
	text-align: center;
	width: 100% !important;
}

#kontakt_adresse p {
	position: relative;
	display: block;
	text-align: center;
	width: 100% !important;
	max-width: 100% !important;
}
	
}
*/


/******* profil *******/
/***********************/


#profil {
    position: relative;
    display: inline-block;
    width: 100%;
    background-color: #fff !important;
    background-image: url('../img/henrik_harlfinger_Profil_1920x1200_RGB.jpg');
    background-size: cover;
    -moz-background-size: cover;
    background-position: 30% top;
    background-repeat: no-repeat;
    margin-bottom: -10px !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
}


#profil {
    position: relative;
    overflow: hidden;
}

@media (max-width: 1366px) {

    #profil {
        background: none;

    }

    #profil-bg::before {
        content: ' ';
        display: block;
        background-image: url('../img/henrik_harlfinger_Profil_1920x1200_RGB.jpg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 100vh;
        width: 100vw;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        position: absolute;
    }
}


.profil-content {
    position: relative;
    max-width: 500px;
    float: right;
    text-align: left;
    margin-right: 30%;
}

.profil-content h2,
.profil-content p {
    margin: 0;
    padding: 0;
    text-align: left;
}

.profil-content p {
    font-style: italic;
}

.profil-content p::before {
    content: open-quote;
}

.profil-content p::after {
    content: close-quote;
}

.profil-content h2 {
    padding: 0;
    margin-bottom: -15px !important;
}

.profil-content h3 {
    line-height: 24px;
}

.profil-content .werdegang {
    color: #8e8e8e;
    font-size: .85em;
    font-style: normal !important;
}

.profil-content p.werdegang::before,
.profil-content p.werdegang::after {
    content: none;
}

/*//////////// PROFIL RESPONSIVE ////////////*/


@media screen and (max-width: 2410px) {
    .profil-content {
        margin-right: 25%;
    }
}

@media screen and (max-width: 1800px) {
    .profil-content {
        margin-right: 20%;
    }
}

@media screen and (max-width: 1400px) {
    .profil-content {
        margin-right: 10%;
    }
}

@media screen and (max-width: 1160px) {
    .profil-content {
        margin-right: 10px;
    }
}

/*
@media screen and (max-width: 1000px) {
	#profil {
		background-position: -300px;
	}
	
}
*/

@media screen and (max-width: 880px) {
    #profil {
        background-position: -130px;
        background-size: 120%;
    }

}


@media all and (max-width: 640px) {

    .header {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../img/start.jpg') no-repeat center center;
        background-attachment: scroll;
        background-size: cover;
    }

    .profil-content h2,
    .profil-content p {
        margin: 0;
        padding: 0 40px;
        text-align: center;
    }

    #profil {
        background-image: url('../img/henrik_harlfinger_Profil_1920x1200_RGB.jpg');
        background-position: left bottom;
        background-position-y: 18em;
        padding-bottom: 300px;
        background-attachment: scroll;
        background-size: 640px;
        background-repeat: no-repeat;
    }

    #profil-bg::before {
        background: none;
    }

    .profil-content {
        display: block;
        max-width: 100% !important;
        width: 100% !important;
        float: left;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        margin: 0 auto !important;
    }

}


@media screen and (max-width: 400px) {
    #profil {
        background-position-y: 360px;
        background-position-x: 30%;
        background-size: 300%;
    }

    .profil-content .werdegang {
        margin-bottom: 200px;
        margin: auto 10px;
    }


}

@media all and (max-width: 481px) {
    /*
	.eine_zeile {
		display: inline-block;
		margin-bottom: 10px;
	}	
*/
}

/******* impressum *******/
/***********************/

#impressum.scroll {
    padding: 70px 0 !important;
}

#impressum {
    background-color: #f6f6f6;
}

#impressum h2,
#impressum h3,
#impressum p {
    color: #585858;
}

#impressum h3 {
    text-align: left;
    color: #222;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 40px;
    margin-top: 40px;
    font-size: 1em;
}

#impressum p {
    text-align: left;
    color: #222;
    font-size: .8em;
    margin-bottom: 20px;
}

#impressum h4 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    text-align: left;
    color: #222;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 40px;
}

#map {
    display: block;
    width: 100%;
    height: 450px;
}

#impressum p a {
    text-align: left;
    color: #222;
}

#impressum p a:hover {
    text-decoration: underline !important;
}

@media all and (max-width: 770px) {

    #impressum h1,
    #impressum h2,
    #impressum h3,
    #impressum h4,
    #impressum p,
    #impressum ul {
        padding: 0 20px;
    }
}






/******* datenschutz *******/
/***********************/

#datenschutz.scroll {
    padding: 70px 0 !important;
}

#datenschutz {
    background-color: #fff;
    /*max-width: 850px;*/
    /*margin: 0 auto;*/
    color: #585858;
}

#datenschutz ul {
    padding: 0 40px;
}

#datenschutz p,
#datenschutz h2,
#datenschutz h3,
#datenschutz h4 {
    text-align: left;
    margin-bottom: 20px;
}

#datenschutz h3,
#datenschutz h4 {
    margin-top: 20px;
    font-size: 1em;
}

#datenschutz h2,
#datenschutz h3,
#datenschutz h4 {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

#datenschutz p {
    font-size: .8em;
    /*padding: 0;*/
}

#datenschutz ul {
    max-width: 850px;
    margin: 0 auto;
    margin-bottom: 20px;
    list-style: square;
    list-style-position: inside;
}

#datenschutz li {
    text-align: left;
    font-size: .8em;
    padding-left: 20px;
}

@media all and (max-width: 770px) {

    #datenschutz h1,
    #datenschutz h2,
    #datenschutz h3,
    #datenschutz h4,
    #datenschutz p,
    #datenschutz ul {
        padding: 0 20px;
    }

}



/* ==========================================================================
   Media Queries
   ========================================================================== */



/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}