/* https://piccalil.li/blog/a-modern-css-reset */
*,::after,::before{box-sizing:border-box}blockquote,body,dd,dl,figure,h1,h2,h3,h4,p{margin:0}ol[role=list],ul[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}button,input,select,textarea{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,::after,::before{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important;scroll-behavior:auto!important}}
@font-face {
  font-family: 'Geist Sans';
  src: url('../fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Sans';
  src: url('../fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Pixel';
  src: url('../fonts/GeistPixel-Square.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}


/* ***************** */

.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: rgb(246, 50, 50);
}

/* ***************** */

flex,.flex {
    display: flex
}

.align-center {
    align-items: center
}

.align-baseline {
    align-items: baseline
}

.flex-grow {
    flex-grow: 1
}

.flex-shrink {
    flex-shrink: 1
}

/* ***************** */

hr {
    width: 100%;
    /* position: fixed; */
    border: 0;
    height: 1px;
    margin: 1.5em 0;
    background: rgb(255, 255, 255);
}

/* ***************** */

header {
    /* width: 100%;
    position: fixed; */
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    /* color: var(--secondary-color);
    background-color: var(--primary-color); */

}

/* ***************** */

footer {
    /* width: 100%; */
    bottom: 0;
    left: 0;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border-top: #1C1B1A;
    border-top-style: solid;
    margin-top: 1rem;
    text-align: center;
}

/* ***************** */

.container {
	/* max-width: 1460px; */
	margin: 0 auto;
	padding: 20px;
}

/* ***************** */

article .wide {
    padding: 1.5em 0;
    max-width: min(100vw,var(--wrap-wide));
    width: min(100vw,var(--wrap-wide));
    margin-left: calc((min(100vw,var(--wrap-wide)) - 100%)/-2)
}

/* Contact Form box */

.box_form {
  padding: 20px;
  background-color: #f2dede;
  border: 1px solid rgba(#34495e, 0.25);
  color: #b94b45;
  border-radius: 3px;
  line-height:30px;
  padding: 12px;
  color: rgba(255, 255, 255, .9);
  box-shadow: 0px 10px 50px rgba(0,0,0,.6); 
  background:#34495e;
  transition: opacity 0.6s;
  margin-bottom: 15px;
}

/* from kirby css */

.box {
  padding: 1.0rem;

  border: gray;
  border-style: dotted;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }
}

video,
.img {
	position: relative;
	display: block;
	--w: 1;
	--h: 1;
	aspect-ratio: var(--w) / var(--h);
	border-radius: var(--rounded);
}
.img img,
.video iframe {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: var(--rounded);
}
.img[data-contain] img {
	object-fit: contain;
}
.img-caption,
.video-caption {
	color: gray;
	padding-top: .75rem;
	line-height: 1.5em;
}

/* ***************** */

:root {
  /* 
    Default Color Schemes (Default is dark mode)
    Primary = Background, Secondary = Text color.

    Other options (From Flexoki):
    Default Light Mode: #F2F0E5 / #1C1B1A;
    Dark Mode Magenta: #24131D / #FEE4E5
    Light Mode Magenta: #F6E6E2 / #24131D
    Cyan Light Mode: #DDF1E4 / #101F1D
    Cyan Dark Mode: #101F1D / #DDF1E4
  */
	color-scheme: light dark;
  --primary-color: #F2F0E5 ;
  --secondary-color: #1C1B1A;

  /* Font Family. Default is monospace. */
  --font-family: 'Geist Pixel', ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace';
  --font-family-sans: 'Geist Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  
  /*--font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;*/
  
  --font-weight: 400;
  --flow-space: 1rem; 

  --font-size: clamp(16px, 2vw, 19px);
  --max-site-width: 790px;
}
 
/* Dark theme styles */
[data-theme="dark"] 
body {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  }
.menu_active {
  color: inherit;
  font-weight: bold;
  }
button {
	font: inherit;
	background: none;
	border: 0;
  color: var(--primary-color);
	cursor: pointer;
}


/*****************************************************
General setupb by 
******************************************************/

@view-transition {
  navigation: auto;
}
::view-transition-group(*) {
  animation-duration: 0.3s;
}

::selection {
  background: var(--secondary-color);
  color: var(--primary-color);
  text-shadow: none;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  font-size: var(--font-size);
  max-width: var(--max-site-width);
  margin: 3rem auto;
  padding-inline: 1rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  -webkit-font-smoothing: antialiased;
}

 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: none;
}

p {
  line-height: 1.5;
}

li + li {
  padding-top: .5rem;
}

.blog:not(.continuous) ul, .home ul {
  list-style: none;
  padding-left: 0
}

  li > ul, li > ol  {
    padding-top: .5rem;
    padding-left: 20px;
  }

ul > li + li, 
ul > li > ul,
ol > li + li, 
ol > li > ol {
  padding-top: .3rem;
}

/* img {
  width: 100%;
} */

hr:before {
  margin-top: 3rem;
}

figcaption {
  margin-top: 0.5rem;
}

.home > * + *:not(p) {
  margin-block-start: 4rem;
}

.home h1, .home h2, .home h3, .home h4 {
  font-size: inherit;
  margin: 0;
  padding: 0;
}

.home h1, .home a h3 { 
  font-weight: inherit; 
  margin-top: .33rem;
}

h1 { font-size: 120%; line-height: 1.15 }
h2 { font-size: 100%; line-height: 1.15 }
h3 { font-size: 90%; }
h4, h5, h6 { font-size: 70%; }

h2, h3, h4, h5, h6 { 
  padding-top: 1rem;
}

.post h1, .defaultPage h1 .blog h1{
  margin-bottom: 2rem;

}

.post img, .defaultPage img {
  margin-bottom: .5rem;
}

.post p, .post ul, .post ol {
    font-family: var(--font-family-sans);
}

.continuous .post + .post {
    padding-top: 16rem;
}

.continuous article:first-of-type {
    margin-top: 4rem
}

.continuous article .flow>h2:first-of-type {
    padding-top:0;
    font-size: 200%;
}

.continuous article .flow>h2 {
    font-size: 150%;
}

.continuous article .flow>h3 {
    font-size: 125%;
}

.continuous article h2 {
    font-size: var(--font-size);
}

.continuous .meta-info {
    margin-bottom: -.5rem;
    font-size: 75%;
}
.continuous .meta-info  svg {
    width: 16px;
    height: 16px;
}

.flow > * + * {
  margin-block-start: var(--flow-space, 1em);
}

pre { 
  background: var(--secondary-color) !important;  
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
}

code {
  padding: 0.25rem 0.5rem;
  margin-inline: 0;
  font-size: 75%;
  background: var(--secondary-color) !important;
  color: var(--primary-color);
  display: inline-block;
  margin: 0
}

pre code {
  font-size: 75% !important;
  overflow-x:scroll;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;

  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;

  width:100%;

  line-height: 1.5 !important;
}

body a:focus-visible {
    outline: 2px dotted rebeccapurple;
    outline-offset: 4px;
}

blockquote {
	font-size: 1.25rem;
	line-height: 1.5em;
	border-left: 4px solid currentColor;
	padding-left: 1rem;
  margin: 1.5em 0;

}

.breadcrumbs {
  font-size: 100%;
  /* opacity: .5; */
  margin-bottom: .5rem;
  padding: .5rem;
}

.breadcrumbs a.current {
  text-decoration: none;
}

.meta-info {
  margin-top: 3rem;
}

.meta-info > * + * {
  display: block;
  margin-block-start: .5rem;
}

.meta-info >* {
    display: flex;
    align-items: center;
    gap: .5rem
}

.meta-info svg {
    width: 24px;
    height: 24px;
    margin-top:-2px
}

.flex-justify {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-justified > * { margin:0 }

.rss {
  font-size: 75%;
}

.highlightedProjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlightedProjects h2 {
  grid-column: 1 / -1;
}

.highlightedProject h3 {
  padding: 0;
}

/******************************************
Eingebauter Code
******************************************/


/* setzt Phosphor-Icons auf Baseline */

.ph {
  display: inline-flex;
  align-items: center;
  vertical-align: middle; /* oder baseline */
  line-height: 1;
}     

/* Alert-Box https://www.w3schools.com */


.alert {
  padding: 20px;
  background-color: #f2dede;
  border: 1px solid rgba(#34495e, 0.25);
  color: #b94b45;
  border-radius: 3px;
  line-height:30px;
  padding: 12px;
  color: rgba(255, 255, 255, .9);
  box-shadow: 0px 10px 50px rgba(0,0,0,.6); 
  background:#34495e;
  transition: opacity 0.6s;
  margin-bottom: 15px;
}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

/* Ribbon https://www.w3schools.com */

.btn {
  border: none;
  border-radius: 5px;
  padding:  6px;
  font-size: 16px;
  position: relative;
  color: rgba(255, 255, 255, .9);
  box-shadow: 0px 10px 50px rgba(0,0,0,.6); 
  background:#34495e;
}

.ribbon {
  width: 70px;
  font-size: 14px;
  padding: 4px;
  position: absolute;
  right: -25px;
  top: -12px;
  text-align: center;
  border-radius: 25px;
  transform: rotate(20deg);
  background-color: #ff9800;
  color: white;
}


/* Sticky Footer by https://codepen.io/jkinley/pen/vLddpe */

body {
  display: flex; /* Make the body element a flex container */
  flex-direction: column; /* Change the flexbox axis from the default which is row*/
  height: 100%; /* I needed this */
  min-height: 100vh;  /* and this to make it work right */
}

main {
  flex: 1 auto;
  padding: 2.6em 0;
} /* Make the main content area grow to take up leftover space. 'auto' was added as it apparently makes it compatible with IE 10.*/


/******************************************
 nach/von getirby.com
******************************************/

/* Theme toggle button styles */

.theme-toggle {
	margin-left: 1.0rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.theme-toggle .sun-icon {
	display: none;
}
.theme-toggle .moon-icon {
	display: block;
}
[data-theme="dark"] .theme-toggle .sun-icon {
	display: block;
}
[data-theme="dark"] .theme-toggle .moon-icon {
	display: none;
}

button {
	font: inherit;
	background: none;
	border: 0;
	color: currentColor;
	cursor: pointer;
  
}

.logo {
  gap: 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

