/* CSS for gnupg.com.
 * This file is in the Public Domain.
 */

/* Setup a new default for box-sizing.  */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Recommended pure modification.  */
.pure-img-responsive {
    max-width: 100%;
    height: auto;
    display: block; /* Verhindert zusätzlichen Platz um das Bild */
    margin: auto; /* Zentriert das Bild horizontal */
    object-fit: contain; /* Stellt sicher, dass das Bild nicht verzerrt wird */
}

/*
 * Basic stuff.
 */
body {
    background: #f0f0fc;
    line-height: 1.7em;
    font-size: 12px;
}

/* Don't hide header behind the menu when using a link to it. */
[id] {
	scroll-margin-top: 6rem;
}


/*
 * The outer content wrapper covering the content and the footer.
 *
 * The top, min-height and z-index work closely together with the
 * banner-container if that is used.  If the banner is in use the
 * with-banner class needs to be used in addition.
 */
.content-container {
    top: 49%;
    width: 100%;
    min-height: 20%;
    z-index: 2;
    background: white;
}
.with-banner {
   position: absolute;
}

.float-left-img {
  float: left;
  margin: 0 0 15px 20px;
  padding: 15px;
  text-align: center;
}

/* Add some padding to the content.  */
.content {
    padding: 2em 2em 2em;
    max-width: 1000px;
    margin: auto;
}


/*
 * The banner used for the start page.
 * See share/gnupgdotcom.el for details.
 */
.banner-container {
    background: #b0dbf1;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    height: 60%;
    top: -10%;
    left: 0;
    position: fixed !important;
}

/* This is a the subheading in the banner.  */
.banner-subhead {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%);
}

.banner-logo{
    width: 150%;
    transform: translate(-20%, 0%);
}

.banner-button {
    background: #0093dd;
    color: #ffffff;
    border-radius: 4px;
    margin: 5px;
}

.banner-image {
  background-image: url("background.svg");
  background-color: #b1dbf1;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}


/* This is the heading in the banner.  h1 is only used in the banner.  */
h1 {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    border: 3px solid white;
    padding: 1em 1.6em;
    font-weight: 100;
    border-radius: 5px;
    line-height: 1em;
    text-transform: uppercase;
}


/* The main content headlines (<h2>). */
/* Ensures line height grows with the font size, keeps a balanced proportional spacing across different screen sizes */
h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.4; /* More breathing room between lines */
    color: #000000;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 2em 0em 1em;
}

/* This is the class used for the content sub-headers (<h3>) */
h3 {
    color: #5c6064;
}

/* Other headlines.  */
h4,
h5,
h6,
label {
    color: #000000;
}

/* links */
a {
    color: #0089d0;   /* GnuPG blue */
    text-decoration: underline;
  }

/* button */

.pure-button-primary,
.pure-button-selected,
a.pure-button-primary,
a.pure-button-selected {
    background-color: #0093dd;
    font-family: inherit;
    font-size: 100%;
    /* Improving button clickability on mobile devices: increased padding for a better touch experience, prevents unintended zooming or scrolling when tapping */
    padding: 0.7em 1.2em;
    touch-action: manipulation;
    border: 1px solid #999;  /*IE 6/7/8*/
    border: none rgba(0, 0, 0, 0);  /*IE9 + everything else*/
    text-decoration: none;
    border-radius: 2px;
}


/* The kicker line we use sometimes.  */
.kicker {
    padding-top: 1em;
    font-size: 150%;
    border-bottom: 3px #ffb580 solid;
    margin-bottom: 1em;
    margin-left: 25%;
    margin-right: 25%;
    text-align: center;
}


/* Experiment to make the TOC a bit smaller:
#table-of-contents {
    font-size: 80%;
    line-height: 1.2em;
}

#table-of-contents h2 {
    text-transform: none !important;
}
*/

/*
 * Menu style.
 * Background is darkpurple.
 */
.menu {
    background: #0093dd;
    color: #ffffff;
    padding: 0.5em;
    text-align: left;
    box-shadow: 0 1px 1px rgba(0,0,0, 0.10);
    border-top-width: 3px;
    border-top-style: solid;
    border-top-color: #e55f1d; /* icon orange - RGB: 229,95,29 => #e55f1d */
}

.pure-menu-children {
    background: #0093dd
}

.menu ul {
    float: right;
}

/* Prevent navigation menu from breaking on small screens, ensures the menu is centered and properly displayed on smaller devices */
@media (min-width: 30em) and (max-width: 48em) {
    .menu {
        min-height: 50px; /* Set a minimum height to avoid jumping */
        display: flex;
        align-items: center; /* Keep items aligned */
    }
}



.menu .pure-menu-selected a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: normal !important;
}

.menu a {
    color: #ffffff;
}

.menu li a:hover,
.menu li a:focus {
    background: none;
    border: none;
    color: #ffb580; /* #ffffff; */
    font-weight: normal; /* bold; */
}

/* Change to a one-line menu.  */
.pure-menu-horizontal {
    white-space: normal;
}


/* The blog navigation sub menu.  */
.blognav {
    margin-top: 2em;
    display: inline-table;
    list-style: none;
    color: #757575;
    position: relative;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.15);
    border-radius: 6px;
    background-color: #efefef;
}


.permalink {
    margin-top: 4em;
}


.logo-minimal {
  float: left;
  width: 15px;
}


/* The language swicther in the top menu.  */
.langswitch {
    font-size: 85%;
}


/* Author and date line of blog entries.  */
.postdate {
    font-weight: normal;
    font-style: italic;
}


/* This is the class used for the footer.  */
.footer {
    border-top: 1px solid #5c6064;
    margin-top: 5em;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 0.8em;
}

/* Note that the .footerbox takes care of the padding. */
#cpyright {
    padding-top: 0em;
}

/* A box used for small graphics at the page bottom.
   The images are right aligned, a single P is used
   to clear the alignment.  */
.footerbox {
  margin-top: 12px;
  margin-bottom: 5px;
}

.footerbox img {
    float: right;
}

.footerbox p {
    margin-top: 0px;
    margin-bottom: 0px;
    clear: both;
}


/* Used by the list of people.  */
.people {
    float: left;
    margin-right: 1em;
    min-width: 80px;
    min-height: 107px;
}

.people p {
    margin-top: 5px;
    margin-bottom: 0px;
}

.people img {
    box-shadow: 0 6px 12px rgba(0, 139, 210, 0.25); /* Subtile Schatten für Tiefe */
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 4px; /* Abgerundete Ecken */
    overflow: hidden; /* Stellt sicher, dass Kinder das Border-Radius respektieren */
}
    
.people img:hover {
    box-shadow: 0 8px 16px rgba(0, 139, 210, 0.35);
    transition: box-shadow 0.3s ease-in-out;
} 


/* Used for icons. */
.icon {
    /*float: left;*/
    margin-right: 1em;
    min-width: 90px;
    min-height: 90px;
}

.icon p {
    margin-bottom: 0px;
}

/* Used for the larger icons, see media queries below */
.icon_large {
    margin-right: 1em;
    width: 160px;
    height: 160px;
}

.icon_large p {
    margin-bottom: 0px;
}

/* Used for button images.  */
.icon_64 {
    float: left;
    margin-right: 1em;
    min-width: 64px;
    min-height: 64px;
}

.icon_64 p {
    margin-top: 5px;
    margin-bottom: 0px;
}

/*
 * Other helpful classes.
 */
.underline,
.underlined {
    text-decoration: underline;
}

.centered {
    text-align: center;
}

.example {
    overflow: auto;
}

pre {
    border: thin black solid;
    background-color: #efefef;
    padding: 0.5em;
    overflow: auto;
}


li.important,
span.important {
  color: red;
}


.l-box {
    padding: 1em;
}

strong.gpg_product {
    font-weight: bolder; /* bold; */
    color: #0071a3;  /* much darker than the regular blue #0093dd; */
}

/* image related */

img {
    border-width: 0;
}

img.lfloat {
    float: left;
    margin-right: 1em;
}

img.rfloat {
    float: right;
    margin-left: 1em;
}


/* The figure class is used by the blog entries.  .figure-number is
   used to suppress the figure number inserted by org-mode. */
/* New: div.figure: centered, full width
 *      figure-left: left-aligned, 1/3 of total width
 *      figure-right: right-aligned, 1/3 of total width
 */

/* Standard: Centered figure, full width */
div.figure {
    display: block;
    width: fit-content; /* Passt sich nur an die Breite des Bildes an */
    max-width: 100%; /* Verhindert, dass es größer als sein Container wird */
    text-align: center; /* Zentriert die Caption */
    margin: 0 auto 2em; /* Zentriert das gesamte div und fügt Abstand darunter hinzu */
    padding: 0;
    box-shadow: 0 6px 12px rgba(0, 139, 210, 0.25); /* Subtile Schatten für Tiefe */
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 4px; /* Abgerundete Ecken */
    overflow: hidden; /* Stellt sicher, dass Kinder das Border-Radius respektieren */
}

div.figure > p {
  display: contents; /* Entfernt das p-Tag visuell */
}

div.figure:hover {
    box-shadow: 0 8px 16px rgba(0, 139, 210, 0.35);
    transition: box-shadow 0.3s ease-in-out;
}

/* Ensure images inside div.figure are centered */
div.figure img {
    max-width: 100%; /* Ensures responsiveness */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes bottom space in some browsers */
    margin: 0 auto; /* Centers the image */
}

.figure p {
    margin: 0;
    padding: 0;
}

/* nur für die Caption*/
.figure-number {
  display: none !important;
}

/* brauchen wir nicht mehr, lasse ich aber als Vorlage drin:
.clickable-image img {
    transition: transform 0.2s ease-in-out;
}

.clickable-image img:hover {
    transform: scale(1.05); 
    cursor: pointer;
}
*/


/*
 * Table related rules as used by org-mode.
 */

table {
  margin-left: 0%;
}

.left {
    margin-left: 0px;
    margin-right: 0px;
    padding-right: 1em;
    text-align: left;
}

.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.right {
    margin-left: auto;
    padding-right: 1em;
    text-align: right;
}

th.left {
    margin-left: auto;
    padding-right: 1em;
    text-align:center;
}

th.center {
    margin-left: auto;
    text-align:center;
}

th.right {
    margin-left: auto;
    text-align:center;
    padding-right: 1em;
}

th.wideright {
    margin-left: auto;
    text-align:center;
    padding-left: 25px;
}

td.left   {
    text-align:left;
    margin-left: auto;
    padding-right: 1em;
}

td.center {
    text-align:center;
}

td.right  {
    text-align:right;
    padding-right: 1em;
}

td.wideright  {
    text-align: right;
    padding-left: 25px;
    padding-right: 1em;
}

/* GPG-specific table style */
.gpg-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95em;
  overflow-x: auto;
  display: block;
  margin: 1.5em 0;
}

.gpg-table th,
.gpg-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.gpg-table th {
  background-color: #f4f6f8;
  color: #333;
  font-weight: bold;
}

.gpg-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.gpg-table code {
  background-color: #f5f5f5;
  font-family: monospace;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}


/* grey box for hints */
.hint {
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    padding-left: 0.5em;
    padding-right: 0.5em;
    margin: 1em 0;
}


/* Footnotes for org-mode.  */

h2.footnotes {
    font-size: 125%;
    border-top: 1px solid #5c6064;
    padding-top: 5px;
    margin-bottom: 10px;
    margin-right: 66%;
}

#footnotes {
    font-size: 100%;
}

.footnum {
    font-size: 1em;
}

.footpar {
    display: inline-block;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}


/*
 * Dezente Navigations-Buttons für Blog-Artikel
 */
.blog-navigation {
  text-align: center;
  margin: 30px 0; /* Mehr Abstand für eleganteren Look */
}

.blog-navigation a {
  display: inline-flex; /* Flex für bessere Pfeilausrichtung */
  align-items: center;
  padding: 6px 14px;  /* Kleinere Buttons */
  margin: 0 5px;
  font-family: inherit;
  font-size: 110%;  /* Pfeile etwas größer für bessere Sichtbarkeit */
  color: #555;  /* Dezentes Dunkelgrau statt knalliges Weiß */
  text-decoration: none;
  border-radius: 2px;     /* Abgerundete Ecken */
  border: 1px solid #ccc;  /* Sehr dezente Umrandung */
  background-color: #f9f9f9; /* Heller Hintergrund für leichte Abgrenzung */
  transition: all 0.2s ease-in-out;
}

.blog-navigation a:hover {
  background-color: #eee; /* Leicht dunkler beim Hover */
  border-color: #aaa;  /* Subtile Verstärkung der Umrandung */
  color: #333; /* Dunklere Schrift für besseren Kontrast */
}

/* Margin adjustment for .blog-navigation  */
@media (min-width: 30em) and (max-width: 48em) {
    .blog-navigation {
        margin-top: 80px !important; /* More space when the menu shifts */
    }
}


/*
 * accordion
 */

details > summary > h3::before{
    content: " ▶  ";
}

details[open] > summary > h3::before{
    content: " ▼  ";
}

details[open] > summary {
    list-style-type: ' ▼ ';
}

details {
    border: 1px solid gray;
    border-radius: 0.2rem;
    padding-right: 0.5rem;
    padding-left: 1rem;
    margin-bottom: 12px;
    margin-top: 12px;
}

details[open] > summary {
    margin-bottom: 0.5rem;
}

/*
details::before {
    content: " ▶ ";
}

details[open]::before {
    content: " ▼ ";
}
*/


/*
 * double labels
 */

 .dbl-label {
    font-size: 0.8em;
    color:  rgb(229, 95, 29);
    /* text-shadow: rgba(0, 0, 0, 0.7) 0.5px 0.5px ; */
    font-weight: bold;
    border:2px solid rgb(229, 95, 29);
    /* background: linear-gradient(to bottom, rgb(255, 255, 255), rgb(224, 224, 224)); /* */
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding-left: 0.2em;
    padding-right: 0.2em;
    margin-left: 6px;
}

.dbl-good {
    font-size: 0.8em;
    color: rgb(0, 100, 182);
    border-top:2px solid rgb(0, 100, 182);
    border-right:2px solid rgb(0, 100, 182);
    border-bottom:2px solid rgb(0, 100, 182);
    /* background: linear-gradient(to bottom, rgb(255, 255, 255), rgb(224, 224, 224)); /* */
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    padding-left: 0.2em;
    padding-right: 0.2em;
    margin-right: 6px;
}

.dbl-bad {
    font-size: 0.8em;
    color: #5c6064;
    border-top:2px solid #5c6064;
    border-right:2px solid #5c6064;
    border-bottom:2px solid #5c6064;
    /* background: linear-gradient(to bottom, rgb(255, 255, 255), rgb(224, 224, 224)); /* */
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    padding-left: 0.2em;
    padding-right: 0.2em;
    margin-right: 6px;
}


/*
 * Customization for mobile etc.
 */
@media (min-width: 48em) {

    /* Increase the body font size */
    body {
        font-size: 16px;
    }

    .banner-logo {
        width: 100%;
        transform: translate(0%, 0%);
    }

	.content-container {
		top: 59%;
	}

    .banner-container {
        height: 70%;
    }

    .icon_large img {
        width: 80px;
    }
}


@media (min-width: 30em) {
    .logo-minimal {
        width: 150px;
    }
    .icon_large img {
        width: 150px;
    }
}

/*
 * Customization for desktops which have more space than mobiles and tablets.
 */
@media (min-width: 78em) {

    /* Increase the banner font size even more. */
    .banner-head {
        font-size: 300%;
    }
    .icon_large img {
        width: 200px;
    }
}
