* { font-family: "Verdana","Calibri", Arial, sans-serif; 
   line-height: 1.4;
}

/* Style for headers h1 */
h1 {background: yellow;
    text-align: center;
    color: black;
    border-radius: 10px;
    box-shadow: 5px 5px 10px grey;
    text-shadow: 1px 1px 1px grey;
    margin-bottom: 35px;
}

/* Style for headers h3 */
h3 {background: #f7f77d;
    margin-top: 30px;
    text-align: center;
    color: black;
    border-radius: 10px;
    box-shadow: 5px 5px 10px grey;
    text-shadow: 1px 1px 1px grey;
    margin-bottom: 15px;
    width: 30%;
}

/* Style for headers h3 blue left */
h3bl {
    background: rgb(1, 1, 129);
    margin-top: 30px;
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: auto;
    
    text-align: center;
    color: white;
    border-radius: 10px;
    box-shadow: 5px 5px 10px grey;
    text-shadow: 1px 1px 1px grey;
    font-weight: bold;
    display: block; 
    width: 30%;
    padding: 10px 0;
}

/* Style for headers h3 red left */
h3rl {
    background: rgb(152, 2, 2);
    margin-top: 30px;
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: auto;
    
    text-align: center;
    color: white;
    border-radius: 10px;
    box-shadow: 5px 5px 10px grey;
    text-shadow: 1px 1px 1px grey;
    font-weight: bold;
    display: block; 
    width: 30%;
    padding: 10px 0;
}

/* Style for headers h4 */
h4 {margin-bottom: 1px;
    width: 100%;
}

/* Style für pictures in text line */
img.inline-img {
    display: inline;
    float: none;
    width: auto;
    height: 1em;         /* picture with same height as text */
    vertical-align: middle;
    padding: 0;
    margin: 0 5px;       /* small distance to text */
}

.picture-float-right-60-width
{
    display: block;
    float: right;
    padding: 1%;
    margin-top: 30px;
    margin-left: 10px;
    margin-right: 10px;
    width: 60%;
}

.picture-float-right-40-width
{
    display: block;
    float: right;
    padding: 1%;
    margin-left: 10px;
    margin-right: 10px;
    width: 40%;
}

/* Style for block-images 25% float left */
.picture-float-left-25-width
{
    display: block;
    float: left;
    padding: 1%;
    margin-left: 10px;
    margin-right: 10px;
    width: 25%;
}

/* Style for block-images 60% float right */
img {
    display: block;
    float: right;
    padding: 1%;
    margin-left: 10px;
    margin-right: 10px;
    width: 60%;
}

/* Container for two-column view */
.location-container {
  display: grid !important;
  grid-template-columns: 2fr 1fr; /* The text gets twice as much space (2 parts) as the QR code (1 part) */
  gap: 30px;                     /* Distance between text and QR code */
  align-items: center;           /* Centers text and QR code vertically relative to each other */
  margin-top: 15px;
  max-width: 800px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 30px;
}

/* Linke Spalte (Text) */
.location-text p {
  margin: 0;                     /* Deletes disturbing standard margins */
}

/* Rechte Spalte (QR-Code-Box) */
.location-qrcode {
  display: flex;
  justify-content: center;       /* Centers the QR code in its column */
}

/* The actual QR code image */
.location-qrcode img {
  width: 100%;
  max-width: 150px;              /* Limits the size of the QR code, so it looks elegant */
  aspect-ratio: 1 / 1;           /* Forces a perfect square, even if the original image isn't quite that */
  object-fit: contain;           /* Prevents distortion of the QR code */
  border: 1px solid #dddddd;     /* Optional: A subtle border around the QR code */
  padding: 5px;                  /* Optional: Some white space inside the border */
  background-color: blue;
}

/* displays on smartphones: On smartphones under each other */
@media (max-width: 768px) {
  .location-container {
    grid-template-columns: 1fr !important; /* Switches to a single column on smartphones */
    gap: 20px;
    text-align: center;                  /* Centers the text on the smartphone */
  }
}

/* container for all 4 Person */
.team-grid {
  display: grid !important; 
  grid-template-columns: repeat(4, 1fr); /* 4 columns side by side */
  gap: 20px;              /* harmonic distance between columns */
  margin-top: 30px;
  margin-bottom: 30px;
  
  max-width: 800px;       
  width: 100%;  
     /* centers the whole box perfectly in the content area of the website */
  margin-left: auto !important;
  margin-right: auto !important;       
}

/* the individual person box */
.team-member {
  text-align: center; 
}

/* Image Styling */
.team-member img {
  width: 100%;            
  max-width: 150px;       /* pictures slightly enlarged, matching the 800px box */
  height: auto;
  border-radius: 50%;     /* Makes the images circular. Delete for square images */
  object-fit: cover;
  border: 2px solid #dddddd;
  margin-bottom: 10px;
}

/* to react for small screens: On smartphones and smaller screens */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 in a row on tablets or bigger mobile devices */
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr !important; /* completely under each other on narrow phones */
  }
}

/* Container for the flowing text (full page width) */
.full-width-container {
  max-width: 100%;       /* Uses the full width */
  width: 100%;
  margin: 0 auto;
  padding: 20px 10px;    /* Optional: A small side margin for readability */
}

/* Style for slideshow */
.slideshow-container {
    width: 60%;
    height: 450px; /* Adapt height of slideshow */
    float: right;
    margin-left: 10px;
    margin-right: 25px;
    padding: 1%;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}
/* Common properties for all slides */
.slide {
    position: absolute;
    width: 80%;
    height: 92%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 25s infinite; /* 25 seconds total duration */
}

/* 5 picture sources and their animation delays */
.slide1 { background-image: url('images/pic6.jpg'); animation-delay: 0s; }
.slide2 { background-image: url('images/pic2.jpg'); animation-delay: 5s; }
.slide3 { background-image: url('images/pic3.jpg'); animation-delay: 10s; }
.slide4 { background-image: url('images/pic4.jpg'); animation-delay: 15s; }
.slide5 { background-image: url('images/pic5.jpg'); animation-delay: 20s; }

/* Animation -Logic */
@keyframes slideAnimation {
    0% { opacity: 0; }
    4% { opacity: 1; }   /* after 1 second fully visible */
    20% { opacity: 1; }  /* remains visible until second 5 */
    24% { opacity: 0; }  /* fades out */
    100% { opacity: 0; }
}

/* Style for text under headline */
.hero-text {
    font-size: 2.0em;
    font-weight: bold;
    text-align: center;
    color: blueviolet; 
    margin-bottom: 25px;
}
.padding-left10 {
    padding-left: 10px;
}

/* Layout for 2 x 2 button grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 600px;
    margin: 40px auto 0 auto;
}

/* grid-layout */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* automatic grid */
  gap: 15px; /* Distance between the images */
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Style for individual images */
.grid-item img {
  width: 100%;
  height: 180px;
  object-fit: cover; /* previews cut to perfect square, without distorting */
  border-radius: 8px; /* Slightly rounded corners for modern look */
  transition: transform 0.2s ease; /* Gentle effect when hovering over the image */
}

/* Small animation effect when hovering over the image (Hover) */
.grid-item img:hover {
  transform: scale(1.05); /* Image enlarges slightly */
  cursor: pointer;
}

.donation-box {
  background-color: #ffffff;      /* white background for the box */
  border: 2px solid #dddddd;      /* a subtle, light gray border */
  border-radius: 8px;             /* rounded corners */
  padding: 15px 20px;             /* inner spacing so the text doesn't stick to the edges */
  margin-bottom: 20px;            /* space below the box to the next element */
  
  /* grey shadow (box-shadow) */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 

/* reduces the full width and makes it fit the content */
  display: inline-block;
  width: auto;
  min-width: 320px;               /* cares for a nice minimum width on smartphones */
}

.donation-box h5 {
    margin-top: 0;                  
  margin-bottom: 12px;            /* small distance below the heading */
  color: #002244;                 /* nice, readable dark blue */
  font-size: 1.3rem;              /* larger font size (about 21 pixels) */
  font-weight: 700;               /* extra bold */
}

.donation-box ul {
  margin-bottom: 0;               /* removes unnecessary spacing at the bottom of the box */
  padding-left: 20px;             /* standard indentation for bullet points */
}

/* Project tiles: Project tiles: The extended grid system for the tiles utilizing the full width */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Link for individual project tiles */
.project-card {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-effekt: Tile lifts up slightly */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Picture area: square and rounded at the top */
.project-thumbnail {
    width: 100%;
    height: 210px; /* fix heightFeste Höhe passend zur Kachelbreite auf PCs, um ein perfektes Quadrat zu erzwingen */
    object-fit: cover; /* centered and cut the picture without distortion */
    display: block;
    border-top-left-radius: 12px; /* rounded corner at the top left */
    border-top-right-radius: 12px; /* rounded corner at the top right */
}

/* The small frame under the image */
.project-title-box {
    padding: 15px 12px;
    text-align: center;
    font-size: 13px !important;
    font-weight: bold;
    border-top: 1px solid #eee;
    background-color: #fafafa;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Change of color for the title on hover */
.project-card:hover .project-title-box {
    color: #d9534f;
}

/* adaptation for responsive design: Responsive for mobile devices */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}


/* Container for the FAQs */
.faq-accordion-container {
  max-width: 800px; /* Limit the width for better readability on large screens */
  margin: 0 auto;
}

    /* Container for the text sections (stays compact for better readability) */
    .projects-intro {
        font-family: Arial, sans-serif;
        max-width: 1200px;
        margin: 0 auto 40px auto;
        padding: 0 20px;
        line-height: 1.6;
    }

    /* Headline for realized projects - defines the left starting point */
    .realized-title {
        font-family: Arial, sans-serif;
        max-width: 1400px; /* Extended to 1400px for the large view */
        margin: 40px auto 20px auto;
        padding: 0 20px;
        color: #333;
    }

    /* The extended grid system for the tiles */
    .project-grid {
        display: grid;
        /* Forces exactly 4 columns with equal width on large screens */
        grid-template-columns: repeat(4, 1fr);
        gap: 25px; /* bit more distance inbetween the bigger tiles */
        max-width: 1400px; /* exactly the same width as the headline */
        margin: 0 auto;
        padding: 0 20px;
        font-family: Arial, sans-serif;
        box-sizing: border-box;
    }

    /* Individual project tile as a link */
    .project-card {
        display: block;
        text-decoration: none;
        color: #333;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* Hover-effect */
    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    /* Bild-Bereich */
    .project-thumbnail {
        width: 100%;
        height: 180px; /* Height slightly increased, as the tiles are now wider (good aspect ratio) */
        object-fit: cover;
        display: block;
    }

    /* The small frame under the image */
    .project-title-box {
        padding: 15px 12px;
        text-align: center;
        font-size: 15px;
        font-weight: bold;
        border-top: 1px solid #eee;
        background-color: #fafafa;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-card:hover .project-title-box {
        color: #d9534f;
    }

    /* automatic adaptation for tablets & smartphones (Responsive) */
    @media (max-width: 1024px) {
        .project-grid {
            grid-template-columns: repeat(3, 1fr); /* 3 tiles on small laptops/tablets */
        }
    }

    @media (max-width: 768px) {
        .project-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 tiles on large smartphones */
        }
    }

    @media (max-width: 480px) {
        .project-grid {
            grid-template-columns: 1fr; /* 1 tile under each other on small phones */
        }
    }

/* Individual FAQ element */
.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

/* Style of the question (bold, slightly larger) */
.faq-question {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a1a1a;
  cursor: pointer;
  padding: 10px 0;
  outline: none;
}

/* Style of the answer (left indentation and color) */
.faq-answer {
  padding-left: 20px; /* Here you control the indentation */
  color: #555555;     /* A slightly lighter gray for better contrast with the question */
  font-size: 1rem;
  line-height: 1.6;   /* Pleasant line height */
}

/* Style for buttons */
.grid-button {
    display: block;
    padding: 20px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.btn-black {
    background-color: black;
    border: 2px solid black;
}
.btn-black:hover {
    background-color: rgb(114, 113, 113);
}

.btn-blau {
    background-color: #007BFF;
    border: 2px solid #0056b3;
}
.btn-blau:hover {
    background-color: #0056b3;
}

.btn-gruen {
    background-color: #28a745;
    border: 2px solid #1e7e34;
}
.btn-gruen:hover {
    background-color: #1e7e34;
}

.btn-rot {
    background-color: #dc3545;
    border: 2px solid #bd2130;
}
.btn-rot:hover {
    background-color: #bd2130;
}

.btn-gelb {
    background-color: #ffc107;
    border: 2px solid #e0a800;
}
.btn-gelb:hover {
    background-color: #e0a800;
}

.grid-button:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 7px 7px 14px rgba(0, 0, 0, 0.4);
}

/* Styling for the PDF-Button */
.pdf-button {
    display: inline-block;
    background-color: #007bff;   /* background colour */
    color: #ffffff;              /* white text*/
    margin-top: 8px; 
    padding: 12px 24px;          /* height and width of button) */
    font-size: 16px;             /* text size */
    font-weight: bold;           
    text-decoration: none;       /* no underlining */
    border-radius: 6px;          
    box-shadow: 0 4px 6px rgba(0, 0, 0, 1); /* slight box shadow */
    transition: background-color 0.3s ease, transform 0.2s ease; /* transition when hovering */
    cursor: pointer;
}

/* effect, when the user hovers over the button */
.pdf-button:hover {
    background-color: #0056b3;   /* Darker blue when hovering */
    transform: translateY(-2px); /* Button lifts slightly */
}

/* effect when the button is clicked */
.pdf-button:active {
    transform: translateY(0);    /* Button drückt sich visuell ein */
}

        /* Container-Box for the Volunteer Form */
        .form-container {
            max-width: 650px;
            margin: 30px auto;
            padding: 25px;
            background-color: #f9f9f9;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-family: Arial, sans-serif;
            color: #333;
        }

        .form-container h2 {
            text-align: center;
            margin-bottom: 25px;
        }

        /* Individual distances between blocks */
        .form-group {
            margin-bottom: 20px;
        }

        /* Label styling */
        .form-group > label {
            display: block;
            font-weight: bold;
            margin-bottom: 8px;
        }

        /* Text fields */
        .form-container input[type="text"],
        .form-container input[type="email"],
        .form-container input[type="date"],
        .form-container textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box; /* Verhindert, dass Felder über den Rand ragen */
        }

        /* Lists for Radio-Buttons and Checkboxen under each other */
        .radio-checkbox-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: normal;
            cursor: pointer;
        }

        /* Intended elements (e.g., start date) */
        .nested-group {
            padding-left: 15px;
        }
        .nested-group label {
            font-weight: normal;
            margin-right: 10px;
        }

        /* Distances for the confirmations */
        .confirmation-group label {
            display: block;
            font-style: italic;
            font-weight: normal;
            margin-top: 10px;
            line-height: 1.4;
        }

        /* The Submit Button */
        .submit-btn {
            display: block;
            width: 100%;
            background-color: #28a745; /* Grüner Button */
            color: white;
            padding: 12px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            text-transform: uppercase;
            margin-top: 25px;
            transition: background 0.2s;
        }

        .submit-btn:hover {
            background-color: #218838; /* Dunkleres Grün beim Drüberfahren */
        }

/* Style only for iPad */
@media (min-width: 576px) {
    div {
    background: white;
    width: 90%;
    padding: 1.5% 1%;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 10px;
    box-shadow: 5px 5px 10px grey;
}

body {
    background: url("images/cloud-background.png") fixed;
    font-family: Arial, sans-serif;  
}
}
/* Style only for Laptop and Desktop PC */
@media (min-width: 1200px) {
    div {
    background: white;
    width: 70%;
    padding: 1.5% 1%;
    margin-left: 15%;
    margin-right: 15%;
    border-radius: 10px;
    box-shadow: 5px 5px 10px grey;
}

body {
    background: url("images/cloud-background.png") fixed;
    font-family: Arial, sans-serif;  
}
}