/* Main Stylesheet for Maria Minimal Theme */

@import url('fonts.css'); /* generated with https://transfonter.org */


:root {
    --portrait-margin-top: 4rem;
    --portrait-margin-right: 4rem;
    --portrait-rel-size: min(30vw, 380px);
    /* NOTE Very sensitive, careful! Does not affect mobile */

    /* Colors */
    --c-primary: #161515;
    --c-secondary: #454545;
    --c-background: #faf6f2;

    --c-accent1: #333;
    --c-accent2: #c33;
    --c-accent3: #3A2B32;

    --c-pastel1: hsl(195, 42%, 83%);
    --c-pastel2: #f99;

    /* NOTE Link colour is not defined here, somehow not possible to use it… */
}

body {
    font-family: "Montserrat", "Helvetica Neue", "Helvetica", sans-serif;
    color: var(--c-primary);

    background-color: var(--c-background);

    padding: 0;
    margin: 0;
}

#content {
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4 {
    font-weight: normal;
}
h1 {
    font-size: 2.8rem;
}
h2 {
    font-size: 1.6rem;
    font-weight: 300;
}
h3 {
    font-size: 1.6rem;
}

p, li {
	line-height: 1.35em;
}

li {
    padding-bottom: 0.8rem;
}


a, a:link {
    color: #9B5478;
}
a:visited {
    color: #9B5478;
}
a:hover {
    text-decoration: none;
}


/* -- Splash --------------------------------------------------------------- */


/* .. Name ................................................................. */

#name {
    float: left;
    width: calc(100% - var(--portait-rel-size));
    padding: 4vw 0 0 4vw;

    z-index: 10;
}
#name h1 {  /* The name itself */
    width: calc(100% - var(--portait-rel-size));
    margin: .1rem 0 .1rem 0;
}

#name h2 {  /* Subheading */
    width: calc(100% - var(--portait-rel-size));
    margin: .2rem 0 .1rem 0;
    padding-bottom: min(12vw, 12vh); 
}

/* .. Portrait ............................................................. */

#portrait {
    display: block;
    float: right;

    width: var(--portrait-rel-size);    
    height: var(--portrait-rel-size);
    /* min-width: 30%; */

    margin-bottom: auto;
    margin-top: var(--portrait-margin-top);
    margin-right: var(--portrait-margin-right);
    margin-left: 1rem;
}
#portrait img {
    width: 100%;
    height: auto;
    z-index: -1;

    filter: brightness(120%);
}
#portrait:after {
    content: "";
    display: block;
    clear: both;
}


/* -- About ---------------------------------------------------------------- */

#about {
    clear: left;
    display: block;

    margin-top: 2rem;
	padding-top: 4rem;
    padding-bottom: 2rem;
}

#about .section {
    padding-top: 0;
    padding-bottom: 2vw;

    padding-left: 4vw;
    padding-right:
        calc(var(--portrait-rel-size) + var(--portrait-margin-right) + 4vw);
}

#about .section .section-header {  /* headers for sections */ 
    padding-top: 2rem;
    padding-bottom: 3rem;

    max-width: 1200px;
    margin: 0 auto 0 auto;
}
#about .section .section-text {
    /* column-count: 1;
    column-gap: 4vw; */

    max-width: 1200px;
    margin: 0 auto 0 auto;
}

#about .section p {  /* paragraphs within sections */
    page-break-inside: avoid;
    break-inside: avoid;
    display: block;
    
    margin: 0;
    padding-bottom: 1.2rem;
}

#about .section h1.section-header {  /* The name itself */
    margin: .1rem 0 .1rem 0;
	padding-top: 0.5;
	padding-bottom: 0;
}

#about .section h2.section-header {  /* Subheading */
    margin: .2rem 0 .1rem 0;
	padding-top: 0;
	padding-bottom: 1;
}

#about .section h3.section-header {  /* Sub-subheading */

}

/* -- Individual Sections -------------------------------------------------- */
/* ... and specific adjustments for only these sections */

#about .section-cv {
	
}

#about .section-cv h3.section-header {

}

#about .section-mhfa {
    background-color: var(--c-accent3);
    color: var(--c-background);
}

#about .section-links {
    padding-top: 2rem; /* because of missing section header */
}


/* -- Footer --------------------------------------------------------------- */

#footer {
    
}


/* ========================================================================= *//* -- Separate Seiten ------------------------------------------------------ */
/* ... z.B. Impressum, Datenschutz ... */

#single {
    max-width: 1200px;
    margin: 0 auto 0 auto;
    padding: 2rem;
}


/* ========================================================================= */
/* -- Screen Size adjustments ---------------------------------------------- */

@media screen and (min-width: 1440px) {
    
    
}

@media screen and (max-width: 1200px) {
    :root {
        --portrait-margin-top: 1rem;
        --portrait-margin-right: 1rem;
    }
    #portrait {

    }
    #about {
        margin-top: 0;
        padding-top: 1rem;
    }
}


@media screen and (max-width: 800px) {
    #about .section .section-text {
        /* column-count: 1; */
    }
}


/* .. Portrait Mode on small devices ....................................... */
@media screen and (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    #name {
        float: none;
        margin: .8rem auto 0 auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    #name h2 {

    }
    #portrait {
        float: none;
        display: block;
        margin: 1.5rem auto 1rem auto;
        padding: 0;
        width: 60%;
        height: 60%;
    }
    #about {
        padding-top: 0;
    }
    #about .section {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

/* ... and on very small devices */
@media screen and (max-width: 300px) {
    :root {
        font-size: 5vw;
    }
}


/* ... and on very low-height screens */
@media screen and (max-height: 400px) {
    
}
