:root {
  /* Farben */
  --color-blue: #2980b9;
  --color-orange: #df9e25;
  --color-gray: #605b56;
  --color-light-gray: #eceeef;
  --color-off-white: #f7f7f7;
  --color-black: #050505;

  /* Fonts */
  --font-heading: 'Red Hat Display', sans-serif;
  --font-body: 'Padauk', sans-serif;

   --fh1:clamp(2rem, 2.88vw + 1.255rem, 4.063rem);
    --fh2:clamp(1.75rem, 2.52vw + 1.09rem, 3.5rem);
    --fh3:clamp(1.5rem, 2.16vw + 0.925rem, 2.938rem);
    --fh4:clamp(1.25rem, 1.8vw + 0.76rem, 2.375rem);
    --fh5:clamp(1rem, 1.44vw + 0.595rem, 1.813rem);
    --fh6:clamp(0.875rem, 1.08vw + 0.43rem, 1.25rem);
    --fhp:clamp(1rem, 1vw + 0.5rem, 1.125rem);
}

@font-face {
  font-family: 'Padauk';
  src: url('/styles/fonts/padauk-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Padauk';
  src: url('/styles/fonts/padauk-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Red Hat Display';
  src: url('/styles/fonts/red-hat-display-variable.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
html {
  scroll-behavior: smooth;
}



body{margin:0px; font-family: var(--font-body); color:var(--color-gray); font-weight:400;}
img{max-width:100%;}
.main-image{ width:fit-content; overflow: hidden;}

h1 {
  font-size: clamp(2rem, 2.88vw + 1.255rem, 4.063rem);
  line-height: clamp(3rem, 3.185vw + 2.176rem, 5.281rem);
}

h2 {
  font-size: clamp(1.75rem, 2.52vw + 1.09rem, 3.5rem);
  line-height: clamp(2.625rem, 2.79vw + 1.91rem, 4.563rem);
}

h3 {
  font-size: clamp(1.5rem, 2.16vw + 0.925rem, 2.938rem);
  line-height: clamp(2.25rem, 2.395vw + 1.644rem, 3.844rem);
}

h4 {
  font-size: clamp(1.25rem, 1.8vw + 0.76rem, 2.375rem);
  line-height: clamp(1.875rem, 2vw + 1.38rem, 3.125rem);
}

h5 {
  font-size: clamp(1rem, 1.44vw + 0.595rem, 1.813rem);
  line-height: clamp(1.5rem, 1.605vw + 1.116rem, 2.406rem);
}

h6 {
  font-size: clamp(0.875rem, 1.08vw + 0.43rem, 1.25rem);
  line-height: clamp(1.3125rem, 1.21vw + 0.852rem, 1.687rem);
}

p, div {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  line-height: clamp(1.5rem, 1.2vw + 1rem, 1.875rem);
}

h1,h2,h3,h4,h5,h6{
    font-family:var(--font-heading);
}



.shadow{box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;}
.drop-shadow {
  -webkit-filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.35));
  filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.35));
}




.margin-top-10{margin-top:10rem;}
.margin-top-5{margin-top:5rem;}
.margin-top-bottom-5{
    margin:5rem 0;
}
.basec{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left:20px;
    padding-right:20px;
}

.basec h1{
    font-size: var(--fh5);
    text-align:center;
    color:var(--color-blue)
}

.basec h2{
    font-size: var(--fh2);
    color:var(--color-blue)
}

.backgray{background-color: var(--color-light-gray);}
 /* header, footer {
  background-color: var(--color-light-gray);
  padding: 1rem;
  text-align: center;
}
*/ 
/* navigation */


/* Basis-Stile */
header {
  background-color: var(--color-off-white);
  text-align: center;
  padding: 0.4rem 0;
  position: relative;
}

/* Burger Button */
.burger {
  display: none;
  background: var(--color-off-white);
  color:var(--color-black);
  border: none;
  font-size: 2rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1001;
  cursor: pointer;
}

/* Navigation Desktop */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--color-gray);
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  text-transform: capitalize;
  font-family: var(--font-heading);
}

/* Mobile: unter 551px */
@media (max-width: 550px) {
    header{padding:0px;}
  .burger {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    background-color: var(--color-off-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    justify-content: flex-start;
    gap: 0rem;
  }

  .main-nav.open {
    transform: translateX(0%);
  }

  .main-nav a {
    margin: 1rem 0;
    font-size: 20px;
  }
}

a.finanzCTA{
  background-color:#2970ee;
  color:white;
  padding:12px 12px;
  border-radius:12px;
}


/* image row*/
.image-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 2000px;
  background-color:var(--color-blue);
  margin:auto;
}

.image-box {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-box.right img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.image-box.left {
    margin-right:25px;
    justify-content: flex-end;
}

.image-box.left img {
  width: 100%;
  height: auto;
  max-width: 500px;
  object-fit: cover;
}

@media (max-width: 625px) {
.image-box.left {
    margin-right:0px;
    justify-content: center;
}
}


/* Image grid with Links */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right:auto;
  padding: 0 1rem;
}

.grid-item {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}


@media (max-width: 1100px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 600px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}

.grid-item-center{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-item-link{
    background-color: #050505;
    padding: 15px;
    color: #f7f7f7;
    transition: all .4s;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: var(--fh5);
    max-width: 100%;
    text-align: center;
}
.grid-item-link:hover{
    background-color:var(--color-blue);
    color:var(--color-black);
}


/* About abschnitt */
.about-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap; 
}

.about-row-2 {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap; 
}



.about-image{
    position:relative;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* Responsive: unter 993px -> stacked */
@media (max-width: 992px) {
  .about-row, .about-row-2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap:0;
    margin-top:0;
  }

  .about-text {
    
    width:100%;
  }
}



.float-left{
    width: 150px;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.float-right{
    width: 150px;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

@media (max-width: 450px) {

.float-left{
    width: 50px;
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.float-right{
    width: 50px;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

}


/* Helpful */
.helpful-links {
  display: flex; 
  flex-wrap: wrap;
  gap:1rem;
    justify-content: space-between;
}

.help-box {
  
  background-color: var(--color-gray);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
}

.secondary-link {
  text-decoration: none;
  color: var(--color-light-gray);
  font-family: var(--font-heading);
  font-size: var(--fh5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.secondary-link .icon svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

/* Responsive Verhalten */
@media (max-width: 1100px) {
  .helpful-links {
    flex-direction: column;
    align-items: center;
  }

  .help-box {
    padding:0.8rem;
    width: auto;
    max-width: 90%;
    width:100%;
  }
}


/* footer */
.back-blue{background-color:var(--color-blue);}
.footer-logo{width:200px;}
.footer-text{text-align: right; color:var(--color-off-white);}
.about-row.back-blue{
    align-items: center!important;
}

.grid-2 {
  display: grid;
  grid-template-columns: 40% 60%;
  column-gap: 20px;
}

@media screen and (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    row-gap: 20px; 
  }
  .footer-text{text-align: center;}
}

