/* ==========================================================
   Herbert Wulf Website 2.0
   layout.css
   Layout System
   ========================================================== */


/* ==========================================================
   CONTAINER
   ========================================================== */

.container {

    width: min(calc(100% - 3rem), var(--container-width));
    margin: 0 auto;

}


/* ==========================================================
   SECTIONS
   ========================================================== */

.section {

    padding: var(--space-xxl) 0;

}

.section-sm {

    padding: var(--space-xl) 0;

}

.section-lg {

    padding: 8rem 0;

}


/* ==========================================================
   GRID SYSTEM
   ========================================================== */

.grid {

    display: grid;
    gap: var(--space-lg);

}

.grid-2 {

    grid-template-columns: repeat(2, 1fr);

}

.grid-3 {

    grid-template-columns: repeat(3, 1fr);

}

.grid-4 {

    grid-template-columns: repeat(4, 1fr);

}


/* ==========================================================
   FLEX LAYOUT
   ========================================================== */

.flex {

    display: flex;

}

.flex-center {

    display: flex;
    justify-content: center;
    align-items: center;

}

.flex-between {

    display: flex;
    justify-content: space-between;
    align-items: center;

}

.flex-column {

    display: flex;
    flex-direction: column;

}


/* ==========================================================
   CLUSTER
   Small horizontal groups
   ========================================================== */

.cluster {

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;

}


/* ==========================================================
   STACK
   Vertical rhythm
   ========================================================== */

.stack > * + * {

    margin-top: var(--space-md);

}


/* ==========================================================
   HERO
   ========================================================== */

.hero {

    padding: 8rem 0 6rem;

}

.hero-small {

    padding: 6rem 0 4rem;

}

.hero-center {

    max-width: 760px;
    margin: 0 auto;
    text-align: center;

}


/* ==========================================================
   HERO GRID
   ========================================================== */

.hero-grid {

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: 5rem;

    align-items: center;

}


/* ==========================================================
   TWO COLUMN LAYOUT
   ========================================================== */

.two-column {

    display: grid;

    grid-template-columns: 420px 1fr;

    gap: 5rem;

    align-items: center;

}


/* ==========================================================
   CONTENT WIDTH
   ========================================================== */

.content {

    max-width: var(--content-width);

}

.content-center {

    max-width: var(--content-width);

    margin: 0 auto;

}


/* ==========================================================
   SECTION HEADER
   ========================================================== */

.section-header {

    margin-bottom: var(--space-xl);

}

.section-header.center {

    text-align: center;

}


/* ==========================================================
   IMAGE LAYOUT
   ========================================================== */

.hero-image,
.portrait-column {

    display: flex;

    justify-content: center;

    align-items: center;

}

.hero-image img,
.portrait-column img {

    width: 100%;
    height: auto;

}


/* ==========================================================
   FORM LAYOUT
   ========================================================== */

.form-wrapper {

    max-width: 760px;

    margin: 0 auto;

}


/* ==========================================================
   FOOTER LAYOUT
   ========================================================== */

.footer-inner {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 4rem;

}

.footer-bottom {

    margin-top: var(--space-xl);

    padding-top: var(--space-lg);

}


/* ==========================================================
   SPACERS
   ========================================================== */

.spacer-xs {

    height: var(--space-xs);

}

.spacer-sm {

    height: var(--space-sm);

}

.spacer-md {

    height: var(--space-md);

}

.spacer-lg {

    height: var(--space-lg);

}

.spacer-xl {

    height: var(--space-xl);

}


/* ==========================================================
   DIVIDERS
   ========================================================== */

.divider {

    width: 100%;

    height: 1px;

}


/* ==========================================================
   FULL WIDTH
   ========================================================== */

.full-width {

    width: 100%;

}


/* ==========================================================
   MAX WIDTH HELPERS
   ========================================================== */

.max-600 {

    max-width: 600px;

}

.max-760 {

    max-width: 760px;

}

.max-900 {

    max-width: 900px;

}

.max-1180 {

    max-width: var(--container-width);

}
/* ======================================================
   Research / Publications
====================================================== */

.research-publications{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:6rem;

    align-items:start;

}

.research-column{

    padding-right:2rem;

}

.publications-column{

    position:relative;

    padding-left:4rem;

}

/* Vertikale Trennlinie */

.publications-column::before{

    content:"";

    position:absolute;

    left:-3rem;

    top:5rem;

    bottom:0;

    width:2px;

    background:linear-gradient(

        to bottom,

        transparent,

        var(--color-accent-gold),

        var(--color-accent-gold-light),

        var(--color-accent-gold),

        transparent

    );

}