/*
Theme Name:  My Astra
Theme URL:   https://www.judithhanke.de
Description: Child Theme Customized
Author:      Judith Hanke
Author URL:  http://judithhanke.de
Template:    astra
Version:     1.0.0
*/
 
/* FONTS */ 
@font-face {
    font-family: 'Inter_Light';  
    src: url('fonts/Inter_28pt-Light.ttf') format('truetype');
    font-weight: light;
    font-style: normal;
}

@font-face {
    font-family: 'Inter_LightItalic';  
    src: url('fonts/Inter_28pt-LightItalic.ttf') format('truetype');
    font-weight: light;
    font-style: italic;
}

@font-face {
    font-family: 'Inter_Bold';  
    src: url('fonts/Inter_28pt-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto_Light';  
    src: url('fonts/RobotoMono-Light.ttf') format('truetype');
    font-weight: light;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto_Bold';  
    src: url('fonts/RobotoMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --font-size-p: 0.9em;

}



/* BASICS */ 
body {
    font-family: 'Roboto_Bold', sans-serif; 
	color:black; 
    height:100%; 
    margin: 0; 
    padding: 0; 
}

.site-title{
	font-family: 'Roboto_Bold', sans-serif!important; 
	color:black; 
    font-size:2em!important; 
}

h1{
    font-family: 'Roboto_Bold', sans-serif; 
	color:black; 
    font-size:2em; 
    margin:0em;  
}

p{
	font-family: 'Inter_Light', sans-serif; 
	color:black; 
	font-size:	var(--font-size-p);
    line-height: 1.5em;
    margin:3em 0em 0em 0em; 
}

p.kategorie{
	font-family: 'Inter_Bold', sans-serif; 
    margin:0.5em 0em 0em 0em; 
}

p.datum{
	font-family: 'Inter_Bold', sans-serif; 
    margin:1em 0em 0em 0em; 
}

p.untertitel{
	font-family: 'Inter_Bold', sans-serif; 
	color:black; 
	font-size:1.2em; 
    margin:0em; 
}

/*Überschriften im Fließtext wie p.unteritel*/
h3{
	font-family: 'Inter_Bold', sans-serif!important; 
	color:black!important; 
	font-size:1.2em!important; 
    margin:0em!important; 
}

.datum_about{
	font-family: 'Roboto_Bold', sans-serif!important; 
	color:black; 
}


/* TABELLE in about
 * Alle Zellen in der ersten Spalte */
table {
	color:black; 
	font-size:	var(--font-size-p);
    line-height: 1.5em;
    table-layout: fixed;
}

.wp-block-table td{
	border: 0; 
	padding-left: 0; 
	vertical-align: top;  
}

td:first-child {
    font-family: 'Roboto_Bold', sans-serif!important; 
	font-size:	calc(var(--font-size-p) - 0.2em);
    width: 20%;
}

/* Alle Zellen in der letzten Spalte */
td:last-child {
    font-family: 'Inter_Light', sans-serif; 
}


.beschreibung {
    margin-top: auto;  
    margin-bottom: 1em;
}


a{
    text-decoration: underline;
    color: black; 
}

a:hover{
    text-decoration: none;
}

.site-title a {
    text-decoration: none!important;
}

/* GRID ***/

/* outer grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.grid-container .grid-item {
    height: 500px;
}

.grid-item {
    height: 100%;
    border: 1px solid black;
    min-height: 0;  
    transition: border 0.3s ease;
}

/*.grid-item.category-works:hover h1{
    text-decoration: underline;
}*/


.grid-item:hover h1{
    text-decoration: none;
}

.grid-item.span-2 {
    grid-column: span 2;
    display: grid;      
    grid-template-rows: 1fr;
    min-height: 0;  
}



/* inner grid */
.inner-grid-container {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(2, 1fr);
    min-height: 0;  
}

.inner-grid-item{
    display: flex;
    flex-direction: column;
    padding: 0.5em;  
    height: 100%;
    min-height: 0; 
}


.inner-grid-item-left {
    height: 100%;
    min-height: 0;  
    overflow: hidden; 
}

.inner-grid-item-left img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    transition: transform 0.3s ease; /* Macht die Animation smooth */
}

.inner-grid-item-left img:hover {
    transform: scale(1.05); 
}


.inner-grid-item-right {
    display: flex;
    flex-direction: column;
    padding: 0.5em;  
    height: 100%;
    min-height: 0; 
}

hr{
    border-top: 1px solid black;
	margin-top: 2em; 
}


/* Responsive Design */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr!important;
    }

    .grid-item.span-2 {
        grid-column: span 1;
    }

    /* NEU: Feste Höhe aufheben, Inhalt bestimmt die Höhe */
    .grid-container .grid-item {
        height: auto;
        min-height: 400px;
    }

    /* NEU: Schriftgrößen verkleinern */
    h1 {
        font-size: 1.4em!important;
    }

    p.untertitel {
        font-size: 1em!important;
    }

    :root {
        --font-size-p: 0.95em;
    }

    /* NEU: Große Abstände verkleinern */
    p {
        margin: 1.5em 0em 0em 0em;
    }

    p.kategorie {
        margin: 1em 0em 1em 0em; /*oben rechts unten links */
    }

    p.datum {
        margin: 0.5em 0em 0em 0em;
    }

    /* NEU: Inneres Grid auf dem Handy untereinander statt nebeneinander */
    .inner-grid-container {
        grid-template-columns: 1fr;
    }
}

