html {
    scroll-behavior: smooth;
}

/* Quick navigation menu (top row) */
.card-row {
    display: flex;
    gap: 1.5rem; /* space BETWEEN the cards */
    margin-bottom: 2rem;
}

.card-link {
    flex: 1;                  /* each LINK now takes an equal share of the row */
    text-decoration: none;    /* kill the underline links get by default   */
    color: inherit;           /* stop the text turning link-blue            */
}

.card {
    /* Add shadows to create the "card" effect */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px; /* 5px rounded corners */
    padding: 1.5rem; /* breathing room INSIDE each card */
    text-align: center;
    height: 100%;             /* fill the link's height so all cards match */
}

/* On mouse-over, add a deeper shadow */
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* Core Services cards (/case studies) */
.example-card  {
    display: flex;               /* text block and image sit side by side */
    align-items: center;         /* vertically center them against each other */
    gap: 2rem;                   /* space between text and image */
    padding: 1.5rem;
    margin-bottom: 2rem;         /* space between stacked example cards */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px; /* 5px rounded corners */
}

.example-card-text {
    flex: 1;
}

.example-card img {
    width: 40%;                  /* cap the image so it doesn't dominate */
    height: auto;                /* keep its aspect ratio */
    border-radius: 5px;
}

.example-card-text h2 {
    font-size: 1.75rem;        /* ~28px — clear top of the hierarchy */
    line-height: 1.2;
    font-weight: 700;
    color: var(--pico-color); 
    letter-spacing: -0.01em;   /* subtle tightening reads better at large sizes */
    margin: 0 0 0.35rem;       /* sits close to the tagline below it */
}

.example-card-text h3 {
    font-size: 1.15rem;        /* clearly below the h2 */
    line-height: 1.35;
    font-weight: 500;          /* lighter → reads as a subtitle, not a heading */
    color: var(--pico-muted-color); 
    margin: 0 0 1rem;
}

.example-card-text p {
    font-size: 1rem;
    line-height: 1.65;         /* generous leading for running text */
    color: var(--pico-color); 
    max-width: 62ch;           /* caps line length — the biggest readability win */
    margin: 0 0 1rem;
}

.example-card-text p:last-child {
    margin-bottom: 0;          /* no trailing gap at the end of the text block */
}

/* header row */
header {
    display: flex;
    justify-content: space-between;   /* one group left, one group right */
    align-items: center;              /* vertically center everything */
}

.logo-group {
    display: flex;                    /* logo and name sit side by side */
    align-items: center;              /* line them up vertically */
    gap: 0.75rem;                     /* small space between logo and name */
}

.logo-group img {
    height: 40px;        /* SVGs render at their natural size — cap it */
    width: auto;         /* keep the aspect ratio */
}

.logo-group span {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Contact card */
.contact-card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px; /* 5px rounded corners */ 
    text-align: center;
    padding: 1.5rem;
}

.centered {
    text-align: center;
}


@media (max-width: 700px) {
    .card-row,
    .example-card {
        flex-direction: column;
    }
    .example-card img {
        width: 100%;
    }
}

/* Formspree */
/* Honeypot – für Menschen unsichtbar, für Bots sichtbar */
.hp {
    position: absolute !important;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
  }
  
  .form-error:not(:empty) {
    color: var(--pico-del-color, #b3261e);
    display: block;
    margin-bottom: var(--pico-spacing, 1rem);
  }
  
  .form-success:not(:empty) {
    color: var(--pico-ins-color, #1a7f37);
    border: 1px solid currentColor;
    border-radius: var(--pico-border-radius, 0.25rem);
    padding: 1rem;
    margin-bottom: 1rem;
  }