@font-face {
    font-family: 'Oxlos';
    src: url('../fonts/Oxlos-Regular.woff') format('woff');
    font-display: swap;
    font-weight: 400;
}


@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Light.woff2') format('woff2');
    font-display: swap;
    font-weight: 300;
}

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Italic.woff2') format('woff2');
    font-display: swap;
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Regular.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Bold.woff2') format('woff2');
    font-display: swap;
    font-weight: 700;
}

@font-face {
    font-family: 'Press Start 2P';
    src: url('../fonts/PressStart2P-Regular.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
}

:root {
    --primary-color: #FFCC66;
    --secondary-color: #333;
    --text-color: #333;
    --text-color-light: #ffffff;
    --bg-color: rgba(255, 255, 255, 0.95);
    --focus-color: #329465;
    --focus-ring: 3px solid var(--focus-color);
    --logo-color: #FFCC66;
    --logo-animation-color: #FFA500;
    --logo-fill-color: #000;
    --legal-menu-color: #000;
    --legal-menu-hover-color: #FFCC66;
    --background-gradient-start: #FFCC66;
    --background-gradient-middle: #FF6F61; 
    --background-gradient-end: #6A1B9A;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 10px;
}

html {
    font-size: 18px;
}

body {
    font-family: 'Oxlos', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-middle), var(--background-gradient-end));
    background-size: 200% 200%;
    background-position: center; 
    animation: backgroundAnimation 60s linear infinite;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    height: 100vh;
    align-items: stretch;
}

@keyframes backgroundAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

a {
    color: var(--background-gradient-end);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--background-gradient-middle);
}

a:focus {
    outline: var(--focus-ring);
}

::-moz-selection { /* Code for Firefox */
    color: var(--text-color-light);
    background: var(--background-gradient-end);
  }
  
  ::selection {
    color: var(--text-color-light);
    background: var(--background-gradient-end);
  }

.logo-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.logo-svg {
    width: 100%;
    max-width: 200px;
}

.logo-text {
    font-family: 'Oxlos', sans-serif;
    font-size: 65px;
    fill: var(--logo-fill-color);
}

.logo-link {
    width: 33%;
    max-width: 200px;
    text-decoration: none;     
    display: flex;
    align-items: flex-end;
}

.align_center {
    align-items: center;
}

.content-wrapper {
    width: 100%;
    margin: 30px 15px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; 
}


@media (min-width: 840px) {
    .content-wrapper {
        width: 810px;
        max-width: 810px;
    }
}


.align-items { /*Vertikal zentrieren */
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.content-container {
    background-color: var(--bg-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 15px;
}

/* Password Generator Page */

.password-generator-container {
    text-align: center;
    padding: 20px;

}
input[type="text"] {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.password-generator-container #copy-message {
    color: var(--focus-color);
    margin-top: 10px;
    display: none;
}

/* End Password Generator Page */

.legal-menu {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-bottom: 20px;
}

.legal-menu-item {
    margin-left: 20px;
    color: var(--legal-menu-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-menu-item:hover {
    color: var(--legal-menu-hover-color);
    outline: none; /* Remove outline on hover */
}

.legal-menu-item:focus-visible {
    color: var(--legal-menu-hover-color);
    outline: var(--focus-ring); /* Outline for keyboard focus only */
}



/* Basis-Button-Styling */
button {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border: none; 
    border-radius: var(--border-radius); 
    padding: 12px 24px; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; 
    outline: none; /* Verhindert Standard-Fokus-Styling */
    font-family: 'Mulish';
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 5px;
    
}

button:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--text-color);
}

button:focus-visible {
    outline: var(--focus-ring); 
    outline-offset: 2px; 
    box-shadow: 0 0 10px var(--focus-color); 
}

/* Aktiv-Zustand */
button:active:not(:disabled),
button:focus-visible:active {
    background-color: var(--background-gradient-middle);
    transform: translateY(1px);
    box-shadow: var(--box-shadow);
}


button:disabled {
    cursor: not-allowed; 
    box-shadow: none; 
    opacity: 0.6; 
    transition: none; 
    transform: none;
}


/* Datenschutz */

.obfuscated-address {
    visibility: hidden; /* Hide the gibberish content */
    position: relative;
  }
  
  .obfuscated-address::before {
    content: 'Andreas Berning';
    display: block;
    visibility: visible;
    position: relative;
  }
  
  /* Start Daenisch Abgewickelt */


  .daenisch-abgewickelt-container {
    text-align: center; 
}

.daenisch-abgewickelt-container #result {
    margin-bottom: 20px;   
    font-size: 2rem;
    font-weight: 700;
}

/* End Dänisch Abgewickelt Container */


 /* Start Giphy Downloader */


 .giphy-downloader-container {
    text-align: center; 
}

#gifDisplay {
    margin-top: 2rem;
    margin-bottom: 20px;
}

.gif-image {
    margin-bottom: 20px;
}

/* End Giphy Downloader */

.menu-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 150px);
    gap: 10px;
}

.menu-tile {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text-color-light);
    background: var(--secondary-color);
    border: none;
    border-radius: 20px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: none; /* Remove default outline */
    font-weight: 600;
    padding: 1rem;
}

.menu-tile:hover {
    background: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-tile:focus-visible {
    outline: var(--focus-ring); /* Outline for keyboard focus only */
    background: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Disabled state for menu tiles */
.menu-tile:disabled {
    background-color: #d3d3d3; /* Light gray background for disabled state */
    color: #a9a9a9;           /* Dark gray text */
    cursor: not-allowed;      /* Change cursor to indicate disabled state */
    box-shadow: none;         /* Remove box-shadow */
    border: none;             /* Remove border */
}

/* Optional: If you want to explicitly add a disabled class */
.menu-tile.disabled {
    background-color: #d3d3d3; /* Light gray background */
    color: #a9a9a9;           /* Dark gray text */
    cursor: not-allowed;      /* Change cursor to indicate disabled state */
    box-shadow: none;         /* Remove box-shadow */
    border: none;             /* Remove border */
}


/* Specific tile positioning */
/* Erste Reihe */
.tile1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}
.tile2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* Zweite Reihe – über beide Spalten */
.tile3 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

/* Dritte Reihe */
.tile4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}
.tile5 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

/* Vierte Reihe – über beide Spalten */
.tile6 {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
}

@media (min-width: 768px) {
  .menu-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 150px);
  }

  /* Zeile 1: tile1 über Spalte 1–2 */
  .tile1 { grid-column: 1 / 3; grid-row: 1 / 2; }

  /* Spalte 3: tile2 über Zeile 1–2 */
  .tile2 { grid-column: 3 / 4; grid-row: 1 / 3; }

  /* Zeile 2: tile3 in Spalte 1, tile4 in Spalte 2 */
  .tile3 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .tile4 { grid-column: 2 / 3; grid-row: 2 / 3; }

  /* Zeile 3: tile5 in Spalte 1, tile6 über Spalte 2–3 */
  .tile5 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .tile6 { grid-column: 2 / 4; grid-row: 3 / 4; }
}


/* Stylisch Inline Input */

.inline-input {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
  }

  .inline-input label,
  .inline-input input {
    font-size: 1em;
    padding: 10px;
  }
  .inline-input label {
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-right: none;
    border-bottom: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    background-color: rgba(245, 245, 245, 1)
  }
  .inline-input input {
    border-left: none;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
  }
  